---
title: "Country-level Arabic Dialect Identification using RNNs with and"
description: "The paper addresses the NADI 2021 Subtask 1.2: assigning Arabic tweets to one of… 41.36 accuracy. 29 references, cited by 6 papers here."
authors: ["Elsayed Issa", "Mohammed AlShakhori", "Reda Al-Bahrani", "Gus Hahn-Powell"]
year: 2021
venue: "Proceedings of the Sixth Arabic Natural Language Processing Workshop"
source: "https://aclanthology.org/2021.wanlp-1.32/"
licence: "CC BY 4.0 (ACL Anthology)"
licence_url: "https://creativecommons.org/licenses/by/4.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/issa-2021-country-level-arabic-dialect-identification/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/issa-2021-country-level-arabic-dialect-identification/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/page/7/) / Country-level Arabic Dialect Identification using RNNs with and without Linguistic Features

# Country-level Arabic Dialect Identification using RNNs with and without Linguistic Features

**Authors:** [Elsayed Issa](https://md.research.elamur.ai/free/en/authors/elsayed-issa/), Mohammed AlShakhori, Reda Al-Bahrani and Gus Hahn-Powell · **Year:** 2021 · **Venue:** [Proceedings of the Sixth Arabic Natural Language Processing Workshop](https://md.research.elamur.ai/free/en/venues/wanlp/) ([WANLP 2021](https://md.research.elamur.ai/free/en/venues/wanlp/2021/)) · **Publisher:** [Association for Computational Linguistics](https://md.research.elamur.ai/free/en/publishers/association-for-computational-linguistics/) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

**Links:** [Publisher's page](https://aclanthology.org/2021.wanlp-1.32/) · [PDF](https://aclanthology.org/2021.wanlp-1.32.pdf) · [OpenAlex](https://openalex.org/W3154035178)

**Citations:** 3 citations (OpenAlex, 2026-10-14) · [6](https://md.research.elamur.ai/free/en/papers/issa-2021-country-level-arabic-dialect-identification/cited-by/) in our library, of the 149,439 papers whose bibliographies we read

## Summary
The paper addresses the NADI 2021 Subtask 1.2: assigning Arabic tweets to one of 21 country-level dialects. This is hard because MSA and the regional varieties share one script, and tweets usually omit short-vowel diacritics, so many written strings look the same across dialects. The authors use only the official NADI Twitter corpus, cleaned of non-Arabic tokens, emojis and links. They compare two models. The first is a word-level LSTM over pretrained Mazajak CBOW embeddings (Aravec was also tried). The second is a hybrid that adds a branch encoding 56 hand-crafted binary dialect markers as learned dense embeddings. Against expectations, the hand-crafted features lowered macro F1 on the development set, so the plain LSTM became the submitted system. The most useful part of the paper is its error analysis. It names four causes: dialect-neutral wording, topics shared across the Arab world, users whose dialect differs from their country label, and markers that are regional rather than national. The work shows that a small set of sparse hand-picked cues can add noise on top of pretrained representations instead of adding signal.

## Key points
- On the dev set, Model 1 (LSTM with Mazajak CBOW) scored 41.36 accuracy and 22.10 macro F1. Model 2 (LSTM plus features) scored 37.82 accuracy and 18.60 macro F1.
- Model 1 settings:
  - 300-unit LSTM with dropout 0.3 and recurrent dropout 0.2.
  - Input capped at 80 tokens, vocabulary of 50,000, embedding size 300, batch size 64.
  - Early stopping with patience 2, using 10% of the training set held out for validation.
- The Mazajak embeddings were trained on about 100M tweets and slightly beat Aravec.
- The feature branch works as follows:
  - 56 binary lexical markers (for example demonstratives and degree words) are each mapped to a dense embedding.
  - These pass through two 100-unit ReLU layers and an element-wise multiplication.
  - The result is concatenated with the LSTM output.
  - Features marking the absence of a cue (NOT X) were also explored.
- The failure analysis lists five causes: bivalent linguistic units, "global genre" topics such as football, participant mobility, cues shared across a region or meaning different things in different dialects, and low feature coverage.

## Interesting ideas
- The authors tested whether hand-built cues add anything once a strong pretrained encoder is in place, and they reported the negative result honestly instead of assuming linguistic knowledge must help.
- Some training items carry almost no signal for their label because the text is valid in many varieties, so the authors treat them as inherently ambiguous rather than as model errors.
- A word can be a strong cue in one variety and mean something unrelated in another, for example "then" in Gulf dialects versus "child" in Egyptian. Lexical cues therefore need to be conditioned on the variety.
- Presence-only binary cues are turned into learned embeddings and fused with a sequence encoder, and absence cues are considered as well. This is a cheap, extensible way to inject symbolic knowledge into a neural model.
- The paper links weak cue usefulness to low corpus coverage relative to the number of classes, which suggests checking coverage before trusting sparse rules.

## For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

- **I1** (learn): Before adding a hand-written rule or feature to a learned component, run a controlled ablation against the bare model and keep the addition only if it beats that baseline.
- **I2** (learn): When building silver data from witness parsers, explicitly mark sentences where readings legitimately diverge, so they are not used as gold or counted as disagreements to repair.
- **I3** (tree): During UD dialect conversion and treebank merging, keep lemma and sense mappings specific to each source variety instead of applying a single global lexicon.
- **I4** (tokens): Morphological or lexicon flags could be fed to the tagger as learned embeddings alongside word vectors, with each flag remaining traceable for explanations.
- **I5** (learn): Self-induced repair rules could be required to reach a minimum firing frequency on held-out text before being promoted, which would screen out rules that are rarely triggered.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

📚 Shelves (4): [🖥️ Computer Science](https://md.research.elamur.ai/free/en/shelves/computer-science/) · 16,667 works · [🤖 Artificial Intelligence](https://md.research.elamur.ai/free/en/shelves/computer-science/artificial-intelligence/) · 16,194 works · [🎭 Arts and Humanities](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · 16,039 works · [🗣️ Language and Linguistics](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · 15,891 works

🧭 Topics (1): [Semitic languages](https://md.research.elamur.ai/free/en/topics/semitic-languages/) · 2,908 works

## Cite

Cite as: Elsayed Issa, Mohammed AlShakhori, Reda Al-Bahrani and Gus Hahn-Powell. 2021. Country-level Arabic Dialect Identification using RNNs with and without Linguistic Features. Proceedings of the Sixth Arabic Natural Language Processing Workshop.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{issa2021country,
  title = {{Country-level Arabic Dialect Identification using RNNs with and without Linguistic Features}},
  author = {Elsayed Issa, Mohammed AlShakhori, Reda Al-Bahrani and Gus Hahn-Powell},
  booktitle = {Proceedings of the Sixth Arabic Natural Language Processing Workshop},
  year = {2021},
  url = {https://aclanthology.org/2021.wanlp-1.32/}
}
```

- [← previous Cognitive and Linguistic Skills Associated With Cross-Linguistic Transfer in the Production of Oral Narratives in English as a Foreign Language by Arabic- and Hebrew-Speaking Children: Finding Common Denominators](https://md.research.elamur.ai/free/en/papers/russak-2021-cognitive-linguistic-skills-associated-cross/)
- [next → FantasyCoref: Coreference Resolution on Fantasy Literature Through Omniscient Writer's Point of View](https://md.research.elamur.ai/free/en/papers/han-2021-fantasycoref-coreference-resolution-fantasy-literature/)
- [↑ back to papers of 2021](https://md.research.elamur.ai/free/en/papers/2021/page/7/)

## References

29 references, 13 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Muhammad Abdul-Mageed, Hassan Alhuzali, and Mohamed Elaraby. 2018. [You tweet what you speak: A city-level dataset of arabic dialects](https://md.research.elamur.ai/free/en/papers/mageed-2018-you-tweet-what-you-speak/). In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018).
2. Muhammad Abdul-Mageed, Chiyu Zhang, Houda Bouamor, and Nizar Habash. 2020. [NADI 2020: The First Nuanced Arabic Dialect Identification Shared Task](https://md.research.elamur.ai/free/en/papers/mageed-2020-nadi-2020-first-nuanced-arabic/). In Proceedings of the Fifth Arabic Natural Language Processing Workshop (WANLP 2020), Barcelona, Spain. [↗](https://doi.org/10.48550/arxiv.2010.11334)
3. Yann N Dauphin, Angela Fan, Michael Auli, and David Grangier. 2017. [Language modeling with gated convolutional networks](https://md.research.elamur.ai/free/en/papers/dauphin-2016-language-modeling-gated-convolutional-networks/). In International conference on machine learning, pages 933–941. PMLR. [↗](https://doi.org/10.48550/arxiv.1612.08083)
4. Anna De Fina. 2000. Orientation in immigrant narratives: The role of ethnicity in the identification of characters. Discourse Studies, 2(2):131–157. [↗](https://doi.org/10.1177/1461445600002002001)
5. Li Dong, Furu Wei, Chuanqi Tan, Duyu Tang, Ming Zhou, and Ke Xu. 2014. [Adaptive recursive neural network for target-dependent twitter sentiment classification](https://md.research.elamur.ai/free/en/papers/dong-2014-adaptive-recursive-neural-network-target/). In Proceedings of the 52nd annual meeting of the association for computational linguistics (volume 2: Short papers), pages 49–54.
6. Muhammad Abdul-Mageed, Chiyu Zhang, Abdel-Rahim Elmadany, Houda Bouamor, and Nizar Habash. 2021. [NADI 2021: The Second Nuanced Arabic Dialect Identification Shared Task](https://md.research.elamur.ai/free/en/papers/mageed-2021-nadi-2021-second-nuanced-arabic/). In Proceedings of the Sixth Arabic Natural Language Processing Workshop (WANLP 2021). [↗](https://doi.org/10.48550/arxiv.2103.08466)
7. Mohamed Elaraby and Muhammad Abdul-Mageed. 2018. [Deep models for arabic dialect identification on benchmarked data](https://md.research.elamur.ai/free/en/papers/elaraby-2018-deep-models-arabic-dialect-identification/). In Proceedings of the Fifth Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial 2018), pages 263–274.
8. Ibrahim Abu Farha and Walid Magdy. 2019. [Mazajak: An online Arabic sentiment analyser](https://md.research.elamur.ai/free/en/papers/farha-2019-mazajak-online-arabic-sentiment-analyser/). In Proceedings of the Fourth Arabic Natural Language Processing Workshop, pages 192–198, Florence, Italy. Association for Computational Linguistics.
9. Heba Elfardy and Mona Diab. 2013. [Sentence level dialect identification in arabic](https://md.research.elamur.ai/free/en/papers/elfardy-2013-sentence-level-dialect-identification-arabic/). In Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 456–461.
10. Oscar Araque, Ignacio Corcuera-Platas, J Fernando Sánchez-Rada, and Carlos A Iglesias. 2017. Enhancing deep learning sentiment analysis with ensemble techniques in social applications. Expert Systems with Applications, 77:236–246. [↗](https://doi.org/10.1016/j.eswa.2017.02.002)
11. Charles A Ferguson. 1959. 15(2):325–340. [find](https://scholar.google.com/scholar?q=Charles+A+Ferguson%2E+1959%2E+15%282%29%3A325%E2%80%93340%2E)
12. Reem Bassiouney. 2009. Arabic sociolinguistics: Topics in diglossia, gender. Identity, and Politics. Georgetown University Press. [find](https://scholar.google.com/scholar?q=Reem+Bassiouney%2E+2009%2E+Arabic+sociolinguistics%3A+Topics+in+diglossia%2C+gender%2E+Identity%2C+and+Politics%2E+Georgetown+University+Press%2E)
13. Kara Becker. 2009. /r/and the construction of place identity on new york city’s lower east side 1. Journal of Sociolinguistics, 13(5):634–658. [find](https://scholar.google.com/scholar?q=Kara+Becker%2E+2009%2E+%2Fr%2Fand+the+construction+of+place+identity+on+new+york+city%E2%80%99s+lower+east+side+1%2E+Journal+of+Sociolinguistics%2C+13%285%29%3A634%E2%80%93658%2E)
14. Yoshua Bengio, Réjean Ducharme, Pascal Vincent, and Christian Janvin. 2003. [A neural probabilistic language model](https://md.research.elamur.ai/free/en/papers/bengio-2003-neural-probabilistic-language-model/). The journal of machine learning research, 3:1137–1155.
15. Sarah Bunin Benor. 2010. Ethnolinguistic repertoire: Shifting the analytic focus in language and ethnicity 1. Journal of Sociolinguistics, 14(2):159–183. [find](https://scholar.google.com/scholar?q=Sarah+Bunin+Benor%2E+2010%2E+Ethnolinguistic+repertoire%3A+Shifting+the+analytic+focus+in+language+and+ethnicity+1%2E+Journal+of+Sociolinguistics%2C+14%282%29%3A159%E2%80%93183%2E)
16. Houda Bouamor, Sabit Hassan, and Nizar Habash. 2019. [The MADAR shared task on Arabic fine-grained dialect identification](https://md.research.elamur.ai/free/en/papers/bouamor-2019-madar-shared-task-arabic-fine/). In Proceedings of the Fourth Arabic Natural Language Processing Workshop, pages 199–207.
17. Mary Bucholtz. 2010. White kids: Language, race, and styles of youth identity. Cambridge University Press. [find](https://scholar.google.com/scholar?q=Mary+Bucholtz%2E+2010%2E+White+kids%3A+Language%2C+race%2C+and+styles+of+youth+identity%2E+Cambridge+University+Press%2E)
18. Mary Bucholtz and Kira Hall. 2005. Identity and interaction: A sociocultural linguistic approach. Discourse studies, 7(4-5):585–614. [↗](https://doi.org/10.1177/1461445605054407)
19. François Chollet et al. 2015. keras.io. Keras. [https://Diglossia](https://Diglossia). [↗](https://Diglossia)
20. WORD, Nizar Habash, Ramy Eskander, and Abdelati Hawwari. 2012. [A morphological analyzer for egyptian arabic](https://md.research.elamur.ai/free/en/papers/habash-2012-morphological-analyzer-egyptian-arabic/). In Proceedings of the twelfth meeting of the special interest group on computational morphology and phonology, pages 1–9.
21. Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural Computation, 9(8):1735–1780. [↗](https://doi.org/10.1162/neco.1997.9.8.1735)
22. Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. 2017. Bag of tricks for efficient text classification. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, pages 427–431, Valencia, Spain. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Armand+Joulin%2C+Edouard+Grave%2C+Piotr+Bojanowski%2C+and+Tomas+Mikolov%2E+2017%2E+Bag+of+tricks+for+efficient+text+classification%2E+In+Proceedings+of+the+15th+Conference+of+the+European+Chapter+of+the+Associati)
23. Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. 2016. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410. [↗](https://arxiv.org/abs/1602.02410)
24. Ossama Obeid, Nasser Zalmout, Salam Khalifa, Dima Taji, Mai Oudah, Bashar Alhafni, Go Inoue, Fadhl Eryani, Alexander Erdmann, and Nizar Habash. 2020. [Camel tools: An open source python toolkit for arabic natural language processing](https://md.research.elamur.ai/free/en/papers/obeid-2020-camel-tools-open-source-python/). In Proceedings of the 12th language resources and evaluation conference, pages 7022–7032.
25. Natalie Schilling-Estes. 2004. Constructing ethnicity in interaction. Journal of Sociolinguistics, 8(2):163– 195. [↗](https://doi.org/10.1111/j.1467-9841.2004.00257.x)
26. Aliaksei Severyn and Alessandro Moschitti. 2015. Twitter sentiment analysis with deep convolutional neural networks. In Proceedings of the 38th international ACM SIGIR conference on research and development in information retrieval, pages 959–962. [find](https://scholar.google.com/scholar?q=Aliaksei+Severyn+and+Alessandro+Moschitti%2E+2015%2E+Twitter+sentiment+analysis+with+deep+convolutional+neural+networks%2E+In+Proceedings+of+the+38th+international+ACM+SIGIR+conference+on+research+and+devel)
27. Abu Bakr Soliman, Kareem Eissa, and Samhaa R El-Beltagy. 2017. Aravec: A set of arabic word embedding models for use in arabic nlp. Procedia Computer Science, 117:256–265. [find](https://scholar.google.com/scholar?q=Abu+Bakr+Soliman%2C+Kareem+Eissa%2C+and+Samhaa+R+El%2DBeltagy%2E+2017%2E+Aravec%3A+A+set+of+arabic+word+embedding+models+for+use+in+arabic+nlp%2E+Procedia+Computer+Science%2C+117%3A256%E2%80%93265%2E)
28. Kathryn A Woolard. 1998. Simultaneity and bivalency as strategies in bilingualism. Journal of linguistic anthropology, 8(1):3–29. [↗](https://doi.org/10.1525/jlin.1998.8.1.3)
29. Omar F Zaidan and Chris Callison-Burch. 2014. [Arabic dialect identification](https://md.research.elamur.ai/free/en/papers/zaidan-2014-arabic-dialect-identification/). Computational Linguistics, 40(1):171–202. [↗](https://doi.org/10.1162/coli_a_00169)

*Updated 1 November 2026*
