Abstract
Arabic dialects form a diverse continuum, yet NLP models often treat them as discrete categories. Recent work addresses this issue by modeling dialectness as a continuous variable, notably through the Arabic Level of Dialectness (ALDi). However, ALDi reduces complex variation to a single dimension. We propose a complementary measure: the Arabic Generality Score (AGS), which quantifies how widely a word is used across dialects. We introduce a pipeline that combines word alignment, etymology-aware edit distance, and smoothing to annotate a parallel corpus with word-level AGS. A regression model is then trained to predict AGS in context. Our approach outperforms strong baselines, including state-of-the-art dialect ID systems, on a multi-dialect benchmark. AGS offers a scalable, linguistically grounded way to model lexical generality, enriching representations of Arabic dialectness.
Introduction: Beyond "How Dialectal?"
Arabic is a linguistic powerhouse defined by diglossia: the coexistence of Modern Standard Arabic (MSA)—the formal language of news and literature—and a vast continuum of spoken dialects (DA). For years, Natural Language Processing (NLP) treated these dialects as discrete buckets (e.g., "Egyptian" vs. "Gulf"). More recently, researchers moved toward a continuous scale called the Arabic Level of Dialectness (ALDi), which measures how far a word strays from MSA.
However, a one-dimensional scale is insufficient to capture the complexity of Arabic variation. A word might be very different from MSA but used by almost every Arabic speaker across the region (pan-dialectal), while another might be just as "non-standard" but used only in a single neighborhood. To address this, Sanad Shaban and Nizar Habash introduce the Arabic Generality Score (AGS)—a metric that quantifies how widely a word is shared across the Arabic-speaking world.
The 2D Dialect Space
By plotting ALDi (distance from MSA) against AGS (generality), we can create a much richer representation of the Arabic language. This allows models to distinguish between "Standard," "Pan-Dialectal," and "Localized" vocabulary.
Consider the word for "why." In many dialects, it’s lyš. This is definitely not MSA, so it gets a high "dialectness" score. But lyš is understood and used from the Levant to the Gulf. It is highly general. Conversely, a hyper-local word used only in a specific city might have the same dialectness score but low generality. Without measuring generality, models struggle with "lexical sharedness," making it harder to perform tasks like dialect-aware translation or rewriting localized text for broader audiences.
Methodology: The AGS Pipeline
The authors developed a sophisticated pipeline to move from raw text to a predictable score:
- Word Alignment: Using AWESOME Align, they identified semantically equivalent words across parallel sentences in multiple dialects.
- Etymology-Aware Edit Distance: Arabic spelling is notoriously inconsistent in dialects. To avoid penalizing different spellings of the same root, they created an etymology-aware distance metric. For example, it recognizes that the character 'q' in MSA might be pronounced (and spelled) as 'g' in Doha or a glottal stop '2' in Beirut, but they all share the same etymological origin.
- AGS Calculation: Distances were aggregated across dialects and processed through a logistic smoothing function to create a scalar score between 0 (highly specific) and 1 (highly general).
- Contextual Prediction: Finally, they fine-tuned CAMeL-BERT to predict the AGS of a word based on its surrounding context, allowing the model to handle homonyms that might be general in one sense but specific in another.
Key Insights and Results
Analysis of the AGS across different varieties revealed surprising linguistic patterns. Notably, MSA often has a lower generality score than some dialectal hubs. This is because MSA is highly formal and "over-specified"—it uses longer, more precise constructions that don't always overlap with the leaner, more efficient vocabulary of daily speech.
Dialects like those from Doha (DOH) and Beirut (BEI) showed high generality, suggesting they act as linguistic "hubs" where vocabulary is more likely to be shared with other regions.
In terms of performance, the CAMeL-BERT model trained on the MADAR-26 dataset achieved a Root Mean Squared Error (RMSE) of 0.2698, significantly outperforming strong baselines like MADAR Lookup (0.2901) and the NADI 2024 leaderboard systems. Qualitatively, the model correctly identified that common words like mn ("from") have near-perfect generality (0.987), while highly localized terms like mxnwq ("suffocating") received much lower scores (0.229).
Conclusion and Future Work
While AGS provides a powerful new dimension for modeling Arabic, challenges remain. Parallel corpora are still rare and often skewed toward major regions, and the current pipeline struggles with idioms where common words are used in highly specific ways. Future work will extend AGS to phrases and integrate the score into downstream tasks like machine translation and educational tools for Arabic learners.
Paper Citation: Sanad Shaban and Nizar Habash.
- The Arabic Generality Score: Another Dimension of Modeling Arabic Dialectness. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing (EMNLP).
Summary updated