Prickly-Labs/1.9M-Egyptian-Corpus
1.92M Egyptian Arabic Corpus πͺπ¬ β Prickly Labs A corpus of 1.92 million Egyptian Arabic samples combining synthetic generation and real web data, built for continued pretraining and dialect adaptation of Arabic language models. Designed to reflect how Egyptians actually speak β not textbook MSA. β οΈ This dataset contains uncensored, informal Arabic including sarcasm, humor, slang, and profanity. Use with care for public-facing applications. π Overviewβ¦ See the full description on the dataset page: https://huggingface.co/datasets/Prickly-Labs/1.9M-Egyptian-Corpus.
1.92M Egyptian Arabic Corpus πͺπ¬ β Prickly Labs
A corpus of 1.92 million Egyptian Arabic samples combining synthetic generation and real web data, built for continued pretraining and dialect adaptation of Arabic language models. Designed to reflect how Egyptians actually speak β not textbook MSA.
β οΈ This dataset contains uncensored, informal Arabic including sarcasm, humor, slang, and profanity. Use with care for public-facing applications.
π Overview
ποΈ Data Sources
Synthetic β majority of corpus
Generated using a custom multi-worker pipeline built on the Gemini API. The pipeline randomized topics, tones, and prompt structures across parallel instances to maximize variety. A significant portion of the synthetic data was generated as structured multi-turn dialogues and converted to ChatML format via regex extraction before being flattened into plain text for this release.
Reddit scrape β minority of corpus
Scraped from Egyptian Arabic subreddits over approximately one week of daily collection runs. Provides authentic, unscripted dialect and slang that synthetic generation cannot fully replicate.
π§ Preprocessing
This corpus went through several rounds of filtering and cleaning:
- Deduplication applied per source batch and again after merging β Gemini outputs at scale produce significant repetition which was aggressively removed
- Language filtering β any sample with more than ~40% non-Arabic characters was removed
- Character filtering β samples containing non-Arabic scripts were dropped
- Emoji filtering β emoji-only or emoji-heavy samples removed
- Tashkeel removal β all Arabic diacritics stripped to reduce tokenizer vocabulary noise
- Alef normalization β Ψ£Ψ Ψ₯Ψ Ψ’ all normalized to Ψ§ for tokenizer consistency
- Manual fixes β early batches required character-level corrections before scripted filtering was in place
- Loop filtering β samples with repeating chunks (a known Gemini API artifact at scale) were detected and removed; approximately 20,000 samples removed in this pass
Approximately 300,000 samples were lost across filtering passes. The final 1.92M represents what survived all stages.
π Format
File type: .parquet
Structure:
{"text": "..."}Load with Hugging Face Datasets:
from datasets import load_dataset
dataset = load_dataset("Prickly-Labs/1.9M-Egyptian-Corpus", split="train")Supports streaming:
dataset = load_dataset("Prickly-Labs/1.9M-Egyptian-Corpus", split="train", streaming=True)β οΈ Known Limitations
- Topic distribution β synthetic portion skews toward informational and explanatory content due to prompt design; conversational and narrative registers are present but less dominant
- Alef normalization β Ψ£ / Ψ₯ / Ψ’ collapsed to Ψ§ loses some orthographic disambiguation; models trained on this data will inherit that normalization
- No tashkeel β not suitable as-is for tasks requiring fully vocalized Arabic
- Synthetic artifacts β despite deduplication, synthetic data may carry subtle repetition patterns in phrasing or structure
- Mixed register β Reddit portion introduces some MSA and mixed Arabic-dialect text alongside pure Egyptian dialect
π οΈ Built By
Ahmed Sherief β Founder of Prickly Labs, designed and built the generation pipeline, scraping infrastructure, and all filtering and preprocessing scripts.
These contributors ran generation workers on their own machines and helped accelerate the data collection process:
- Mohamed Hafez
- Moaaz Saad
π License
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
You are free to use, share, and adapt this dataset for any purpose including commercial use, provided that:
- You give appropriate credit to Prickly Labs
- Any models or datasets derived from this work are released under the same CC BY-SA 4.0 license
β https://creativecommons.org/licenses/by-sa/4.0/
π§ͺ About Prickly Labs
Prickly Labs builds emotionally grounded, culturally fluent Arabic AI β crafted by Arabs, for Arabs. We believe language models should reflect how people truly speak, not just textbook MSA.
β https://huggingface.co/Prickly-Labs
