Hundreds of India's languages have almost no text on the internet. For many of them, the most detailed record that exists is a grammar: a book or dissertation written by a linguist, often decades ago, full of rules and carefully glossed example sentences. Those grammars are exactly what a language model would need to learn a language it has never seen. But they sit in PDFs and scans, in dozens of layouts, and nobody has pulled them into a form a model or a researcher can use.
IndicGram is our attempt to do that for the languages that need it most. It is the first release from the Indian Languages Databank at Building Bad. It takes published grammars of neglected Indian languages and extracts two things from them: grammar rules and interlinear glossed examples (IGT), the three-line format linguists use to show a sentence, its word-by-word meaning and its translation. Every record points back to the exact page, line and character span it came from.
In this post we cover:
- Choosing languages. How we picked 18 varieties across the Munda, Tibeto-Burman and Dravidian families, and why we rejected languages that only look under-resourced.
- From page to record. A pipeline that handles clean PDFs, broken fonts and 60-year-old scans while keeping every page, line and OCR decision.
- What we extracted. 5,586 example sentences (3,458 of them fully glossed) and 1,852 grammar rules from 19 works and 1,993 pages.
- Benchmarks. 11,693 task rows across six tasks with language-held-out splits, and the first non-neural baselines, which show how hard these tasks are.
Results at a glance
IndicGram v0.1 covers 18 language varieties from 19 source works. Hakhun Tangsa and Kharia contribute the most glossed data, thanks to a 652-page reference grammar and a collection of fully glossed texts. Several languages contribute only a handful of rules, which reflects how little has been written about them rather than a limit of the pipeline.
| Language | Region | Examples | Glossed (IGT) | Rules | Total records |
|---|---|---|---|---|---|
| Austroasiatic · Munda | |||||
| Kharia | Jharkhand | 1,344 | 1,309 | 73 | 1,417 |
| Hill Korwa (Kado Pani) | Chhattisgarh | 697 | 594 | 240 | 937 |
| Birhor | Jharkhand | 184 | 115 | 136 | 320 |
| Gta (Didayi) | Odisha | 265 | 1 | 41 | 306 |
| Gutob (Bodo Gadaba) | Odisha | 199 | 145 | 95 | 294 |
| Turicore | Odisha | 67 | 61 | 55 | 122 |
| Gorum-Parenga | Odisha | 84 | 2 | 31 | 115 |
| Bonda / Remo | Odisha | 60 | 1 | 25 | 85 |
| Sino-Tibetan | |||||
| Hakhun Tangsa | Arunachal Pradesh / Assam | 2,070 | 1,201 | 801 | 2,871 |
| Bugun | Arunachal Pradesh | 217 | 0 | 14 | 231 |
| Yimchungru Naga | Nagaland | 185 | 1 | 34 | 219 |
| Purum | Manipur | 150 | 0 | 22 | 172 |
| Lotha Naga | Nagaland | 1 | 0 | 125 | 126 |
| Tangam | Arunachal Pradesh | 8 | 6 | 12 | 20 |
| Sherdukpen (Shergaon) | Arunachal Pradesh | 0 | 0 | 18 | 18 |
| Milang | Arunachal Pradesh | 0 | 0 | 7 | 7 |
| Dravidian | |||||
| Ollari Gadaba | Odisha | 27 | 3 | 91 | 118 |
| Classification unresolved | |||||
| Barman Thar | India | 28 | 19 | 32 | 60 |
| All 18 varieties | 5,586 | 3,458 | 1,852 | 7,438 | |
1Choosing the languages
"Low-resource" is often used loosely. A language can have few Wikipedia articles but a large speech corpus, or a well-known name but a variety that has never been documented. We wanted languages where the published grammar is plausibly the richest machine-readable description available, and where adding it to a dataset changes something.
1.1A resource audit, not a name search
Every candidate went through an audit covering four separate questions: identity (does the language or variety have a stable identifier, and does our source really describe it?), endangerment, existing NLP data, and eligibility for the core set. We checked ISO 639-3 codes and Glottolog entries, then searched existing corpora, speech datasets and IGT collections by code and variety name.
The audit changed our minds more than once. Searches by language name alone produced false matches and missed multilingual datasets that include a language under a different name. Lotha and Yimchungru both had their resource scores raised after we found speech and lexical resources that title searches had missed. We never accept a language just because it is tribal or unfamiliar.
1.2Where the languages come from
The 18 varieties span three families and seven states. Eight are Munda languages of the Austroasiatic family, mostly from Odisha, Jharkhand and Chhattisgarh. Eight are Tibeto-Burman languages of the Sino-Tibetan family from Arunachal Pradesh, Nagaland and Manipur. Ollari Gadaba is Dravidian, and Barman Thar's classification is still unresolved. The sources themselves span almost 70 years:
Source works by year of publication
2From page to record
Grammars are hard documents. Glossed examples are three aligned lines that PDF text extraction happily scrambles. Tables of verb endings break into fragments. Old scans need OCR, and English OCR mangles IPA characters like ʔ, ɑ, ɛ and ɲ. One grammar was typeset in legacy phonetic fonts, so its text layer holds plain letters like P and N where the page shows ʔ and ŋ. So we built the pipeline around one principle: never throw information away.
- AcquireFetch the PDF, reject login pages, freeze a SHA-256
- IngestKeep every page, line and coordinate
- OCROnly on pages that need it, kept as an alternative
- ExtractRules, IGT, examples and table facts
- ValidateSchemas, spans, alignment and quality flags
2.1Pages, lines and OCR
Across 19 works we processed 1,993 pages. 1,331 had usable digital text, 614 needed OCR, and 44 mixed both. 14 pages are still waiting for OCR. OCR is selective and explicit: it runs only where native text is missing or damaged, and its output sits next to the native text instead of replacing it. A reviewer can always see both.
2.2Extracting glossed examples
The IGT parser looks for the three-line pattern of form, gloss and translation, then aligns words across the first two lines. It handles example numbering, wrapped lines and multi-part examples, and flags anything it can't align cleanly. Below are three examples as they appear in the dataset, all from the Turi grammar, which is openly licensed:
‘He sat down under a tree.’
‘There is a Neem tree outside.’
‘I will sell (= having sold) the hats [and] give the children food.’
lowercase_gloss_notation. Source: Peterson et al. (2024), CC BY 4.0.2.3Extracting grammar rules
Rule extraction finds statements that describe how the language works, assigns each a grammatical feature from a set of 47 (case, negation, tense, possession and so on) and records the marker and position where the text states them. Rules often sit right next to the examples that illustrate them. On page 16 of the Turi grammar, the rule and the example from the second tab above appear together:
“Exceptionally, with hɛn- inanimate subjects are indexed on the verb by =aʔ, whereas with other verbs inanimate subjects and objects are not indexed on the verb.”
bɑhrirɛ lim dubɑ hɛn=ɑʔ=ɑ
“There is a Neem tree outside.”
Grammatical tables turned out to be a useful source of links. By reading table geometry directly, rather than the fragmented text a PDF produces, we recovered 10 table facts together with the exact example rows they come from.
Most frequent features among 1,852 rules
2.4Recovering broken characters
The Gutob grammar was typeset with TIPA,[10] a set of TeX phonetic fonts. On the page it shows correct IPA, but the PDF's text layer stores each symbol at the font's private position: ʔ is stored as P, ŋ as N and ɖ as ã. Copy the text and you get confident-looking nonsense.
We fixed this with font-scoped mappings. Each mapping is tied to the exact PDF and embedded-font hash, takes its target from the published TIPA[10] and Adobe Symbol[11] encodings, and was checked against crops of the rendered glyph. Ordinary letters in other fonts are never touched. All 19 recovered characters already exist in standard Unicode, so no custom font was needed.
Gutob characters recovered in the release
ã→ɖ478P→ʔ463N→ŋ388ú→ʈ65ñ→ɲ10:→ː10O→ɔ4The repair is additive. In the Hugging Face release, the default pages_unicode configuration has the repaired text and text_raw keeps the original, with 2,330 source-image crops so every repair can be checked against the page. Parsed examples, glosses and rules are not rewritten: re-parsing Gutob with the clean text is a separate step. Six marks whose identity we couldn't confirm were left unchanged rather than guessed.
3Quality: what we checked and what broke
Structural validation passes with zero errors: every record resolves to a real page and span, every file hash matches, and a second full rebuild produced byte-identical data, benchmarks and baselines. The test suite has 184 passing tests. It also raises 9,414 quality warnings, which is the point. Each warning marks something a reviewer should look at.
The most important lesson from building IndicGram is that a correct citation can still point to wrong structure. A record can quote the source exactly, on the right page, and still split an example in the wrong place or align the wrong gloss to a word. Some of the failures we found and fixed, or flagged:
- OCR on IPA. English OCR damaged transcriptions and grammatical markers even in readable scans.
- Rule boundaries. Early rules swallowed the translation that followed them. Lotha's examples couldn't be extracted reliably with the current parser, so Lotha contributes almost only rules.
- Misleading text. English quotations, footnotes and comparisons with other languages can look exactly like target-language examples.
- Wrapped and split examples. Long Hakhun IGT wrapped across lines, and some Birhor examples confused surface form with gloss. Both were repaired.
- Legacy fonts. Gutob's phonetic-font text is now recovered to standard Unicode (section 2.4). Its parsed records haven't been re-checked against the clean text yet.
- Scanned layouts. The layouts of the Gta, Remo, Tangam, Sherdukpen and Gorum scans remain unresolved. These five sources and Gutob are kept, flagged, and excluded from benchmark evaluation for now.
Every one of these is documented, and every affected record carries a flag. We think this is more useful than silently dropping hard cases: the failures are exactly what a better extraction model should learn to handle.
4Benchmarks and baselines
From the extracted records we built 11,693 diagnostic task rows across six tasks: feature classification, gloss prediction, grammar-rule QA, morphological segmentation, and translation to and from English. Splits are grouped by source work, so the same book never appears in both training and test, and we provide 12 leave-one-language-out folds for testing on a language the model has never seen.
We then ran simple non-neural baselines to set a floor. No neural models were used, so these numbers show how hard the tasks are before any learning about the language happens:
| Task | Baseline | Test N | Exact match | Token F1 |
|---|---|---|---|---|
| Feature classification | Majority class | 369 | 11.9 | 11.9 |
| Feature classification | Naive Bayes | 369 | 30.6 | 30.6 |
| Gloss prediction | Train-set lexicon | 416 | 0.0 | 0.0 |
| Translation → English | Nearest neighbour | 414 | 0.0 | 2.7 |
| English → translation | Nearest neighbour | 414 | 0.0 | 0.2 |
| Grammar-rule QA | Copy supplied evidence | 369 | 100.0 | 100.0 |
Two things stand out. A naive Bayes classifier reaches 30.6% on grammatical feature labels, well above the 11.9% majority baseline, so the labels carry learnable signal. And gloss prediction and translation are essentially at zero: word-level lookup and nearest-neighbour retrieval barely transfer to sources they haven't seen. That is the gap grammar-aware models need to close, and it is where we will evaluate multilingual LLMs next.
5Related work
IndicGram builds on a strong line of work. ODIN[1], IMTVault[2] and GlossLM[3] collect interlinear glossed text at scale. ZhuangRules[4] links grammar rules to examples for a single language, and GrammarMT[5] uses grammar books for machine translation. WALS[6], Grambank[7] and AUTOTYP[8] encode sourced typological features. Some of our languages already appear in these resources: Kharia and Lotha have IGT in ODIN, Gutob in GlossLM and ODIN, and Hakhun has DOBES and PARADISEC archives.
What IndicGram adds is depth for a set of carefully audited Indian varieties, rules and examples extracted together from the same pages, full page-level provenance, and an explicit record of what failed. We haven't yet measured exact overlap with every existing collection, and we list that as open work.
6What's next
- Expert review. The proofing desk is ready; next is source-literate annotation and adjudication of rules, examples and alignments, with agreement scores, to build a reviewed core set.
- Neural baselines. Multilingual LLMs and grammar-in-context models on the reviewed set, with a contamination audit first.
- Rule–example linking. Moving beyond the 10 table-derived links to reliable links across prose.
- More languages. Rupa Sherdukpen, Pengo, Bulu Puroik and Duhumbi are shortlisted, but we haven't yet acquired a full grammar for them.
- Community and rights. Working with speakers and publishers on how extracted text can be shared.
Get IndicGram
The dataset is on Hugging Face, with Unicode-repaired page text as the default configuration. Original PDFs are not redistributed; each record links to its source, and the Turi and 2021 Birhor sources are openly licensed under CC BY 4.0. If you're a linguist, a speaker of one of these languages, or working on low-resource NLP, we'd love your help reviewing and extending it.
neuralnets/IndicGram ↗ cneuralnets@gmail.com
References
- William D. Lewis, Fei Xia. Developing ODIN: A Multilingual Repository of Annotated Language Data for Hundreds of the World's Languages. Literary and Linguistic Computing 25(3): 303–319, 2010. doi:10.1093/llc/fqq006
- Sebastian Nordhoff, Thomas Krämer. IMTVault: Extracting and Enriching Low-resource Language Interlinear Glossed Text from Grammatical Descriptions and Typological Survey Articles. In Proceedings of the 8th Workshop on Linked Data in Linguistics (LDL 2022), pp. 17–25, 2022. ACL Anthology
- Michael Ginn, Lindia Tjuatja, Taiqi He, Enora Rice, Graham Neubig, Alexis Palmer, Lori Levin. GlossLM: A Massively Multilingual Corpus and Pretrained Model for Interlinear Glossed Text. In Proceedings of EMNLP 2024, pp. 12267–12286, 2024. doi:10.18653/v1/2024.emnlp-main.683
- Chen Zhang, Jiuheng Lin, Xiao Liu, Zekai Zhang, Yansong Feng. Read it in Two Steps: Translating Extremely Low-Resource Languages with Code-Augmented Grammar Books (ZhuangRules). arXiv:2506.01796, 2025. arXiv
- Varun Ghat Ravikumar, Sina Ahmadi, Lena Jäger, Rico Sennrich. A Factorial Study of Synthetic Data Generation for Low-Resource Machine Translation using Grammar Books (GrammarMT). arXiv:2607.22376, 2026. arXiv
- Matthew S. Dryer, Martin Haspelmath (eds.). WALS Online (v2020.3). Zenodo, 2013. wals.info
- Hedvig Skirgård, Hannah J. Haynie, Damián E. Blasi, Harald Hammarström, et al. Grambank reveals the importance of genealogical constraints on linguistic diversity and highlights the impact of language loss. Science Advances 9(16), 2023. doi:10.1126/sciadv.adg6175
- Balthasar Bickel, Johanna Nichols, Taras Zakharko, Alena Witzlack-Makarevich, Kristine Hildebrandt, Michael Rießler, Lennart Bierkandt, Fernando Zúñiga, John B. Lowe. The AUTOTYP database (v1.1.1). Zenodo, 2023. doi:10.5281/zenodo.7976754
- Bernard Comrie, Martin Haspelmath, Balthasar Bickel. The Leipzig Glossing Rules: Conventions for interlinear morpheme-by-morpheme glosses. Max Planck Institute for Evolutionary Anthropology, 2008. eva.mpg.de
- Rei Fukui. TIPA: A system for processing phonetic symbols in LaTeX. CTAN. ctan.org/pkg/tipa
- Adobe Systems. Symbol font encoding to Unicode mapping. Unicode Consortium. unicode.org
- John Peterson, Abhay Sagar Minz, Prabhat Linda, Ariba Khan, Francis Xavier Kachhap, Manish Gari. A Brief Introduction to the Turi Language of Eastern India. Bhasha 2, 2024. CC BY 4.0. doi:10.30687/bhasha/2785-5953/2024/02/005
Cite this work
neuralnets (2026). IndicGram: A Grammar Databank for India's Least-Resourced Languages. Building Bad. https://buildingbad.xyz/blog/indicgram/. If you use records from a particular language, please also cite its source grammar (listed under Source works).
@misc{neuralnets2026indicgram,
author = {neuralnets},
title = {{IndicGram}: A Grammar Databank for {India}'s Least-Resourced Languages},
howpublished = {Building Bad},
year = {2026},
month = nov,
url = {https://buildingbad.xyz/blog/indicgram/}
}
@misc{neuralnets2026indicgramdata,
author = {neuralnets},
title = {{IndicGram}: Grammar Rules and Interlinear Glossed Examples for Low-Resource {Indian} Languages},
publisher = {Hugging Face},
year = {2026},
url = {https://huggingface.co/datasets/neuralnets/IndicGram},
note = {Machine-extracted candidates; not human-reviewed}
}
Source works
IndicGram v0.1 is extracted from these 19 works. We thank their authors; all rights remain with them and their publishers.
- Sudhibhushan Bhattacharya (1957). Ollari: A Dravidian Speech. Government of India, Department of Anthropology. Link
- Aduk Tayeng (1976). Milang Phrase-Book. Director of Information and Public Relations, Arunachal Pradesh, Shillong. Link
- Rinchin Dondrup (1988). A Hand Book on Sherdukpen Language. Directorate of Research, Government of Arunachal Pradesh, Itanagar. Link
- Rinchin Dondrup (1990). Bugun Language Guide. Directorate of Research, Government of Arunachal Pradesh, Itanagar. Link
- W. E. Witter (1999). Outline Grammar of The Lotha Naga Language. Kyong Academy, Wokha (1999 reprint). Link
- R. Senkuttuvan (2002). Parengi, in Linguistic Survey of India: Orissa. Office of the Registrar General, India. Link
- P. Edward Vedamanickam (2002). Didei, in Linguistic Survey of India: Orissa. Office of the Registrar General, India. Link
- N. Gopalakrishnan (2002). Bonda, in Linguistic Survey of India: Orissa. Office of the Registrar General, India. Link
- Tapoli Badu (2004). Tangam Language Guide. Directorate of Research, Government of Arunachal Pradesh, Itanagar. Link
- Arlo Griffiths (2008). Gutob. Routledge. Link
- John Peterson (2010). Kharia Texts: Glossed, translated and annotated. Language Description Heritage / Max Planck repository. Link
- Krishna Boro (2017). A Grammar of Hakhun Tangsa. University of Oregon. Link
- Elangbam Manimohon Meitei (2017). Purum Chong Kinchuna Zedetrubu: A Learner's Book of the Purum Language. Centre for Endangered Languages, Tezpur University. Link
- I. D. Raguibou, Dinkur Borah (2020). Yimchunger Yutha Chingnu Anikhitpu Khehum: A Learner's Book of the Yimchunger Language. Centre for Endangered Languages, Tezpur University. Link
- Gregory D. S. Anderson, Bikram Jora (2021). Introduction to the templatic verb morphology of Birhor (Birhoɽ), a Kherwarian Munda language. John Benjamins / Institute of Linguistics, Academia Sinica. CC BY 4.0. Link
- Sabita Pradhan, Arimardan Kumar Tripathi, Akash Bhagat (2022). Birhor: Language and Life. Centre for Endangered Languages, Visva-Bharati. Link
- John Peterson, Abhay Sagar Minz, Prabhat Linda, Ariba Khan, Francis Xavier Kachhap, Manish Gari (2024). A Brief Introduction to the Turi Language of Eastern India. Edizioni Ca’ Foscari. CC BY 4.0. Link
- Masato Kobayashi (2025). Hill Korwa of Kado Pani: Outline Grammar, Text and Glossary. Kotoba Books. Link
- Students of MA in Linguistics and Language Technology, 2018-20, Department of English, Tezpur University (n.d.). A brief linguistic sketch of the Barman Thar (Language). Centre for Endangered Languages, Tezpur University. Link