NLPC-UOM/anonymized-sinhala-letter-corpus
Anonymized Sinhala Official Letter Corpus A small, hand-curated corpus of 151 formal Sinhala letters, fully anonymized with bracketed placeholders. It is intended for training and evaluating models that generate, complete, or classify Sinhala official correspondence — a task with very little public training data. Dataset at a glance Examples 151 Language Sinhala (si) Register Formal throughout Letter length 42–240 words (median 108, mean 114)… See the full description on the dataset page: https://huggingface.co/datasets/NLPC-UOM/anonymized-sinhala-letter-corpus.
Anonymized Sinhala Official Letter Corpus
A small, hand-curated corpus of 151 formal Sinhala letters, fully anonymized with bracketed placeholders. It is intended for training and evaluating models that generate, complete, or classify Sinhala official correspondence — a task with very little public training data.
Dataset at a glance
Fields
Category distribution
The distribution is deliberately uneven and reflects the source material. See Limitations.
Anonymization scheme
Every identifying element is replaced by a square-bracket placeholder whose label is in Sinhala. Placeholder labels are part of the text and are meant to be learned by the model.
Most frequent placeholders:
Removed: personal names, institution/company/school/office names, addresses, districts and divisions, all dates and times, file and reference numbers, NIC numbers, employee and service numbers, vehicle and registration numbers, phone and fax numbers, email addresses, monetary amounts, and account numbers.
Deliberately preserved, because they are the linguistic signal the dataset exists to teach:
- Full letter structure — date line, recipient block, salutation, subject line, body, closing formula, signature block, and copy-distribution list.
- Generic job titles that carry no personal identity (
ප්රාදේශීය ලේකම්,විදුහල්පති,ස්ථානාධිපති,කොමසාරිස්). - Formulaic Sinhala correspondence phrasing (
ගරු මහත්මයාණෙනි,,ඉහත කරුණ සම්බන්ධයෙන්,කාරුණිකව ඉල්ලා සිටිමි.,ගෞරවයෙන්,). - Public statutory and circular citations that identify no individual (for example
1988 අංක 09 දරණ මහාමාර්ග ආඥා පනත).
Usage
from datasets import load_dataset
ds = load_dataset("NLPC-UOM/anonymized-sinhala-letter-corpus", split="train")
print(ds[0]["letter_category"], ds[0]["title"])
print(ds[0]["content"])
# category classification
labels = sorted(set(ds["letter_category"]))
# instruction-style generation target
def to_prompt(x):
return {"prompt": f"{x['letter_category']} ලිපියක් ලියන්න: {x['title']}",
"completion": x["content"]}Because there is a single train split, create your own held-out set. With only 2 thank-you and 5 apology examples, use stratified or grouped splitting rather than a plain random split.
Provenance and curation
Source letters are Sri Lankan official correspondence, predominantly Divisional Secretariat and departmental administrative letters. Construction pipeline:
- Filtering — letters over 250 words dropped; empty, non-Sinhala, and OCR-garbled files removed.
- Deduplication — exact-match plus 4-gram Jaccard near-duplicate detection (threshold 0.6).
- Type assignment — each letter classified by its actual communicative purpose, not by keywords. This matters in Sinhala official style:
ඉල්ලා සිටිමි("I request") is a closing formula in nearly every letter and does not make a letter a request. - Anonymization — placeholder substitution against the scheme above.
- Verification — automated scans for residual digit runs, phone numbers, NIC numbers, email addresses, reference codes, and Latin-script names, followed by manual review of every row.
- Normalization — synonymous placeholder variants unified (
[ආයතනය]→[ආයතනයේ නම],[දුරකථන]→[දුරකථන අංකය]); the singleannouncementletter folded intonotification.
A portion of the corpus consists of earlier curated and synthetic template-derived letters carried forward from an internal v3 dataset; the remainder was anonymized from raw source documents for this release.
Limitations
- Small. 151 examples. Suitable for fine-tuning, few-shot prompting, and evaluation — not for pretraining.
- Severely imbalanced.
apology(5) andthank-you(2) are barely represented. This is a property of the source domain: routine government correspondence rarely apologizes or thanks, and the wordsකණගාටු/ස්තුතියිusually appear as closing formulas on letters whose real purpose is something else. Do not treat per-class metrics on these two categories as meaningful. - Narrow domain. Overwhelmingly government and administrative correspondence. Personal, commercial, and legal letter styles are absent or thin.
- Formal register only. No informal or semi-formal letters.
- Placeholders are not natural text. Models trained on this will emit
[දිනය]-style placeholders. Downstream applications need a slot-filling step. - Residual risk. Anonymization was verified by automated scan and manual review, but no such process is provably complete. Two benign non-identifying artifacts are known to remain: a statutory year in a public act citation, and the English gloss
(Data Base).
Ethical considerations
The source documents are real official letters. Every direct and indirect identifier found was removed, and no row is intended to be traceable to a specific individual, office, or case. If you identify a residual identifier, please open a discussion on the dataset repo so it can be corrected.
Aggregate quasi-identifiers were also scrubbed where they could narrow a location — for example exact village household and population counts were replaced with [සංඛ්යාව].
License
Released under CC BY-SA 4.0.
Citation
@misc{anonymized_sinhala_letter_corpus,
title = {Anonymized Sinhala Official Letter Corpus},
year = {2026},
note = {151 anonymized formal Sinhala letters across 8 categories},
url = {https://huggingface.co/datasets/NLPC-UOM/anonymized-sinhala-letter-corpus}
}