Maxyelow's picture
Update author and citation to Maxwell Nganga
a061031 verified
|
Raw History Blame Contribute Delete
1.84 kB
---
language:
- sw
- en
- swh
license: apache-2.0
tags:
- kenya
- code-switching
- sheng
- swahili
- pretraining
- 1m-corpus
- language-modeling
size_categories:
- 1M<n<10M
---
# 🇰🇪 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. **Engineering & Infrastructure:** Structural analysis, shear stress, electrical transformers, hydraulics, concrete rebar.
2. **Finance & FinTech:** M-Pesa, SACCOs, Central Bank of Kenya inflation, collateral liquidation, loan underwriting.
3. **Tech & Software Systems:** Microservices, Redis caching, Kubernetes deployment, API gateway authentication, CI/CD pipelines.
4. **Medicine & Healthcare Sciences:** Emergency triage, acute respiratory intubation, targeted antibiotics, pathology.
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}
}
```