Diglossia
Ferguson (1959) described diglossia as the existence of two varieties of the same language in a society: a high variety learned at school and used in writing and formal situations (MSA), and a spoken variety acquired at home and used in daily life (the dialects). Dialects were rarely written, but social media changed that: tweets, comments and messages are now written in dialect, and they are the most important source of modern data.
Map of the dialects
Arabic dialects are traditionally classified into regional groups, with great internal diversity:
| Group | Examples | Distinctive feature |
|---|---|---|
| Egyptian and Sudanese | Cairene, Saidi | «مش», «إزيك», pronouncing jim as a voiced g in Cairo |
| Levantine | Syrian, Lebanese, Palestinian, Jordanian | «شو», «هيك», «بدّي» |
| Gulf | Saudi, Kuwaiti, Emirati… | «وش», «شلون», «زين» |
| Iraqi | Baghdadi and others | «شكو ماكو», «هواية», «اكو» |
| Maghrebi | Moroccan, Algerian, Tunisian, Libyan | «واش», «بزاف», influenced by Amazigh and French |
| Yemeni | Sanaani and others | Preserved archaic features |
But the boundaries are not sharp: dialects form a continuum, and they vary within the same country between cities, rural areas and social groups.
Challenges of processing dialects
- There is no standard spelling: “هلق”, “هلأ” and “هلّأ”; researchers propose the CODA convention to standardize dialect orthography.
- Scarce resources: lexicons and annotated corpora are few compared with MSA.
- Overlap: most vocabulary is shared with MSA, and distinctive features are few in short text.
- Different morphology: “ما كتبتلوش” (Egyptian) = ما + كتبت + لـ + و + ش: a compound negation that an MSA analyzer does not know.
- Model performance: models trained on MSA drop clearly on dialects, which is why models pretrained on tweets, such as MARBERT, appeared.
Dialect identification
Dialect identification is a classification task: given a text, what is its dialect? The required granularity varies:
- Region (5–6 classes).
- Country (about 18–21 classes).
- City or province: the MADAR project (Bouamor et al., 2018) provided parallel sentences translated into the dialects of 25 Arab cities in addition to MSA.
The NADI series (since 2020) organized shared tasks on country-level and province-level dialect identification from tweets. Lessons that emerged from them include:
- Features at the level of character n-grams are very strong because they capture distinctive affixes and spelling.
- Models pretrained on dialectal data (MARBERT and the like) achieve the best results.
- Fine-grained identification is hard, especially between neighboring dialects, and the usual metric is Macro-F1 because of class imbalance.
- Some sentences are valid in several dialects, which later led to formulating the task as multi-label classification or as estimating a "level of dialectness" instead of a single class.
Arabizi
Arabizi is writing Arabic (mostly dialects) in Latin letters and digits; it spread with phones that did not support Arabic. Digits are used to represent letters that have no Latin equivalent:
| Digit | Character | Example |
|---|---|---|
| 2 | ء / ق (in some dialects) | so2al = سؤال |
| 3 | ع | 3arabi = عربي |
| 5 or 7' | خ | 5alas = خلاص |
| 7 | ح | 7abibi = حبيبي |
| 9 | ص or ق (depending on the region) | 9aba7 = صباح |
Processing Arabizi requires detecting Arabizi text (distinguishing it from English or French), then transliterating (Transliteration) it into Arabic letters, an ambiguous task because vowels are not represented consistently and spelling varies between people. Darwish (2014) used character models and a language model to choose the most likely transliteration.
Code-switching
Code-switching is mixing two languages in the same sentence: “عندي meeting بعد الـ lunch” or “c'est bon خلاص”. It is common in the Maghreb (Arabic and French) and in the Gulf and Lebanon (Arabic and English). It affects every stage of processing: tokenization, word-level language identification, tagging and translation.
Try it: in the Dialects module, type “شكو ماكو اليوم؟ والله هواية زين” and then “إزيك عامل إيه”, and look at the evidence the lab shows for each dialect, then open the Iraqi Dialect Lab to browse the dictionary.
