CoolFace
Datasetpublic

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.

sourceHugging Facecc-by-sa-4.0updated 5mo agoView on Hugging Face
2likes131downloads
Dataset Card

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

PropertyValue
Samples1,922,049
LanguageEgyptian Arabic (ΨΉΨ§Ω…ΩŠΨ© Ω…Ψ΅Ψ±ΩŠΨ©)
ScriptArabic (no tashkeel, normalized alef)
Use CasesContinued pretraining (CPT), dialectal pre-SFT, informal Arabic modeling, ChatML finetuning
SourcesSynthetic (Gemini API, LearnLM) + Reddit scrape (Egyptian subreddits)
LicenseCC BY-SA 4.0

πŸ—‚οΈ 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:

json
{"text": "..."}

Load with Hugging Face Datasets:

python
from datasets import load_dataset

dataset = load_dataset("Prickly-Labs/1.9M-Egyptian-Corpus", split="train")

Supports streaming:

python
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