--- pretty_name: 'IndicGram: Grammar Databank for Low-Resource Indian Languages' license: other license_name: source-specific-rights license_link: LICENSE.md multilinguality: multilingual tags: - linguistics - indic-languages - grammar - ocr - unreviewed - provenance configs: - config_name: pages data_files: - split: train path: data/pages/train-00000-of-00001.parquet - config_name: spans data_files: - split: train path: data/spans/train-00000-of-00001.parquet - config_name: examples data_files: - split: train path: data/examples/train-00000-of-00001.parquet - config_name: grammar_rules data_files: - split: train path: data/grammar_rules/train-00000-of-00001.parquet - config_name: sources data_files: - split: train path: data/sources/train-00000-of-00001.parquet - config_name: languages data_files: - split: train path: data/languages/train-00000-of-00001.parquet - config_name: pages_unicode data_files: - split: train path: data/pages_unicode/train-00000-of-00001.parquet default: true - config_name: spans_unicode data_files: - split: train path: data/spans_unicode/train-00000-of-00001.parquet - config_name: recovery_records data_files: - split: train path: data/recovery_records/train-00000-of-00001.parquet - config_name: recovery_mappings data_files: - split: train path: data/recovery_mappings/train-00000-of-00001.parquet - config_name: unresolved_recovery data_files: - split: train path: data/unresolved_recovery/train-00000-of-00001.parquet --- # IndicGram: Grammar Rules and Interlinear Glossed Text for Low-Resource Indian Languages IndicGram is a collection of grammatical statements and interlinear glossed text (IGT) extracted from published descriptive grammars of 18 under-resourced language varieties of India. Every record retains its source work, physical page and the text spans from which it was extracted. The dataset is the first release of the Indian Languages Databank at Building Bad. **Status:** machine-extracted candidates. No record has been validated by a linguist or a speaker. | | | |---|---| | Curated by | neuralnets (Building Bad) | | Languages | 18 varieties (see below); metalanguage English | | Sources | 19 published grammars, sketches and learner's guides | | Release | v0.2 (Unicode recovery) | | Description | [IndicGram: a grammar databank for India's least-resourced languages](https://buildingbad.xyz/blog/indicgram/) | | Provenance of reported figures | [Source map](https://buildingbad.xyz/blog/indicgram/sources/) | | Contact | cneuralnets@gmail.com | ## Dataset summary | Measure | Value | |---|---:| | Language varieties | 18 | | Source works | 19 | | Pages | 1,979 (1,365 native text, 614 OCR) | | Text spans with coordinates | 127,590 | | Example candidates | 5,527 | | Grammar-rule candidates | 1,842 | | Font-encoding repairs | 1,424 characters on 63 pages | | Human-validated records | 0 | **Varieties.** Austroasiatic (Munda): Birhor, Gorum-Parenga, Gta (Dideyi), Gutob (Bodo Gadaba), Hill Korwa of Kado Pani, Kharia, Bonda (Remo), Turi. Sino-Tibetan: Bugun, Hakhun Tangsa, Lotha Naga, Milang, Purum, Sherdukpen (Shergaon), Tangam, Yimchungru Naga. Dravidian: Ollari Gadaba. Unresolved: Barman Thar. Variety identities follow the source descriptions; several remain provisional and are documented in the `languages` table. ## Example Turi (Munda), from Peterson et al. (2024), example 51: | *miɑʔn* | *dubɑ* | *pɛndɑrɛ* | *dubʔm-ɛn=ə=ɛ* | |---|---|---|---| | one | tree | under | sit.down-PST.MID=FIN=3SG.ANIM | ‘He sat down under a tree.’ ## Dataset structure | Configuration | Rows | Contents | |---|---:|---| | `pages_unicode` (default) | 1,979 | Page text with font-encoding repairs (`text`) and the original layer (`text_raw`) | | `pages` | 1,979 | Page text and provenance as originally extracted | | `spans` | 127,590 | Native and OCR spans with bounding boxes in PDF points | | `examples` | 5,527 | Example candidates: source text, segmentation, gloss and translation | | `grammar_rules` | 1,842 | Grammatical statements with source evidence | | `sources` | 19 | Bibliographic data, URLs, hashes and source-specific rights | | `languages` | 18 | Variety identifiers and audit status | | `spans_unicode` | 1,006 | Repaired spans with per-character provenance | | `recovery_records` | 1,478 | Candidates linked to repair evidence | | `recovery_mappings` | 32 | Font mappings scoped to exact PDF and font hashes | | `unresolved_recovery` | 1,198 | OCR and layout candidates requiring review | `source_id` and `language_id` join content tables to `sources` and `languages`. `page_id`, `pdf_page` and `source_sha256` identify the physical page; `span_ids` link examples and rules to `spans`. Source-image crops for the recovery tables (2,330) are provided in `evidence/source_crops.zip`. All configurations use a single `train` split for storage. It does not constitute a validated training set, and no evaluation split is defined in this release. ## Usage ```python from datasets import load_dataset pages = load_dataset("neuralnets/IndicGram", "pages_unicode", split="train") examples = load_dataset("neuralnets/IndicGram", "examples", split="train") rules = load_dataset("neuralnets/IndicGram", "grammar_rules", split="train") ``` ## Processing Sources were acquired, hashed and parsed with page-level provenance. Native PDF text was used where available, and English Tesseract OCR was applied to scanned pages. Rules and examples were extracted by rule-based and heuristic methods; confidence values are uncalibrated heuristics. The Gutob grammar was typeset with TIPA, and its PDF text layer stores phonetic symbols at font-private code points. These were recovered with mappings bound to the exact PDF and embedded-font hashes and derived from the published TIPA and Adobe Symbol encodings. All recovered characters are standard Unicode. The original text is retained alongside each repair. ## Limitations - All linguistic records are unreviewed candidates. Segmentation, glosses, translations and rule boundaries may be incorrect. - English OCR does not reliably recover Devanagari or all phonetic symbols. Known failure modes include column fusion, dropped lines and swapped source, gloss and translation tiers. - Sources with demonstrated encoding or layout errors (Gutob, Gta, Remo, Tangam, Shergaon, Gorum) are marked `source_diagnostic_quarantined=true`. - Fourteen pages awaiting OCR are excluded together with all records derived from them; their identifiers are listed in `metadata/skipped_pages.json`. - Several varieties are already represented in ODIN, GlossLM or language archives. Inclusion does not imply previously absent coverage. ## Licensing Rights to the extracted text remain with the original authors and publishers, and no blanket licence is applied to it. Two sources, Peterson et al. (2024) on Turi and Anderson & Jora (2021) on Birhor, are published under CC BY 4.0; the remaining works are not cleared for redistribution. Rights are recorded per source in the `sources` table and in [LICENSE.md](LICENSE.md). Rights holders who wish a work to be handled differently are invited to contact the curator. ## Citation Please cite the dataset and its description, together with the source grammar for each language used. The full list of source works is given in the [description](https://buildingbad.xyz/blog/indicgram/#sources). ```bibtex @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} } @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/} } ```