Creating a Large Multi-Layered Representational Repository of Linguistic Code Switched Arabic Data
Paper · 2016 · Mona Diab, Mahmoud Ghoneim, Abdelati Hawwari et al.
Summary
Code switching, where bilingual writers alternate between language varieties within a text or even within a word, causes NLP tools built for a single language to fail. Arabic is a strong case: Modern Standard Arabic (MSA) and Egyptian Dialectal Arabic share much vocabulary, but many shared words carry different meanings. The authors built a large annotated code-switching repository covering three genres: tweets, online commentaries and discussion fora. They designed an XML annotation standard with document, word, switch-point and syntactic layers. They also wrote a generic coarse guideline and an Arabic-specific fine-grained one, each in a detailed in-lab form and a simplified crowdsourcing form. A web tool manages the annotation workflow. Each token receives one of 16 code-switching labels plus POS and orthographic-error tags, and the label depends on sentence context. The resource holds 886,252 tokens with an overall inter-annotator agreement of 93.1%. It addresses the shortage of consistent code-switching training data, which earlier work identified as a main reason tagger accuracy collapses on mixed text.
Key points
- The repository contains 886,252 tokens of MSA / Egyptian DA code-switched text. Sources are the LDC Egyptian Arabic Treebanks parts 1–8 (ARZ), the Arabic Online Commentary dataset (AOC) and Twitter (TWT). Overall IAA is 93.1%.
- There are 16 CS labels. The linguistic ones are MSA, DA, Ambiguous, MA (MSA affix on a dialectal word), FW, MF (Arabic morphology on a foreign word or the reverse), NE and UNK. Non-linguistic labels cover Latin script, URLs, punctuation, numbers, diacritics, emoticons, sounds and Other.
- Each token also gets one of 14 POS tags (including MWE-Com and NE-Com for parts of multiword expressions and named entities) and an error tag, either Typo or Correct.
- The XML schema has four levels. The document, word and CS-point levels are fully filled; the syntactic level is only partly filled. Switch points are not marked by hand; they are derived wherever the word-level language tag changes.
- Annotation was done in-lab by three native annotators plus a lead. Each had a mandatory three-week training period, and the team met weekly. Crowdsourcing was used in parallel.
Interesting ideas
- I1. Shared words are labeled by the reading they have in context, and a separate Ambiguous tag covers cases the context cannot resolve, instead of forcing a guess.
- I2. Hybrid words get their own tags (MA, MF), and in mixed words each morpheme is assigned a language separately.
- I3. Spelling problems are kept in their own Typo/Correct layer, separate from the linguistic label.
- I4. The same tagset has two guideline versions: a detailed one for expert gold annotation and a simplified one for crowd workers, each mapped onto the shared label set.
- I5. The guidelines were revised over several rounds by analyzing where annotators disagreed.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (tokens): The tagger and lemmatizer could output an explicit "undecidable here" state with the reason, rather than a confident but arbitrary choice, which keeps the pipeline honest and explainable.
- I2 (tokens): Morphology could record which part of a word comes from which source, for example a borrowed stem with native English inflection, so odd coinages are analyzed instead of becoming unknown tokens.
- I3 (tokens): A separate typo flag lets the tagger record a misspelling or a bad split or merge without corrupting the POS or lemma decision.
- I4 (learn): LLM teacher tiers could receive prompts at different levels of detail that all map to one label inventory, so cheap and expensive annotators produce comparable silver data.
- I5 (learn): Disagreements among witness parsers could be grouped and inspected the same way, so that recurring conflicts lead to clearer conversion conventions or new repair rules.
Institutions
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 worksArts and Humanities · 16,039 worksLanguage and Linguistics · 15,891 works
🧭 Topics 1Research subjects and languages the work is about.Semitic languages · 2,908 works
Cite
Cite as Mona Diab, Mahmoud Ghoneim, Abdelati Hawwari, Fahad AlGhamdi, Nada AlMarwani and Mohamed Al-Badrashiny. 2016. Creating a Large Multi-Layered Representational Repository of Linguistic Code Switched Arabic Data. Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16).
@inproceedings{diab2016creating,
title = {{Creating a Large Multi-Layered Representational Repository of Linguistic Code Switched Arabic Data}},
author = {Mona Diab, Mahmoud Ghoneim, Abdelati Hawwari, Fahad AlGhamdi, Nada AlMarwani and Mohamed Al-Badrashiny},
booktitle = {Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16)},
year = {2016},
doi = {10.63317/2k45bgq8m7ru},
url = {https://doi.org/10.63317/2k45bgq8m7ru}
}References
- Al-Badrashiny, M., Elfardy, H., & Diab, M. (2015). AIDA2: A Hybrid Approach for Token and Sentence Level Dialect Identification in Arabic. CoNLL 2015, 42.
- Al-Badrashiny, M., Pasha, A., Diab, M., Habash, N., Rambow, O., Salloum, W., Eskander, R. (2016). SPLIT: Smart Preprocessing (Quasi) Language Independent Tool. In the proceedings of the 10th International Conference on Language Resources and Evaluation (LREC'16). find
- Albirini, A., Benmamoun, E., & Saadah, E. (2011).Grammatical features of Egyptian and Palestinian Arabic heritage speakers’ oral production. Studies in Second Language Acquisition, 33(02), 273-303. find
- Bassiouney, R. (Ed.). (2010). Arabic and the media. Brill. ↗
- Benajiba, Y., & Diab, M. (2010). A web application for dialectal arabic text annotation. In Proceedings of the LREC workshop for language resources (LRS) and human language technologies (HLT) for Semitic languages: Status, updates, and prospects. find
- Chan, B. H. S. (2003). Aspects of the Syntax, the Pragmatics, and the Production of Code-Switching. Peter Lang. find
- Chan, B. H. S. (2008). Code-switching, word order and the lexical/functional category distinction. Lingua, 118(6), 777-809. ↗
- Cook, V. J. (1992). Evidence for multicompetence. Language learning, 42(4), 557-591. ↗
- Dashti, A. (2015). The role and status of the English language in Kuwait. English Today, 31(03), 28-33. ↗
- Dey, A., & Fung, P. (2014). A Hindi-English Code-Switching Corpus. In The 9th International Conference on Language Resources and Evaluation (LREC) (pp. 2410-2413). find
- Chiang, D., Diab, M. T., Habash, N., Rambow, O., & Shareef, S. (2006). Parsing Arabic Dialects. In EACL. ↗
- Elfardy, H., & Diab, M. T. (2012). Simplified guidelines for the creation of Large Scale Dialectal Arabic Annotations. In LREC (pp. 371-378).
- Fleiss, J. L. (1971). Measuring nominal scale agreement among many raters. Psychological bulletin, 76(5), 378. ↗
- Gelderen, E., & MacSwan, J. (2008). Interface conditions and code-switching: Pronouns, lexical DPs, and checking theory. Lingua, 118(6), 765-776. ↗
- Grosjean, F. (1989). Neurolinguists, beware! The bilingual is not two monolinguals in one person. Brain and language, 36(1), 3-15. find
- Lederberg, A. R., & Morales, C. (1985). Code switching by bilinguals: Evidence against a third grammar. Journal of Psycholinguistic Research, 14(2), 113-136. ↗
- Li, Y., Yu, Y., & Fung, P. (2012). A Mandarin-English Code-Switching Corpus. In LREC (pp. 2515-2519). find
- Lyu, D. C., Lyu, R. Y., Chiang, Y. C., & Hsu, C. N. (2006, May). Speech recognition on code-switching among the Chinese dialects. In Acoustics, Speech and Signal Processing, 2006. ICASSP 2006 Proceedings. 2006 IEEE International Conference on (Vol. 1, pp. I-I). IEEE. find
- Maamouri, M., Bies, A., Kulick, S., Tabessi, D., & Krouna, S. (2012). Egyptian Arabic Treebank Pilot. find
- Maharjan, S., Blair, E., Bethard, S., & Solorio, T. (2015, June). Developing Language-tagged Corpora for Code-switching Tweets. In The 9th Linguistic Annotation Workshop held in conjuncion with NAACL 2015 (p. 72). find
- MacSwan, J. (1999). A minimalist approach to intrasentential codeswitching. New York and London: Garland, 1999. Language in Society, 30(02), 285-289. find
- MacSwan, J. (2000). The architecture of the bilingual language faculty: Evidence from intrasentential code switching. Bilingualism: language and cognition, 3(01), 37-54. ↗
- MacSwan, J. (2005). Codeswitching and generative grammar: A critique of the MLF model and some remarks on “modified minimalism”. Bilingualism: language and cognition, 8(01), 1-22. find
- MacSwan, J. (2005). Remarks on Jake, Myers-Scotton and Gross's response: There is no “matrix language”. Bilingualism: Language and cognition, 8(03), 277-284. find
- Myers-Scotton, C. (1993). Common and uncommon ground: Social and structural factors in codeswitching. Language in society, 22(04), 475-503. ↗
- Muysken, P. (2000). Bilingual speech: A typology of code-mixing (Vol. 11). Cambridge University Press. find
- Redouane, R. (2005). Linguistic constraints on codeswitching and codemixing of bilingual Moroccan Arabic-French speakers in Canada. In ISB4: Proceedings of the 4th International Symposium on Bilingualism (pp. 1921-1933). find
- Solorio, T., Blair, E., Maharjan, S., Bethard, S., Diab, M., Ghoneim, M., ... & Fung, P. (2014, October). Overview for the first shared task on language identification in code-switched data. In Proceedings of The First Workshop on Computational Approaches to Code Switching (pp. 62-72).
- Solorio, T., & Liu, Y. (2008, October). Part-of-speech tagging for English-Spanish code-switched text. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (pp. 1051-1060). Association for Computational Linguistics.
- Zaidan, O. F., & Callison-Burch, C. (2011, June). The Arabic online commentary dataset: an annotated dataset of informal Arabic with high dialectal content. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies: short papers-Volume 2 (pp. 37-41). Association for Computational Linguistics. 11.
- Language Resource References Linguistic Data Consortium. (2012). Egyptian Arabic Treebank DF Part 1 V2.0. Catalog No.: LDC2012E93. find
- Linguistic Data Consortium. (2012). Egyptian Arabic Treebank DF Part 2 V2.0. Catalog No.: LDC2012E98 find
- Linguistic Data Consortium. (2012). Egyptian Arabic Treebank DF Part 3 V2.0. Catalog No.: LDC2012E89 find
- Linguistic Data Consortium. (2012). Egyptian Arabic Treebank DF Part 4 V2.0. Catalog No.: LDC2012E99 find
- Linguistic Data Consortium. (2012). Egyptian Arabic Treebank DF Part 5 V2.0. Catalog No.: LDC2012E107 find
- Linguistic Data Consortium. (2012). Egyptian Arabic Treebank DF Part 6 V2.0. Catalog No.: LDC2012E125 find
- Linguistic Data Consortium. (2012). Egyptian Arabic Treebank DF Part 7 V2.0. Catalog No.: LDC2013E12 find
- Linguistic Data Consortium. (2013). Egyptian Arabic Treebank DF Part 8 V2.0. Catalog No.: LDC2013E21 find
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/diab-2016-creating-large-multi-layered-representational/