Team Ai
Datasetpublic

Maxyelow/kenyan-code-switch-1m

🇰🇪 Kenyan Code-Switching Pretraining Corpus (1,000,000 Sentences / 16.99M Words) The largest standardized, rule-audited monolingual pretraining corpus for Kenyan Code-Switching (Sheng / Technical Swahili-English Blend). Corpus Statistics Total Sentences: 1,000,000 sentences Total Word Tokens: 16,990,653 words Average Sentence Length: 16.99 words (multi-clause explanatory syntax) Linguistic Audit Score: 100.0000% compliance across all 20 Master Blueprint rules… See the full description on the dataset page: https://huggingface.co/datasets/Maxyelow/kenyan-code-switch-1m.

sourceHugging Faceapache-2.0updated 10d agoView on Hugging Face
0likes41downloads
Dataset Card

🇰🇪 Kenyan Code-Switching Pretraining Corpus (1,000,000 Sentences / 16.99M Words)

The largest standardized, rule-audited monolingual pretraining corpus for Kenyan Code-Switching (Sheng / Technical Swahili-English Blend).

Corpus Statistics

  • —Total Sentences: 1,000,000 sentences
  • —Total Word Tokens: 16,990,653 words
  • —Average Sentence Length: 16.99 words (multi-clause explanatory syntax)
  • —Linguistic Audit Score: 100.0000% compliance across all 20 Master Blueprint rules
  • —Raw Text Size: 113.3 MB (.txt)
  • —Metadata JSONL Size: 203.6 MB (.jsonl)

Domains Represented

  1. 1.Engineering & Infrastructure: Structural analysis, shear stress, electrical transformers, hydraulics, concrete rebar.
  2. 2.Finance & FinTech: M-Pesa, SACCOs, Central Bank of Kenya inflation, collateral liquidation, loan underwriting.
  3. 3.Tech & Software Systems: Microservices, Redis caching, Kubernetes deployment, API gateway authentication, CI/CD pipelines.
  4. 4.Medicine & Healthcare Sciences: Emergency triage, acute respiratory intubation, targeted antibiotics, pathology.
  5. 5.Politics & Constitutional Governance: Katiba 2010 public participation, bicameral parliament, gubernatorial impeachment, fiscal policy.

Usage

python
from datasets import load_dataset

dataset = load_dataset("text", data_files={"train": "kenyan_code_switch_corpus_1m.txt"})

Citation

bibtex
@dataset{kenyan_code_switch_1m_2026,
  title={Kenyan Code-Switching 1M Pretraining Corpus},
  author={Maxwell Ng'ang'a},
  year={2026},
  publisher={Hugging Face},
  url={https://huggingface.co/datasets/Maxyelow/kenyan-code-switch-1m}
}