Moroccan Dialect -Darija- Open Dataset
Summary
Moroccan Darija is spoken by tens of millions of people but has very few computational resources and no agreed spelling. This data paper introduces DODa, the Darija Open Dataset. It is a crowd-extendable lexical resource that links Darija to English, chosen as the target because most NLP tooling is built around it. The data is hosted on GitHub under the MIT license.
DODa has more than 10K entries written in a Latin-based alphanumeric script, and each entry often appears in several spellings. Entries are grouped two ways: by part of speech and by meaning. The dataset also holds structured extras: verb conjugations, gender and number paradigms for nouns, links from verbs to their derived nouns, and idioms and proverbs. The authors set out spelling guidelines that formalise conventions already common on social media.
As a demonstration, the 1000 ILSVRC ImageNet classes were translated into Darija, and a pretrained ResNet50 was used to label web images in Darija. The paper reports no quantitative evaluation.
The resource matters because earlier datasets such as MADAR and MDED map Darija to MSA, are mostly static, or cover narrow domains.
Key points
- DODa has over 10K Darija ⇆ English entries, is published on GitHub under MIT, and is designed to keep growing through outside contributions.
- It has six part-of-speech files: verbs, nouns, adjectives, adverbs, prepositions and determiners. Semantic classes include food, animals, family, emotions and professions, and there are extra files for idioms and proverbs.
- The morphological subsets cover:
- conjugations of 800+ verbs in past, future and imperative;
- about 900 masculine nouns paired with feminine and plural forms;
- 850+ verb-to-noun pairs.
- The romanisation follows a one-letter-one-sound rule:
- digits stand for Arabic sounds (3 for ع, 7 for ح, 9 for ق, 5 or kh for خ);
- capital letters mark emphatic consonants (T for ط, S for ص, D for ض);
- doubled letters mark gemination, as in 7mam "pigeons" versus 7mmam "bathroom".
- The paper compares DODa with prior resources. MADAR has a travel-domain parallel corpus with 14000 Moroccan entries and a 3063-word lexicon covering 25 city dialects. MDED has 12000+ entries and 34K sentences mapped to MSA.
Interesting ideas
- I1. Rather than inventing a new orthography, the authors wrote down the informal conventions people already use online and made them explicit, so machines can separate words that humans tell apart from context. — For Mova (tokens): A similar explicit, documented table mapping informal or noisy English spellings to canonical forms would keep normalisation in the tokenizer transparent and auditable.
- I2. Each lexicon entry carries several attested spellings instead of a single canonical one, so tools learn the variation directly. — For Mova (tokens): Lemma entries in crate en could list spelling variants such as regional, informal and misspelled forms, letting lemmatisation explain which variant matched.
- I3. Derivational links, such as a verb paired with its derived noun, are stored as a separate structured file rather than left implicit in the lexicon. — For Mova (frames): An explicit verb-to-nominalisation table would let prag map phrases like "the building of the bridge" onto the same VerbNet frame and roles as the verb "build".
- I4. Each word gets both a syntactic class and a semantic class, so one resource serves grammar and topic-level grouping at once. — For Mova (world): Coarse semantic tags alongside POS could act as a cheap fallback ontology layer for entities that WordNet or Wikidata do not cover.
- I5. A pretrained model was reused in a new language simply by translating its output label set through the lexicon, with no retraining. — For Mova (back): Generation and translation through the meta-world could likewise render concept nodes into another language by swapping label lexicons, leaving the underlying graph unchanged.
Cited by
- AfriSenti: A Twitter Sentiment Analysis Benchmark for African Languages
- The Evolution of Darija Open Dataset: Introducing Version 2
Cite
@misc{outchakoucht2021moroccan,
title = {{Moroccan Dialect -Darija- Open Dataset}},
author = {Outchakoucht, Aissam and Es-Samaali, Hamza},
year = {2021},
doi = {10.48550/arxiv.2103.09687},
eprint = {2103.09687},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2103.09687}
}References
- J. Laoudi, C. Bonial, L. Donatelli, S. Tratz, and C. Voss, 2018. “Towards a Computational Lexicon for Moroccan Darija: Words, Idioms, and Constructions”. In Proceedings of the Joint Workshop on Linguistic Annotation, Multiword Expressions and Constructions (LAW-MWE-CxG-2018) (pp. 74-85). find
- R. Tachicart, K. Bouzoubaa and H. Jaafar, 2016, "Lexical differences and similarities between Moroccan dialect and Arabic". 4th IEEE International Colloquium on Information Science and Technology (CiSt), Tangier, Morocco, pp. 331-337, doi: 10.1109/CIST.2016.7805066. ↗
- H. Bouamor, et al. 2018, “The MADAR Arabic dialect corpus and lexicon”. 11th International Conference on Language Resources and Evaluation. LREC, European Language Resources Association (ELRA), pp. 3387-3396. find
- R. Tachicart, K. Bouzoubaa, & H. Jaafar, 2014, “Building a Moroccan dialect electronic Dictionary (MDED)”, 5th International Conference on Arabic Language Processing CITALA, Oujda, Morocco. find
- K. Mrini, F. Bond, 2017, “Building the Moroccan Darija Wordnet (MDW) using Bilingual Resources”, Proceedings of the International Conference on Natural Language, Signal and Speech Processing (ICNLSSP). find
- George A. Miller, 1995, “WordNet: A Lexical Database for English”. Communications of the ACM Vol. 38, No. 11: 39-41. find our card
- Z. Iraqui-Sinaceur, 1994, “Le dictionnaire Colin d’arabe dialectal marocain”. Al Manahil. find
- H. Es-Samaali, Aissam Outchakoucht, 2021, DODa’s GitHub repository [online] https://github.com/darija-open-dataset/dataset ↗
- R. Tachicart, K. Bouzoubaa, 2020, “Moroccan Data-Driven Spelling Normalization Using Character Neural Embedding”, Vietnam Journal of Computer Science Vol. 8, No. 1 (2021) 113–131. DOI: 10.1142/S2196888821500044 ↗
- J. Deng, W. Dong, R. Socher, L. Li, Kai Li and Li Fei-Fei, 2009, “ImageNet: A large-scale hierarchical image database”, IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA, pp. 248-255, doi: 10.1109/CVPR.2009.5206848. ↗
- Russakovsky, Olga, et al. 2015, “Imagenet large scale visual recognition challenge”. International journal of computer vision 115.3 pp: 211-252. find our card
- He, Kaiming, et al. 2016, “Deep residual learning for image recognition”. Proceedings of the IEEE conference on computer vision and pattern recognition. find
This page in Markdown → https://md.research.elamur.ai/free/en/papers/outchakoucht-2021-moroccan-dialect-darija-open-dataset/