UBC-NLP/Alexandria

Alexandria: A Multi-Domain Dialectal Arabic Machine Translation Dataset for Culturally Inclusive and Linguistically Diverse LLMs

Python

6

11 commits

updated Jun 24, 2026

See the code

README

Alexandria: A Multi-Domain Dialectal Arabic Machine Translation Dataset for Culturally Inclusive and Linguistically Diverse LLMs

Alexandria covers 13 Arab countries, 11 domains, and 107K community-driven samples.

Alexandria dataset overview

Paper Task Countries Domains Website Hugging Face Dataset Translation Guidelines Revision Guidelines

This repository accompanies the Alexandria paper and collects the project assets used to build and evaluate a benchmark for Dialectal Arabic Machine Translation, Arabic dialect translation, English-to-dialect Arabic translation, dialect-to-English translation, and multi-turn conversational MT. Alexandria is organized into four splits: Train, Dev, Public Test, and Private Test. This repository focuses on the materials behind the dataset creation pipeline: prompt templates for English source conversation generation, participant guidelines for translation and revision, and the evaluation area for benchmarking Arabic MT systems and LLMs on the Alexandria public test set.

🌟 Overview

Alexandria is introduced in the paper Alexandria: A Multi-Domain Dialectal Arabic Machine Translation Dataset for Culturally Inclusive and Linguistically Diverse LLMs. The project targets a persistent gap in Arabic NLP: strong support for Modern Standard Arabic but much weaker coverage of dialectal Arabic, especially in realistic, culturally grounded conversational settings.

This repository organizes the Alexandria resources used across the creation workflow and the public-test evaluation setup for dialectal Arabic MT, city-level Arabic dialect translation, culturally grounded machine translation, code-switching-aware translation, gender-aware translation, and Arabic LLM evaluation.

Keywords: dialectal Arabic machine translation, Arabic dialect translation, conversational machine translation, multi-turn MT, city-level dialect benchmarking, English-dialect parallel data, culturally grounded Arabic NLP, code-switching, persona-aware translation, gender-conditioned translation, Arabic LLM evaluation.

πŸ“Š Dataset Statistics

Alexandria contains 107,631 total turns across 13 Arab country contexts and 11 domains. The dataset is city-level, multi-turn, English <-> Dialect Arabic, averages 13.23 words per turn, and has 0.826 Distinct-2 lexical diversity.

πŸ§ͺ Dataset Splits

Alexandria is organized into four standard benchmark splits:

  • Train
  • Dev
  • Public Test
  • Private Test

The Public Test split is intended for open benchmarking and reproducible reporting, while the Private Test split supports held-out evaluation.

πŸ“¦ Dataset Access

You can access Alexandria directly from Hugging Face using the datasets library. The example below loads a specific country subset and reads the first English and dialectal turns from the training split.

from datasets import load_dataset

# Load a specific country subset (e.g., 'MA' for Morocco, 'EG' for Egypt) with a specific split
train_data = load_dataset("UBC-NLP/alexandria", name="MA", split="train")
test_data = load_dataset("UBC-NLP/alexandria", name="MA", split="test")

# View the first parallel turn of the first conversation from the train set
first_conv = train_data[0]
eng_turn = first_conv['english_conversation'][0]
dialect_turn = first_conv['dialectal_conversation'][0]

print(f"English: {eng_turn['text']}")
print(f"Dialect: {dialect_turn['text']}")

The 13 dialect settings covered in Alexandria are Jordanian Arabic, Lebanese Arabic, Palestinian Arabic, Syrian Arabic, Saudi Arabic, Omani Arabic, Yemeni Arabic, Egyptian Arabic, Sudanese Arabic, Libyan Arabic, Moroccan Arabic, Mauritanian Arabic, and Tunisian Arabic.

Regional grouping in the table below:

  • Levant: JO (Jordanian Arabic), LB (Lebanese Arabic), PS (Palestinian Arabic), SY (Syrian Arabic)
  • Gulf: SA (Saudi Arabic), OM (Omani Arabic), YE (Yemeni Arabic)
  • Nile: EG (Egyptian Arabic), SD (Sudanese Arabic)
  • Maghreb: LY (Libyan Arabic), MA (Moroccan Arabic), MR (Mauritanian Arabic), TN (Tunisian Arabic)
DomainJOLBPSSYSAOMYEEGSDLYMAMRTNTotal
Agriculture/Farming82511401770931116291552958316323157097048110270
Commerce/Transactions7501004159574910206505795062011604457574018817
Construction/Real Estate8599951761861116197469666022527157467348510195
Education/Academia81611911513831101710795635491702206018635519964
Energy/Resources7861048171592811779375876251892434477194709871
Everyday/Social96712151697787102088864260417521059582455010174
Healthcare/Medical7271240172878110438955484871642535569485229892
Legal/Financial693100615667578577534965391771744816424128553
Logistics/Transport84210201512950123484262964618918759387751510036
Professional/Workplace84512201810959111286654964517825348070952610152
Tourism/Hospitality7201161159688410048156086081902165678784609707
Total8830122401826394181180796146426645220212418590988605373107631

πŸ” Comparison with Other Dialectal Arabic MT Datasets

Alexandria is designed to extend prior Arabic dialect MT resources with broader domain coverage, multi-turn conversational structure, local context, code-switching support, gender-direction annotations, and persona roles.

Dataset# Sentence Pairs / Turns# DialectsGranularitySrc TypeDirection# DomainsAvg. wordsDistinct-2LCCSGDPR
PADIC (Meftouh et al., 2015)38K6CountrySentenceEng <-> Dialect16.770.782NoNoNoNo
MADAR (Bouamor et al., 2018)100K13CitySentenceEng <-> Dialect15.730.768NoNoNoNo
FLORES+ (Team et al., 2022)16K9CountrySentenceEng <-> Dialect318.390.898NoNoNoNo
Alexandria (ours)107K13CityMulti-turnEng <-> Dialect1113.230.826YesYesYesYes

LC = Local Context, CS = Code-Switching, GD = gender-direction annotations, PR = persona roles.

πŸ—‚οΈ Repository Structure

.
β”œβ”€β”€ evaluation_code/
β”œβ”€β”€ guidelines/
β”‚   β”œβ”€β”€ Alexandria_MT_Revision_Phase_Guidelines.pdf
β”‚   └── Alexandria_MT_Translation_Phase_Guidelines.pdf
β”œβ”€β”€ images/
β”‚   └── alexandria_overview.webp
└── prompts/
    β”œβ”€β”€ coversations_generation_prompt.txt
    β”œβ”€β”€ *_prompt.txt
    └── topics_examples/

prompts/

The prompts/ directory covers the prompts used per domain to generate the English source conversations that were later translated into local dialects and languages. It includes:

  • Domain-specific prompt (for topics generation) files for: agriculture_farming, commerce_transactions, construction_real_estate, education_academia, energy_resources, everyday_social, healthcare_medical, legal_financial, logistics_transportation, professional_workplace, and tourism_hospitality
  • Example topic files under prompts/topics_examples/ for the same set of domains
  • A shared instruction template (for conversations generation) in coversations_generation_prompt.txt

guidelines/

The guidelines/ directory contains the documents given to participants during the human data creation stages:

  • Alexandria_MT_Translation_Phase_Guidelines.pdf for the translation phase
  • Alexandria_MT_Revision_Phase_Guidelines.pdf for the revision phase

evaluation_code/

The evaluation_code/ directory covers the evaluation code for running Alexandria benchmarking on your own models, with the public evaluation setup centered on the Public Test split.

🧩 Domains Covered

Alexandria spans 11 practical domains designed to reflect everyday and specialized communication across Arab communities:

  • Agriculture and farming
  • Commerce and transactions
  • Construction and real estate
  • Education and academia
  • Energy and resources
  • Everyday social interactions
  • Healthcare and medical settings
  • Legal and financial settings
  • Logistics and transportation
  • Professional workplace communication
  • Tourism and hospitality

πŸ“ Citation

If you use this repository or the Alexandria dataset in your research, please cite the paper:

@inproceedings{el-mekki-etal-2026-alexandria,
    title = "Alexandria: A Multi-Domain Dialectal {A}rabic Machine Translation Dataset for Culturally Inclusive and Linguistically Diverse {LLM}s",
    author = "EL Mekki, Abdellah  and
      Magdy, Samar M.  and
      Atou, Houdaifa  and
      AbuHweidi, Ruwa  and
      Qawasmeh, Baraah  and
      Nacar, Omer  and
      Al-hibiri, Thikra  and
      Saadie, Razan  and
      Alsayadi, Hamzah A.  and
      Hammouda, Nadia Ghezaiel  and
      Alkhazimi, Alshima Mohammed  and
      Hamod, Aya  and
      Al-Ghafri, Al-Yas Yaqoob  and
      El-Sayed, Wesam  and
      al Sharji, Asila Ismail  and
      Ballout, Mohamad  and
      Belfathi, Anas  and
      Ghaddar, Karim  and
      Sibaee, Serry  and
      Aoun, Alaa  and
      Aseri, Aeej Mohammed  and
      Abureesh, Lina  and
      Bashiti, Ahlam  and
      Yousef, Majdal  and
      Hafiz, Abdulaziz  and
      Mohamed, Yehdih  and
      Hamedtou, Emira  and
      Emehah, Brakehe  and
      Alhamouri, Rahaf  and
      Nafea, Youssef  and
      El Aatar, Aya  and
      Al-Dhabyani, Walid  and
      Hamed, Emhemed S.  and
      Shatnawi, Sara  and
      Alwajih, Fakhraddin  and
      Elkhidir, Khalid  and
      Alasmari, Ashwag  and
      Gerrio, Abdurrahman  and
      Alshahri, Omar Said  and
      Elmadany, AbdelRahim A.  and
      Berrada, Ismail  and
      Al-kathiri, Amir Azad Adli  and
      Zaraket, Fadi  and
      Jarrar, Mustafa  and
      EL Hadj, Yahya Mohamed  and
      Alhuzali, Hassan  and
      Abdul-Mageed, Muhammad",
    editor = "Liakata, Maria  and
      Moreira, Viviane P.  and
      Zhang, Jiajun  and
      Jurgens, David",
    booktitle = "Proceedings of the 64th Annual Meeting of the {A}ssociation for {C}omputational {L}inguistics (Volume 1: Long Papers)",
    month = jul,
    year = "2026",
    address = "San Diego, California, United States",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2026.acl-long.1503/",
    pages = "32567--32592",
    ISBN = "979-8-89176-390-6"
}

🀝 Contact

For questions, corrections, or feedback, please open an issue in this repository.

arabic-nlp
benchmark
dataset
machine-translation
parallel-dataset
training-data

UBC-NLP/Alexandria

Alexandria: A Multi-Domain Dialectal Arabic Machine Translation Dataset for Culturally Inclusive and Linguistically Diverse LLMs

Python

6

11 commits

updated Jun 24, 2026

See the code

README

Alexandria: A Multi-Domain Dialectal Arabic Machine Translation Dataset for Culturally Inclusive and Linguistically Diverse LLMs

Alexandria covers 13 Arab countries, 11 domains, and 107K community-driven samples.

Alexandria dataset overview

Paper Task Countries Domains Website Hugging Face Dataset Translation Guidelines Revision Guidelines

This repository accompanies the Alexandria paper and collects the project assets used to build and evaluate a benchmark for Dialectal Arabic Machine Translation, Arabic dialect translation, English-to-dialect Arabic translation, dialect-to-English translation, and multi-turn conversational MT. Alexandria is organized into four splits: Train, Dev, Public Test, and Private Test. This repository focuses on the materials behind the dataset creation pipeline: prompt templates for English source conversation generation, participant guidelines for translation and revision, and the evaluation area for benchmarking Arabic MT systems and LLMs on the Alexandria public test set.

🌟 Overview

Alexandria is introduced in the paper Alexandria: A Multi-Domain Dialectal Arabic Machine Translation Dataset for Culturally Inclusive and Linguistically Diverse LLMs. The project targets a persistent gap in Arabic NLP: strong support for Modern Standard Arabic but much weaker coverage of dialectal Arabic, especially in realistic, culturally grounded conversational settings.

This repository organizes the Alexandria resources used across the creation workflow and the public-test evaluation setup for dialectal Arabic MT, city-level Arabic dialect translation, culturally grounded machine translation, code-switching-aware translation, gender-aware translation, and Arabic LLM evaluation.

Keywords: dialectal Arabic machine translation, Arabic dialect translation, conversational machine translation, multi-turn MT, city-level dialect benchmarking, English-dialect parallel data, culturally grounded Arabic NLP, code-switching, persona-aware translation, gender-conditioned translation, Arabic LLM evaluation.

πŸ“Š Dataset Statistics

Alexandria contains 107,631 total turns across 13 Arab country contexts and 11 domains. The dataset is city-level, multi-turn, English <-> Dialect Arabic, averages 13.23 words per turn, and has 0.826 Distinct-2 lexical diversity.

πŸ§ͺ Dataset Splits

Alexandria is organized into four standard benchmark splits:

  • Train
  • Dev
  • Public Test
  • Private Test

The Public Test split is intended for open benchmarking and reproducible reporting, while the Private Test split supports held-out evaluation.

πŸ“¦ Dataset Access

You can access Alexandria directly from Hugging Face using the datasets library. The example below loads a specific country subset and reads the first English and dialectal turns from the training split.

from datasets import load_dataset

# Load a specific country subset (e.g., 'MA' for Morocco, 'EG' for Egypt) with a specific split
train_data = load_dataset("UBC-NLP/alexandria", name="MA", split="train")
test_data = load_dataset("UBC-NLP/alexandria", name="MA", split="test")

# View the first parallel turn of the first conversation from the train set
first_conv = train_data[0]
eng_turn = first_conv['english_conversation'][0]
dialect_turn = first_conv['dialectal_conversation'][0]

print(f"English: {eng_turn['text']}")
print(f"Dialect: {dialect_turn['text']}")

The 13 dialect settings covered in Alexandria are Jordanian Arabic, Lebanese Arabic, Palestinian Arabic, Syrian Arabic, Saudi Arabic, Omani Arabic, Yemeni Arabic, Egyptian Arabic, Sudanese Arabic, Libyan Arabic, Moroccan Arabic, Mauritanian Arabic, and Tunisian Arabic.

Regional grouping in the table below:

  • Levant: JO (Jordanian Arabic), LB (Lebanese Arabic), PS (Palestinian Arabic), SY (Syrian Arabic)
  • Gulf: SA (Saudi Arabic), OM (Omani Arabic), YE (Yemeni Arabic)
  • Nile: EG (Egyptian Arabic), SD (Sudanese Arabic)
  • Maghreb: LY (Libyan Arabic), MA (Moroccan Arabic), MR (Mauritanian Arabic), TN (Tunisian Arabic)
DomainJOLBPSSYSAOMYEEGSDLYMAMRTNTotal
Agriculture/Farming82511401770931116291552958316323157097048110270
Commerce/Transactions7501004159574910206505795062011604457574018817
Construction/Real Estate8599951761861116197469666022527157467348510195
Education/Academia81611911513831101710795635491702206018635519964
Energy/Resources7861048171592811779375876251892434477194709871
Everyday/Social96712151697787102088864260417521059582455010174
Healthcare/Medical7271240172878110438955484871642535569485229892
Legal/Financial693100615667578577534965391771744816424128553
Logistics/Transport84210201512950123484262964618918759387751510036
Professional/Workplace84512201810959111286654964517825348070952610152
Tourism/Hospitality7201161159688410048156086081902165678784609707
Total8830122401826394181180796146426645220212418590988605373107631

πŸ” Comparison with Other Dialectal Arabic MT Datasets

Alexandria is designed to extend prior Arabic dialect MT resources with broader domain coverage, multi-turn conversational structure, local context, code-switching support, gender-direction annotations, and persona roles.

Dataset# Sentence Pairs / Turns# DialectsGranularitySrc TypeDirection# DomainsAvg. wordsDistinct-2LCCSGDPR
PADIC (Meftouh et al., 2015)38K6CountrySentenceEng <-> Dialect16.770.782NoNoNoNo
MADAR (Bouamor et al., 2018)100K13CitySentenceEng <-> Dialect15.730.768NoNoNoNo
FLORES+ (Team et al., 2022)16K9CountrySentenceEng <-> Dialect318.390.898NoNoNoNo
Alexandria (ours)107K13CityMulti-turnEng <-> Dialect1113.230.826YesYesYesYes

LC = Local Context, CS = Code-Switching, GD = gender-direction annotations, PR = persona roles.

πŸ—‚οΈ Repository Structure

.
β”œβ”€β”€ evaluation_code/
β”œβ”€β”€ guidelines/
β”‚   β”œβ”€β”€ Alexandria_MT_Revision_Phase_Guidelines.pdf
β”‚   └── Alexandria_MT_Translation_Phase_Guidelines.pdf
β”œβ”€β”€ images/
β”‚   └── alexandria_overview.webp
└── prompts/
    β”œβ”€β”€ coversations_generation_prompt.txt
    β”œβ”€β”€ *_prompt.txt
    └── topics_examples/

prompts/

The prompts/ directory covers the prompts used per domain to generate the English source conversations that were later translated into local dialects and languages. It includes:

  • Domain-specific prompt (for topics generation) files for: agriculture_farming, commerce_transactions, construction_real_estate, education_academia, energy_resources, everyday_social, healthcare_medical, legal_financial, logistics_transportation, professional_workplace, and tourism_hospitality
  • Example topic files under prompts/topics_examples/ for the same set of domains
  • A shared instruction template (for conversations generation) in coversations_generation_prompt.txt

guidelines/

The guidelines/ directory contains the documents given to participants during the human data creation stages:

  • Alexandria_MT_Translation_Phase_Guidelines.pdf for the translation phase
  • Alexandria_MT_Revision_Phase_Guidelines.pdf for the revision phase

evaluation_code/

The evaluation_code/ directory covers the evaluation code for running Alexandria benchmarking on your own models, with the public evaluation setup centered on the Public Test split.

🧩 Domains Covered

Alexandria spans 11 practical domains designed to reflect everyday and specialized communication across Arab communities:

  • Agriculture and farming
  • Commerce and transactions
  • Construction and real estate
  • Education and academia
  • Energy and resources
  • Everyday social interactions
  • Healthcare and medical settings
  • Legal and financial settings
  • Logistics and transportation
  • Professional workplace communication
  • Tourism and hospitality

πŸ“ Citation

If you use this repository or the Alexandria dataset in your research, please cite the paper:

@inproceedings{el-mekki-etal-2026-alexandria,
    title = "Alexandria: A Multi-Domain Dialectal {A}rabic Machine Translation Dataset for Culturally Inclusive and Linguistically Diverse {LLM}s",
    author = "EL Mekki, Abdellah  and
      Magdy, Samar M.  and
      Atou, Houdaifa  and
      AbuHweidi, Ruwa  and
      Qawasmeh, Baraah  and
      Nacar, Omer  and
      Al-hibiri, Thikra  and
      Saadie, Razan  and
      Alsayadi, Hamzah A.  and
      Hammouda, Nadia Ghezaiel  and
      Alkhazimi, Alshima Mohammed  and
      Hamod, Aya  and
      Al-Ghafri, Al-Yas Yaqoob  and
      El-Sayed, Wesam  and
      al Sharji, Asila Ismail  and
      Ballout, Mohamad  and
      Belfathi, Anas  and
      Ghaddar, Karim  and
      Sibaee, Serry  and
      Aoun, Alaa  and
      Aseri, Aeej Mohammed  and
      Abureesh, Lina  and
      Bashiti, Ahlam  and
      Yousef, Majdal  and
      Hafiz, Abdulaziz  and
      Mohamed, Yehdih  and
      Hamedtou, Emira  and
      Emehah, Brakehe  and
      Alhamouri, Rahaf  and
      Nafea, Youssef  and
      El Aatar, Aya  and
      Al-Dhabyani, Walid  and
      Hamed, Emhemed S.  and
      Shatnawi, Sara  and
      Alwajih, Fakhraddin  and
      Elkhidir, Khalid  and
      Alasmari, Ashwag  and
      Gerrio, Abdurrahman  and
      Alshahri, Omar Said  and
      Elmadany, AbdelRahim A.  and
      Berrada, Ismail  and
      Al-kathiri, Amir Azad Adli  and
      Zaraket, Fadi  and
      Jarrar, Mustafa  and
      EL Hadj, Yahya Mohamed  and
      Alhuzali, Hassan  and
      Abdul-Mageed, Muhammad",
    editor = "Liakata, Maria  and
      Moreira, Viviane P.  and
      Zhang, Jiajun  and
      Jurgens, David",
    booktitle = "Proceedings of the 64th Annual Meeting of the {A}ssociation for {C}omputational {L}inguistics (Volume 1: Long Papers)",
    month = jul,
    year = "2026",
    address = "San Diego, California, United States",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2026.acl-long.1503/",
    pages = "32567--32592",
    ISBN = "979-8-89176-390-6"
}

🀝 Contact

For questions, corrections, or feedback, please open an issue in this repository.

arabic-nlp
benchmark
dataset
machine-translation
parallel-dataset
training-data