Abstract
This demo paper describes ADIDA, a web-based system for automatic dialect identification for Arabic text. The system distinguishes among the dialects of 25 Arab cities (from Rabat to Muscat) in addition to Modern Standard Arabic. The results are presented with either a point map or a heat map visualizing the automatic identification probabilities over a geographical map of the Arab World.
Introduction
While Modern Standard Arabic (MSA) is the official language of the Arab world, it is not the native "mother tongue" of its speakers. In daily life and on social media, individuals communicate using Dialectal Arabic (DA), which varies significantly across regions and cities. For Natural Language Processing (NLP), identifying these dialects is an arduous task because they share the same script, much of the same vocabulary, and are often mixed with MSA (code-switching). While previous research focused on broad regional categories like "Levantine" or "Gulf," ADIDA addresses the challenge of fine-grained identification at the city level, distinguishing between 25 different urban dialects.
Methods and Datasets
The ADIDA system employs a Multinomial Naive Bayes (MNB) classifier, which remains highly effective for text classification when paired with robust feature engineering. The model utilizes word unigrams, character n-grams (unigrams, bigrams, and trigrams) weighted by TF-IDF, and language model scores to capture the unique linguistic "flow" of specific dialects.
The system is trained on the MADAR Project parallel corpus, a large-scale collection of sentences translated across 25 cities from Rabat to Muscat, plus MSA. This dataset allows the model to learn subtle lexical and syntactic shifts between closely related dialects.
To make the 26-dimensional output (25 cities + MSA) interpretable, ADIDA offers two visualization modes: point maps, where circles are scaled by attribution probability, and heat maps, which use Gaussian distributions to highlight regional linguistic clusters.
Results and Key Insights
On a test set of sentences averaging 7 words, the model achieves 67.9% accuracy in identifying the exact city. Performance is highly sensitive to input length; accuracy can exceed 90% when the input reaches 16 words.
A key feature of ADIDA is "spatial debugging." Mapping probabilities to a 2D geographical space reveals patterns of similarity and error that are invisible in standard metrics. For instance, when provided with very short inputs, the system demonstrates a "diffusion" of probability across many cities, reflecting the inherent ambiguity of short-form dialectal Arabic. Conversely, heat maps naturally visualize how linguistic features are shared across broader regions like the Maghreb or the Levant.
Future Work
The authors plan to improve accessibility for color-blind users and implement a feedback mode for native speakers to correct the system. Additionally, gamification strategies are being explored to encourage community-driven data labeling. While MNB is the current engine, future iterations will explore more complex architectures as datasets continue to grow.
Summary updated