Home / Writing / IndicGram

IndicGram

A grammar databank for 18 of India's least-resourced languages, recovered page by page from published grammars.

neuralnets · 24 November 2026 · updated 24 November 2026 · 16 min read

Turi · Munda · Odisha

miɑʔnone dubɑtree pɛndɑrɛunder dubʔm-ɛn=ə=ɛsit.down-pst.mid=fin=3sg.anim

‘He sat down under a tree.’

Each word sits above its meaning or grammatical gloss. This is linguistic transcription: ʔ, ɛ, ə are intentional symbols; hyphens and equals signs mark grammatical boundaries.

Compare with the printed source Original printed example 51: four aligned Turi words and their glosses, followed by He sat down under a tree.

Cropped from Peterson et al. (2024), A Brief Introduction to the Turi Language of Eastern India, example 51, printed p. 299 (PDF p. 39).[12] CC BY 4.0.

Get the dataset on Hugging Face ↗ See the numbers

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:

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.

LanguageRegionExamplesGlossed (IGT)RulesTotal records
Austroasiatic · Munda
KhariaJharkhand1,3441,30973 1,417
Hill Korwa (Kado Pani)Chhattisgarh697594240 937
BirhorJharkhand184115136 320
Gta (Didayi)Odisha265141 306
Gutob (Bodo Gadaba)Odisha19914595 294
TuricoreOdisha676155 122
Gorum-ParengaOdisha84231 115
Bonda / RemoOdisha60125 85
Sino-Tibetan
Hakhun TangsaArunachal Pradesh / Assam2,0701,201801 2,871
BugunArunachal Pradesh217014 231
Yimchungru NagaNagaland185134 219
PurumManipur150022 172
Lotha NagaNagaland10125 126
TangamArunachal Pradesh8612 20
Sherdukpen (Shergaon)Arunachal Pradesh0018 18
MilangArunachal Pradesh007 7
Dravidian
Ollari GadabaOdisha27391 118
Classification unresolved
Barman TharIndia281932 60
All 18 varieties5,5863,4581,8527,438
Table 1. IndicGram v0.1 by language. Rules include 10 facts read from grammatical tables. Core marks the one language accepted after our resource audit; the rest are provisional pending variety checks. All counts are automatically extracted records awaiting expert review. The Hugging Face release leaves out 14 pages still waiting for OCR, so it has 1,979 pages, 5,527 examples and 1,842 rules.
Read this before using the data. Every record in v0.1 is a machine-extracted candidate. None has been verified by a linguist yet, and each record carries quality flags that say what still needs checking. That is why this release is for research and review, not a gold standard.

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

Figure 1. Publication years of the 18 dated source works, from a 1957 grammar of Ollari to a 2025 grammar of Hill Korwa. Three chapters of the 2002 Linguistic Survey of India volume on Odisha count separately. One source is undated. Hover a dot for the language.

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.

  1. AcquireFetch the PDF, reject login pages, freeze a SHA-256
  2. IngestKeep every page, line and coordinate
  3. OCROnly on pages that need it, kept as an alternative
  4. ExtractRules, IGT, examples and table facts
  5. ValidateSchemas, spans, alignment and quality flags
Figure 2. Each stage writes an inspectable output. Reviewer corrections are stored separately, so the original prediction is never overwritten.

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:

miɑʔnone dubɑtree pɛndɑrɛunder dubʔm-ɛn=ə=ɛsit.down-pst.mid=fin=3sg.anim

‘He sat down under a tree.’

ex. 51PDF page 39confidence 0.82status needs review
variety assignment requires reviewalignment semantics unverified
Figure 3. Real IndicGram records, shown with their provenance and quality flags. Grammatical labels are shown in small caps, as in the printed grammar and the Leipzig Glossing Rules[9]; the dataset stores them in lowercase and flags this with 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:

Rule · verbs · p. 16

“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.”

Example · ex. 28 · p. 16

bɑhrirɛ lim dubɑ hɛn=ɑʔ=ɑ
“There is a Neem tree outside.”

Figure 4. A rule and an example that confirms it. Linking pairs like this reliably is the hardest open problem in IndicGram: v0.1 contains only 10 explicit rule–example links, all from grammatical tables.

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

Verbs210
Phonology129
Morphology124
Number105
Case89
Negation89
Nouns78
Possession78
Compounding64
Tense63
Figure 5. The ten most common of 47 feature labels. Labels are assigned automatically and not yet reviewed.

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

ã→ɖ478
P→ʔ463
N→ŋ388
ú→ʈ65
ñ→ɲ10
:→ː10
O→ɔ4
+6 moreɪ ɛ ɑ ʌ ɸ ɽ1 each
Figure 6. Stored character, the character it really is, and how often it was repaired. 1,424 repairs across 63 pages of the Gutob grammar. Symbol-font characters in the Kharia and Barman Thar sources (≠, −, ∅, •) were recovered the same way.

The 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:

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.

6,931
train rows
2,780
validation rows
1,982
test rows

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:

TaskBaselineTest NExact matchToken F1
Feature classificationMajority class36911.911.9
Feature classificationNaive Bayes36930.630.6
Gloss predictionTrain-set lexicon4160.00.0
Translation → EnglishNearest neighbour4140.02.7
English → translationNearest neighbour4140.00.2
Grammar-rule QACopy supplied evidence369100.0100.0
Table 2. Held-out test results (%). Scores measure agreement with unreviewed extracted targets. Grammar-rule QA with supplied evidence is a sanity check of the task format, not a measure of knowledge.

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.

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

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

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. Matthew S. Dryer, Martin Haspelmath (eds.). WALS Online (v2020.3). Zenodo, 2013. wals.info
  7. 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
  8. 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
  9. 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
  10. Rei Fukui. TIPA: A system for processing phonetic symbols in LaTeX. CTAN. ctan.org/pkg/tipa
  11. Adobe Systems. Symbol font encoding to Unicode mapping. Unicode Consortium. unicode.org
  12. 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).

BibTeXDownload .bib
@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.

  1. Sudhibhushan Bhattacharya (1957). Ollari: A Dravidian Speech. Government of India, Department of Anthropology. Link
  2. Aduk Tayeng (1976). Milang Phrase-Book. Director of Information and Public Relations, Arunachal Pradesh, Shillong. Link
  3. Rinchin Dondrup (1988). A Hand Book on Sherdukpen Language. Directorate of Research, Government of Arunachal Pradesh, Itanagar. Link
  4. Rinchin Dondrup (1990). Bugun Language Guide. Directorate of Research, Government of Arunachal Pradesh, Itanagar. Link
  5. W. E. Witter (1999). Outline Grammar of The Lotha Naga Language. Kyong Academy, Wokha (1999 reprint). Link
  6. R. Senkuttuvan (2002). Parengi, in Linguistic Survey of India: Orissa. Office of the Registrar General, India. Link
  7. P. Edward Vedamanickam (2002). Didei, in Linguistic Survey of India: Orissa. Office of the Registrar General, India. Link
  8. N. Gopalakrishnan (2002). Bonda, in Linguistic Survey of India: Orissa. Office of the Registrar General, India. Link
  9. Tapoli Badu (2004). Tangam Language Guide. Directorate of Research, Government of Arunachal Pradesh, Itanagar. Link
  10. Arlo Griffiths (2008). Gutob. Routledge. Link
  11. John Peterson (2010). Kharia Texts: Glossed, translated and annotated. Language Description Heritage / Max Planck repository. Link
  12. Krishna Boro (2017). A Grammar of Hakhun Tangsa. University of Oregon. Link
  13. Elangbam Manimohon Meitei (2017). Purum Chong Kinchuna Zedetrubu: A Learner's Book of the Purum Language. Centre for Endangered Languages, Tezpur University. Link
  14. 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
  15. 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
  16. Sabita Pradhan, Arimardan Kumar Tripathi, Akash Bhagat (2022). Birhor: Language and Life. Centre for Endangered Languages, Visva-Bharati. Link
  17. 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
  18. Masato Kobayashi (2025). Hill Korwa of Kado Pani: Outline Grammar, Text and Glossary. Kotoba Books. Link
  19. 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
Source map
Every number in this post, traced to its source
All 19 source works, every language, the example record IDs, and the data files behind every figure.
Open →