arXiv:2608.22894cs.CLAug 2026

Manuscript Offprint

arXiv:2608.22894

AraDetox: A Multi-Dialect Arabic Detoxification Dataset

Mo El-Haj

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Arabic harmful-language detection has received considerable attention, yet Arabic text detoxification remains underexplored. We introduce AraDetox, a multi-dialect Arabic detoxification dataset comprising 10,500 harmful social-media posts and 84,000 detoxified rewrites generated using GPT-5 and Gemini 2.5 Flash across Modern Standard Arabic, Gulf, Levantine, and Egyptian Arabic. The generated outputs were assessed through human evaluation and automatic analyses of lexical change, semantic preservation, sentiment, and dialectal style. Results show that detoxification is primarily a meaning-preserving rewriting task: substantial lexical and structural reformulation is accompanied by consistently high semantic similarity. Human evaluation confirms successful harmful-language removal while largely preserving the original meaning. Dialectal analyses further indicate that the generated variants exhibit measurable stylistic alignment with reference Arabic dialect corpora. Comparison with existing resources highlights two complementary approaches to detoxification: minimal-edit lexical substitution and meaning-preserving reformulation. Our findings demonstrate that large-scale Arabic detoxification resources can be constructed through LLM-assisted generation and human verification. The dataset is publicly available at https://github.com/ArabicNLP-UK/AraDetox to support future research on Arabic detoxification, safe text generation, and multi-dialect Arabic NLP.

1 Introduction

Research on harmful language in Arabic has largely focused on detection, resulting in numerous datasets and models for hate speech, offensive language, and toxicity classification (Al Mandhari et al., 2024). Comparatively little attention has been paid to text detoxification, where harmful content is rewritten into a safer form while preserving its meaning. Creating detoxification datasets is particularly challenging because it requires annotators to rewrite offensive, politically sensitive, and often dialectal content while preserving meaning, stance, target, and communicative intent. As a result, manual dataset creation is both costly and time-consuming (Logacheva et al., 2022; Dementieva et al., 2024). Recent advances in large language models (LLMs) provide a promising alternative, enabling large-scale generation of fluent rewrites that remove harmful language while retaining the underlying message. Unlike harmful-language detection, detoxification requires balancing two competing objectives: removing harmful expressions while preserving the original claim, stance, target, and communicative intent. This challenge is particularly pronounced in Arabic social-media discourse, where criticism, sarcasm, political disagreement, and identity-related language are often intertwined with offensive expressions. As a result, successful detoxification cannot be reduced to simple lexical substitution, but instead requires broader meaning-preserving reformulation.

We introduce AraDetox, a large-scale multi-dialect Arabic detoxification dataset containing 10,500 harmful social-media posts and 84,000 detoxified rewrites generated using GPT-5 and Gemini 2.5 Flash across four Arabic varieties: Modern Standard Arabic (MSA), Gulf Arabic, Levantine Arabic, and Egyptian Arabic. The dataset was created using an LLM-assisted synthesis pipeline followed by human quality control by native Arabic speakers. We evaluate AraDetox using lexical change, semantic similarity, sentiment analysis, dialectal style analysis, and human assessment. Our findings show that Arabic detoxification is best characterised as a meaning-preserving rewriting task. Across models and dialects, substantial lexical and structural reformulation is accompanied by consistently high semantic similarity. Human evaluation further confirms that harmful language can be removed while largely preserving the original meaning. Beyond introducing a new resource, our work demonstrates that existing Arabic harmful-language datasets can be transformed into large-scale multi-dialect detoxification resources through LLM-assisted generation and human verification. The dataset is publicly available through the AraDetox repository 1^{1}. The main contributions of this work are threefold. First, we introduce a large-scale Arabic detoxification resource containing eight rewrites for each source post across two LLM families and four Arabic varieties. Second, we provide a multi-perspective evaluation covering lexical reformulation, semantic preservation, sentiment, dialectal style, and independent human assessment. Third, we release the dataset to support reproducible research on Arabic detoxification and dialect-aware safe generation.