We present PashtoCorp, a 1.25-billion-word corpus for Pashto, a language spoken by 60 million people that remains severely underrepresented in NLP. The corpus is assembled from 39 sources spanning seven HuggingFace datasets and 32 purpose-built web scrapers, processed through a reproducible pipeline with Arabic-script tokenization, SHA-256 deduplication, and quality filtering. At 1.25B words across 2.81 million documents, PashtoCorp is 40x larger than the OSCAR Pashto subset and 83x larger than the previously largest dedicated Pashto corpus. Continued MLM pretraining of XLM-R-base on PashtoCorp reduces held-out perplexity by 25.1% (8.08->6.06). On WikiANN Pashto NER, the pretrained model improves entity F1 by 10% relative (19.0%->21.0%) and reduces training variance nearly 7x; the largest gain appears at 50 training sentences (+27%), with PashtoCorp covering 97.9% of WikiANN entity vocabulary. On Belebele Pashto reading comprehension, Gemma-3n achieves 64.6% accuracy, the first published LLM baseline for Pashto on this benchmark. A leave-one-out source ablation shows that Wikipedia (0.7% of documents) is the most critical source for NER: removing it alone reduces entity F1 by 47%. Corpus data, trained model, and code are available at https://huggingface.co/datasets/ihanif/pashto-corpus, https://huggingface.co/ihanif/xlmr-pashto, and https://github.com/ihanif/pashto-corpus.
Figures & tables
Category
Sources
Docs
Words (M)
Web crawl (HuggingFace)
4
1,447,599
773.1
News radio (scraped)
7
1,000,213
222.6
Afghan news (scraped)
12
158,644
77.9
Aggregator / blog
10
164,808
74.5
PDF books / reports
1
16,867
81.6
Encyclopedia
1
19,523
13.6
Table 1: PashtoCorp sources by category.
Filter stage
Docs removed
% of raw
Pashto ratio < 0.70
1,084,231
18.6%
SHA-256 duplicate
356,943
6.1%
Min tokens < 10
42,817
0.7%
Total rejected
1,483,991
25.5%
Retained
2,810,913
74.5%
Table 2: Pipeline rejection statistics.
Corpus
Words
Docs
vs. PashtoCorp
NLPashto [ 6 ]
∼ 15M
—
83 × smaller
OSCAR 2301
∼ 31M
—
40 × smaller
CC-100 (ps)
∼ 54M
257K
23 × smaller
MADLAD-400 (ps)
< 1M
4K
> 1000 × smaller
GlotCC (pbt-Arab)
—
37K
—
HPLT v2.0 (pbt-Arab)
—
466K
—
Table 3: Comparison with prior Pashto corpora.
Figure 1: Document distribution by domain category ( N=2,810,913 ).
Figure 2: Cumulative unique vocabulary (millions) as sources are incorporated in descending document-count order. Despite its small size (16.9K documents, position 17), FinePDFs contributes the largest marginal vocabulary of any single source: 2.22M unique types.