Cairo Student Code-Switch (CSCS) Corpus: An Annotated Egyptian Arabic-English Corpus

Mohamed Balabel, Injy Hamed, Slim Abdennadher, Ngoc Thang Vu, Özlem ÇetinogluLREC 2020

Introduction

Code-switching (CS)—the practice of alternating between two or more languages in a single conversation—is a prevalent linguistic phenomenon, particularly in the Arabic-speaking world. Despite its frequency, Natural Language Processing (NLP) tools often fail to handle CS effectively because most models are trained on monolingual datasets. The Cairo Student Code-Switch (CSCS) corpus addresses this gap by providing a new, gold-standard resource for Egyptian Arabic-English speech.

The development of this corpus tackles three primary hurdles:

  1. Data Scarcity: A lack of annotated corpora for Egyptian Arabic mixed with English.
  2. Non-Standardization: Egyptian Arabic (DA) lacks the standardized orthography and grammar found in Modern Standard Arabic (MSA).
  3. Annotation Conflict: Structural friction occurs when grammars collide, such as when an English noun is used with an Arabic prefix (e.g., al-factor).

Methodology

The researchers utilized a raw speech dataset consisting of interviews with students at the German University in Cairo. The annotation process followed a two-phase pipeline:

Phase 1: Orthography and Transcription

Spelling guidelines were established based on the Egyptian Arabic Wikipedia to ensure consistency. Audio was processed by three transcribers and manually revised by native or near-native speakers.

Phase 2: Multi-Layer Annotation

Manual, gold-standard annotation for tokenization, POS tagging, and lemmatization was performed using the CONLL-U format. To resolve conflicts between English and Arabic grammars, the team implemented a "Three Operations" framework:

  • Unification: Applying consistent principles where linguistic structures are similar.
  • Discrimination: Distinguishing between superficially similar but functionally different structures (e.g., the English "the" vs. the Arabic prefix "al-").
  • Disambiguation: Making executive decisions when a word could be interpreted through either grammar, typically prioritizing Arabic grammar when it is "thrust upon" English vocabulary.

The CSCS Corpus

The current release of the CSCS corpus includes 1,153 transcribed sentences from six participants, totaling 11,286 tokens. Approximately 68% of the sentences exhibit intra-sentential code-switching.

Table 1: Summary of the CSCS corpus statistics, including sentence and token counts across languages.

The corpus reveals that roughly 4% of all tokens are code-switched at the morphological level, containing elements from both languages. Multiword tokens, which represent a significant challenge for automated tokenizers due to Arabic's reliance on cliticization, account for 1,222 instances in the dataset.

Linguistic Analysis and POS Preferences

A key finding of the study is the dominance of Arabic grammar over English vocabulary. Speakers frequently apply Arabic morphological rules to English words, such as using the Arabic definite prefix al- with English noun phrases (e.g., al-perspective camera).

Analysis of Part-of-Speech (POS) tags shows a distinct "division of labor" between the two languages. English is the primary source for nouns and proper nouns, while Arabic remains the dominant language for verbs. Adjectives and numbers are distributed more evenly between the two languages.

Table 2: Distribution of Part-of-Speech (POS) tags across English, Arabic, and code-switched (CS) tokens.

As shown in the data, nouns had the highest frequency of code-switching (335 tokens), followed by verbs (74 tokens). This distribution highlights how English vocabulary is integrated into the Arabic grammatical framework.

Conclusion and Future Work

The CSCS corpus provides a robust foundation for training CS-aware NLP models. While the initial release is limited in sample size and lacks syntactic dependency relations, future work aims to expand the dataset to include all 12 original participants and develop guidelines for syntactic dependency annotation. The ultimate goal is to create a full-scale Egyptian Arabic-English treebank, providing a critical resource for the development of sophisticated multilingual NLP systems.

Summary updated

BibTeX
@inproceedings{balabel2020cairo,
  author = {Mohamed Balabel and Injy Hamed and Slim Abdennadher and Ngoc Thang Vu and Özlem Çetinoglu},
  title = {{Cairo Student Code-Switch (CSCS) Corpus: An Annotated Egyptian Arabic-English Corpus}},
  booktitle = {LREC},
  year = {2020},
  url = {https://openreview.net/forum?id=1mGlpvNfvWK},
}
Figure