Dataset Viewer (First 5GB)
Auto-converted to Parquet Duplicate
id
stringclasses
3 values
country
stringclasses
3 values
category
stringclasses
1 value
dialect
stringclasses
3 values
text
stringclasses
3 values
meta
dict
ู…ุตุฑ-ู„ู‡ุฌุฉ-000001
ู…ุตุฑ
ู„ู‡ุฌุฉ
ุงูˆูŠ ูŠุง ู…ุงุดูŠุŒ ุทุนู…ูŠู‡ุŸ
ู…ุซุงู„ ู…ุตุฑูŠ ู‚ุตูŠุฑ ูŠูˆุถุญ ุงู„ู„ู‡ุฌุฉ ุงู„ูŠูˆู…ูŠุฉ.
{ "k1": "ุงูˆูŠ", "k2": "ู…ุงุดูŠ", "k3": "ุทุนู…ูŠู‡" }
ุงู„ุณุนูˆุฏูŠุฉ-ู„ู‡ุฌุฉ-000001
ุงู„ุณุนูˆุฏูŠุฉ
ู„ู‡ุฌุฉ
ู‡ู„ุง ูˆุงู„ู„ู‡ุŒ ูˆุด ูˆุงุฌุฌูƒุŸ
ู…ุซุงู„ ุฎู„ูŠุฌูŠ ู‚ุตูŠุฑ ูŠูˆุถุญ ุงู„ู„ู‡ุฌุฉ ุงู„ูŠูˆู…ูŠุฉ.
{ "k1": "ู‡ู„ุง", "k2": "ูˆุด", "k3": "ูˆุงุฌุฌูƒ" }
ุงู„ู…ุบุฑุจ-ู„ู‡ุฌุฉ-000001
ุงู„ู…ุบุฑุจ
ู„ู‡ุฌุฉ
ูˆุงุด ูƒุงูŠู†ุŸ
ู…ุซุงู„ ู…ุบุฑุจูŠ ู‚ุตูŠุฑ ูŠูˆุถุญ ุงู„ู„ู‡ุฌุฉ ุงู„ูŠูˆู…ูŠุฉ.
{ "k1": "ูˆุงุด", "k2": "ูƒุงูŠู†", "k3": "ูˆู‚ุช" }

Dataset evaluation: See EVALUATION.md for schema checks, indexing status, and quality limitations. Viewer note: default is a lightweight preview; select full to load the complete corpus.

Current Hub Validation Status

  • Repository claim: 3,000,000 records
  • Dataset Server indexed rows: 1,183,361
  • Dataset Server estimate: 2,064,964

The 3M target figure is a raw-repository claim and is not yet fully verified by the Hub index. Validate the JSONL files before publishing a definitive record count; do not cite 3M as a verified count until the audit is complete.

Arab Dialects Dataset - 20 Countries

A large-scale Arabic dialects dataset covering 20 Arab countries and 7 content types per country, with a raw target of 3,000,000 records across 140 JSONL files (12.07 GB). The current Hub index exposes 1,183,361 rows and estimates 2,064,964 rows; the raw target still requires a full JSONL audit.

1. Contents

2. Dataset Summary

Attribute Value
Dataset name arab-dialects-20-countries-3m
Countries 20
Files 140 *.jsonl files (20 x 7)
Total records 3,000,000 raw target; 1,183,361 currently indexed; 2,064,964 estimated
Total size 12.07 GB (12,363.8 MB)
File format JSONL, UTF-8 (one record per line)
Languages Arabic dialects: Egyptian, Gulf, Levantine, Maghrebi, Yemeni, Iraqi, Sudanese, Somali + MSA explanations
Suggested tasks Dialect text generation, dialect understanding, dialect/country classification, Arabic chatbot, dialect-to-MSA translation
License CC-BY-4.0
Loading method load_dataset with streaming=True (recommended for 12 GB)

3. Repository Map

3.1 Folder Tree

arab-dialects-20-countries-3m/
โ”œโ”€โ”€ README.md                  # This file - Hugging Face Dataset Card
โ”œโ”€โ”€ LICENSE                    # CC-BY-4.0 license
โ”œโ”€โ”€ CITATION.cff               # Citation metadata
โ”œโ”€โ”€ .gitattributes             # Git LFS settings for *.jsonl
โ”‚
โ”œโ”€โ”€ 01_ู…ุตุฑ/  (Egypt)
โ”‚   โ”œโ”€โ”€ 01_ุงู„ู„ู‡ุฌุฉ.jsonl               # 21,432 records (dialect)
โ”‚   โ”œโ”€โ”€ 02_ุงู„ู…ุตุทู„ุญุงุช.jsonl            # 21,428 records (terms)
โ”‚   โ”œโ”€โ”€ 03_ุงู„ู†ูƒุช.jsonl                # 21,428 records (jokes)
โ”‚   โ”œโ”€โ”€ 04_ุงู„ู…ูˆุงู‚ู.jsonl              # 21,428 records (situations)
โ”‚   โ”œโ”€โ”€ 05_ุงู„ุซู‚ุงูุฉ_ูˆุงู„ุนุงุฏุงุช.jsonl     # 21,428 records (culture)
โ”‚   โ”œโ”€โ”€ 06_ุทุฑูŠู‚ุฉ_ุงู„ูƒู„ุงู….jsonl         # 21,428 records (speaking style)
โ”‚   โ””โ”€โ”€ 07_ุงู„ู…ุญุงุฏุซุงุช.jsonl            # 21,428 records (dialogues)
โ”‚
โ”œโ”€โ”€ 02_ุงู„ุณุนูˆุฏูŠุฉ/ (Saudi Arabia)   # same 7 files
โ”œโ”€โ”€ 03_ุงู„ุงู…ุงุฑุงุช/ (UAE)            # same 7 files
โ”œโ”€โ”€ 04_ุงู„ูƒูˆูŠุช/ (Kuwait)
โ”œโ”€โ”€ 05_ู‚ุทุฑ/ (Qatar)
โ”œโ”€โ”€ 06_ุงู„ุจุญุฑูŠู†/ (Bahrain)
โ”œโ”€โ”€ 07_ุนู…ุงู†/ (Oman)
โ”œโ”€โ”€ 08_ุงู„ูŠู…ู†/ (Yemen)
โ”œโ”€โ”€ 09_ุงู„ุนุฑุงู‚/ (Iraq)
โ”œโ”€โ”€ 10_ุณูˆุฑูŠุง/ (Syria)
โ”œโ”€โ”€ 11_ู„ุจู†ุงู†/ (Lebanon)
โ”œโ”€โ”€ 12_ุงู„ุงุฑุฏู†/ (Jordan)
โ”œโ”€โ”€ 13_ูู„ุณุทูŠู†/ (Palestine)
โ”œโ”€โ”€ 14_ุงู„ุณูˆุฏุงู†/ (Sudan)
โ”œโ”€โ”€ 15_ู„ูŠุจูŠุง/ (Libya)
โ”œโ”€โ”€ 16_ุชูˆู†ุณ/ (Tunisia)
โ”œโ”€โ”€ 17_ุงู„ุฌุฒุงุฆุฑ/ (Algeria)
โ”œโ”€โ”€ 18_ุงู„ู…ุบุฑุจ/ (Morocco)
โ”œโ”€โ”€ 19_ู…ูˆุฑูŠุชุงู†ูŠุง/ (Mauritania)
โ””โ”€โ”€ 20_ุงู„ุตูˆู…ุงู„/ (Somalia)         # same 7 files per country

Rule: each country = exactly 150,000 records = 21,432 + 6 x 21,428.

3.2 Visual Map (Mermaid)

graph TD
    ROOT[arab-dialects-20-countries-3m/<br/>3M target records - 12.07GB]
    ROOT --> DOCS[README + LICENSE + CITATION + .gitattributes]
    ROOT --> EG[01_Egypt<br/>150K - 605MB]
    ROOT --> GULF[Saudi Arabia ... Oman<br/>Gulf countries]
    ROOT --> LEV[Iraq ... Palestine<br/>Levant + Iraq]
    ROOT --> AFR[Sudan ... Somalia<br/>North Africa + Horn]
    EG --> T1[01_dialect.jsonl]
    EG --> T2[02_terms.jsonl]
    EG --> T3[03_jokes.jsonl]
    EG --> T4[04_situations.jsonl]
    EG --> T5[05_culture.jsonl]
    EG --> T6[06_speaking_style.jsonl]
    EG --> T7[07_dialogues.jsonl]
    T7 --> REC[JSON record<br/>id - country - category<br/>dialect - text - meta]
pie title Records distribution by type (per country, 150K)
    "Dialect" : 21432
    "Terms" : 21428
    "Jokes" : 21428
    "Situations" : 21428
    "Culture" : 21428
    "Speaking style" : 21428
    "Dialogues" : 21428

4. Countries Table (20 folders)

# Folder Country Records Size Distinctive words (examples)
1 01_ู…ุตุฑ Egypt 150,000 605.3 MB ezzayyak, aamel eh, ya ma'allem, keda, awi
2 02_ุงู„ุณุนูˆุฏูŠุฉ Saudi Arabia 150,000 624.7 MB wesh halek, absher, kafu, ya hala
3 03_ุงู„ุงู…ุงุฑุงุช UAE 150,000 623.1 MB shhalek, zein, rayoog, majboos
4 04_ุงู„ูƒูˆูŠุช Kuwait 150,000 621.4 MB shkhbarek, wayed, dewaniya
5 05_ู‚ุทุฑ Qatar 150,000 605.0 MB shhalek, tayyeb, dalla, kafu alaik
6 06_ุงู„ุจุญุฑูŠู† Bahrain 150,000 625.6 MB shkhbarek, wayed zein, jabati
7 07_ุนู…ุงู† Oman 150,000 606.1 MB mooh, Salalah, luban, shuwaa
8 08_ุงู„ูŠู…ู† Yemen 150,000 616.3 MB mandi, fahsa, salta, Adani tea
9 09_ุงู„ุนุฑุงู‚ Iraq 150,000 614.3 MB shlonak, shaku maku, yaba, hassa
10 10_ุณูˆุฑูŠุง Syria 150,000 618.3 MB keefak, tkram, shawarma, kibbeh
11 11_ู„ุจู†ุงู† Lebanon 150,000 623.5 MB meshe lhal, tkram aynak, manoushe
12 12_ุงู„ุงุฑุฏู† Jordan 150,000 619.2 MB sho malak, mansaf, zalameh
13 13_ูู„ุณุทูŠู† Palestine 150,000 628.2 MB musakhan, knafeh, ya ammi
14 14_ุงู„ุณูˆุฏุงู† Sudan 150,000 617.0 MB zol, ya zol, jabana, aseeda
15 15_ู„ูŠุจูŠุง Libya 150,000 613.4 MB shen halek, bahi, bazeen, halba
16 16_ุชูˆู†ุณ Tunisia 150,000 619.8 MB shnahwalek, labes, barsha
17 17_ุงู„ุฌุฒุงุฆุฑ Algeria 150,000 616.5 MB wash rak, labes, bezaf, ya khou
18 18_ุงู„ู…ุบุฑุจ Morocco 150,000 614.8 MB labas, kidayer, bezaf, atay
19 19_ู…ูˆุฑูŠุชุงู†ูŠุง Mauritania 150,000 628.6 MB labas, yasser, ya wkheiret
20 20_ุงู„ุตูˆู…ุงู„ Somalia 150,000 622.4 MB Mogadishu, baasto, shaah
Total 20 folders โ€” 3,000,000 12,363.8 MB (12.07 GB) โ€”

5. Data Types Table (7 files)

Each country contains the same 7 files. This table is per country - multiply by 20 for the global total.

# File name category Records/country Total (x20) Description
1 01_ุงู„ู„ู‡ุฌุฉ.jsonl ู„ู‡ุฌุฉ (dialect) 21,432 428,640 Authentic greeting expressions and phrases in the local dialect + MSA meaning
2 02_ุงู„ู…ุตุทู„ุญุงุช.jsonl ู…ุตุทู„ุญุงุช (terms) 21,428 428,560 Work/market/home glossary: word + meaning + usage context
3 03_ุงู„ู†ูƒุช.jsonl ู†ูƒุช (jokes) 21,428 428,560 Jokes and funny situations in the country dialect
4 04_ุงู„ู…ูˆุงู‚ู.jsonl ู…ูˆุงู‚ู (situations) 21,428 428,560 Daily scenes: taxi, wedding, cafe, market
5 05_ุงู„ุซู‚ุงูุฉ_ูˆุงู„ุนุงุฏุงุช.jsonl ุซู‚ุงูุฉ (culture) 21,428 428,560 Hospitality, dishes (kabsa/mansaf/tagine/bazeen...), weddings, majlis
6 06_ุทุฑูŠู‚ุฉ_ุงู„ูƒู„ุงู….jsonl ุทุฑูŠู‚ุฉ_ูƒู„ุงู… (speaking style) 21,428 428,560 Tone and style: how to speak like locals, sentence openers/closers
7 07_ุงู„ู…ุญุงุฏุซุงุช.jsonl ู…ุญุงุฏุซุงุช (dialogues) 21,428 428,560 Full dialogues: friend-friend, seller-customer, WhatsApp chat

6. Record Schema

6.1 Fields Table

Field Type Example Description
id string ู…ุตุฑ-ู†ูƒุช-000001 Unique ID: country-category-number
country string ู…ุตุฑ (Egypt) Country name in Arabic
category string ู†ูƒุช (jokes) One of: ู„ู‡ุฌุฉ, ู…ุตุทู„ุญุงุช, ู†ูƒุช, ู…ูˆุงู‚ู, ุซู‚ุงูุฉ, ุทุฑูŠู‚ุฉ_ูƒู„ุงู…, ู…ุญุงุฏุซุงุช
dialect string ูˆุงุญุฏ ู…ุตุฑูŠ ุงุชุตู„ ุจุตุงุญุจู‡... Short original dialect text (50-300 chars)
text string ูˆุงุญุฏ ู…ุตุฑูŠ ุงุชุตู„... + long explanation Full expanded text (~3.5-4 KB) - best for training
meta.k1 string ุจู‚ู‰ Distinctive word 1 from the country dialect
meta.k2 string ุนุงู…ู„ ุงูŠู‡ Distinctive word 2
meta.k3 string ูŠุง ุฌุฏุน Distinctive word 3

6.2 Real Record Example

{
  "id": "ู…ุตุฑ-ู†ูƒุช-000001",
  "country": "ู…ุตุฑ",
  "category": "ู†ูƒุช",
  "dialect": "ูˆุงุญุฏ ู…ุตุฑูŠ ุงุชุตู„ ุจุตุงุญุจู‡ ู‚ุงู„ู‡ 'ุจู‚ู‰ ููŠู†ูƒุŸ' ู‚ุงู„ู‡ 'ููŠ ุงู„ุจูŠุช' ู‚ุงู„ู‡ 'ุทุจ ุนุงู…ู„ ุงูŠู‡ ูˆุงูุชุญ ุงู„ุจุงุจ ู…ุง ุงู†ุง ู‚ุฏุงู… ุงู„ุจูŠุช' ๐Ÿ˜‚",
  "text": "ูˆุงุญุฏ ู…ุตุฑูŠ ุงุชุตู„ ุจุตุงุญุจู‡ ู‚ุงู„ู‡ 'ุจู‚ู‰ ููŠู†ูƒุŸ' ... ูˆู‡ุฐุง ูŠุนูƒุณ ุฑูˆุญ ุฃู‡ู„ ู…ุตุฑ ููŠ ูƒู„ุงู…ู‡ู… ุงู„ูŠูˆู…ูŠ ุญูŠุซ ูŠุณุชุฎุฏู…ูˆู† 'ุจู‚ู‰' ูˆ'ุนุงู…ู„ ุงูŠู‡' ูˆ'ูŠุง ุฌุฏุน' ุจูƒุซุฑุฉ ... [record 1 - Egypt - jokes]",
  "meta": {"k1": "ุจู‚ู‰", "k2": "ุนุงู…ู„ ุงูŠู‡", "k3": "ูŠุง ุฌุฏุน"}
}

Note: dialect and text are in Arabic (the dataset content language). All documentation around them is in English.

7. Loading and Usage

7.1 Load with Hugging Face datasets (recommended: streaming for 12 GB)

from datasets import load_dataset

# Load everything with streaming (no 12 GB download needed)
ds = load_dataset("ISLAM-PO/arab-dialects-20-countries-3m", "full", split="train", streaming=True)
print(next(iter(ds)))

# Filter one country / category
egy_jokes = ds.filter(lambda x: x["country"] == "ู…ุตุฑ" and x["category"] == "ู†ูƒุช")
for row in egy_jokes.take(3):
    print(row["dialect"])

7.2 Load a single country (faster)

from datasets import load_dataset

# Egypt only
ds_eg = load_dataset("json", data_files={"train": "hf://datasets/ISLAM-PO/arab-dialects-20-countries-3m/01_ู…ุตุฑ/*.jsonl"}, split="train", streaming=True)

# One file only
ds_one = load_dataset("json", data_files={"train": "hf://datasets/ISLAM-PO/arab-dialects-20-countries-3m/18_ุงู„ู…ุบุฑุจ/07_ุงู„ู…ุญุงุฏุซุงุช.jsonl"}, split="train")

7.3 Local read with Python / Pandas

import json, glob
import pandas as pd

files = glob.glob("arab-dialects-20-countries-3m/01_ู…ุตุฑ/*.jsonl")
rows = []
for f in files[:1]:
    with open(f, encoding="utf-8") as fh:
        for line in fh:
            rows.append(json.loads(line))
df = pd.DataFrame(rows)
print(df[["id", "category", "dialect"]].head())
print(df["category"].value_counts())

7.4 Language model training (short example)

# Use the 'text' field for causal LM or 'dialect' for instruction tuning.
# Example prompt:
# instruction: "Write a joke in the Moroccan dialect"
# input: row["dialect"]

8. Generation and Reproduction

The dataset was generated with generate_dataset.py (per-country templates + distinctive vocabulary + contextual padding to reach the target size).

# Small demo (~16 MB, for validation)
python generate_dataset.py --demo

# Full generation (150K per country / ~10 GB+)
python generate_dataset.py --full --per-country 150000 --total-gb 10
Parameter Description Default
--demo 700 records/country (100 per type) for testing โ€”
--full Full generation โ€”
--per-country Records per country 150000
--total-gb Target size in GB (automatic padding if below target) 10

Note: per-record size is computed as total_gb x 1024^3 / (20 x per_country) ~= 3579 bytes. Actual size is ~3.8-4.1 KB with JSON overhead, so the final output is 12.07 GB (above target by design, to guarantee the 10 GB requirement).

9. Considerations and Limitations

Topic Details
Data nature Synthetic, template-generated data, not recorded from native speakers. Good for pre-training and experiments, but review quality before production use.
Repetition Templates repeat with varied words and IDs. Deduplicate before final evaluation.
Bias Balanced representation (150K per country) - does not reflect real population sizes. Large dialects (Egyptian/Levantine) have the same weight as smaller ones.
Cultural sensitivity Jokes and situations are for language research/entertainment only. If you find offensive content for a country, please open an Issue.
Language quality Distinctive words are real per dialect, but long compositions may contain non-100% native phrasing. Human review is recommended for critical samples.
Size 12 GB - use streaming=True or load a single country if your machine is limited.

10. Contributors

Role Name / Handle Contribution
Dataset owner & concept ISLAM-PO Idea, 20 countries + 7 types definition, 10 GB requirement
Generation & engineering Muse Spark (AI Assistant) generate_dataset.py, dialect templates, documentation
Dialect review (open) Open for contribution Native speakers per country review words/jokes and add authentic expressions
Culture review (open) Open for contribution Fix dishes and customs per country

Want to contribute? Send a Pull Request adding new words/templates in generate_dataset.py under COUNTRIES or TEMPLATES, or fix any incorrect expression.

11. License

CC-BY-4.0 - Creative Commons Attribution 4.0 International
  • Allowed: commercial use, modification, distribution, training.
  • Single requirement: give attribution - dataset name + link + license.
  • See the LICENSE file for full details.

12. Citation

@dataset{arab_dialects_20_2026,
  title   = {Arab Dialects Dataset: 20 Countries, 7 Content Types, 3M target Records},
  author  = {ISLAM-PO and Contributors},
  year    = {2026},
  publisher = {Hugging Face},
  version = {1.0.0},
  url     = {https://huggingface.co/datasets/ISLAM-PO/arab-dialects-20-countries-3m},
  note    = {3,000,000 records, 140 JSONL files, 12.07 GB, CC-BY-4.0}
}

The CITATION.cff file contains the same data in Citation File Format.

13. Push to Hugging Face Hub

# 1. Install tools
pip install huggingface_hub datasets

# 2. Login
huggingface-cli login

# 3. Init repo (Git LFS is required for large JSONL files)
cd arab-dialects-20-countries-3m
git init
git lfs install
git lfs track "*.jsonl"
# .gitattributes is already included - make sure it is committed

# 4. Push (upload takes a while for 12 GB - push in batches on slow connections)
huggingface-cli repo create arab-dialects-20-countries-3m --type dataset --yes
git remote add origin https://huggingface.co/datasets/ISLAM-PO/arab-dialects-20-countries-3m
git add README.md LICENSE CITATION.cff .gitattributes
git commit -m "docs: HF dataset card"
git push origin main
# Then push countries in batches:
git add 01_ู…ุตุฑ 02_ุงู„ุณุนูˆุฏูŠุฉ 03_ุงู„ุงู…ุงุฑุงุช 04_ุงู„ูƒูˆูŠุช
git commit -m "data: gulf+egypt batch"
git push origin main
# ... repeat for remaining countries

Tip: Use the repository URL shown above when creating a new repository. Add --private to repo create if you want it private first.


Last updated: 2026-09-03 | Version: 1.0.0 | Status: complete generation target; verify indexed count before publication / 12.07 GB

Downloads last month
910