15.3.3 The words that name each line

Smoked Basa & Spinach Pilau Rice · url-v12|all · 13 drafts · 32 steps · IC script 439f18f9 (the Nov 30, 2026, 8:47 AM MST IS run) · traced answer equals the run's: yes · answer key: Opus 5.5

For every draft, works out which words can name it: the name is trimmed (brackets, usage words such as 'for garnish' or 'to taste' cut); its last word, singular, is the main word; a few more trigger words are added; the name's other food words are backups; and the name, prep and unit words are kept for breaking ties.

10 keyed cells differ.

Left: the complete tables this sub step reads (the key was given exactly these). Middle: the script's output. Right: the answer key's output, row for row. Yellow, bold = a keyed cell where they differ; light = they differ only in the reason label (same effect), in a word the script's word lists leave out on purpose, or in a token position after the step's text already differs. Columns never highlighted are context the key does not answer.

Answer key's notes
  • Line 7's Ingredient cell keeps the footnote mark '†', which is no word, so it is left out of the trimmed name and the word lists.
  • Line 8 adds 'stock' as a trigger because a step calling the mix 'the stock' means this item, though the main word by the rule is 'mix'; that choice is a judgment call.
  • Line 7's unit 'pcs' is written singular as 'pc', which assumes 15.3.2 singularizes abbreviations that way.
  • The bracket '(or dietary alternatives)' on lines 10 to 13 is a note, so it gives no fallback word, but its words stay in vocab.
Differencesevery keyed cell where the script and the key differ; real differences first
kindtablerowcolumnscriptanswer key
differsEach line's naming words3fallbackgrain—
differsEach line's naming words6fallbackspring—
differsEach line's naming words7name_trimmedsmoked basa fillets †smoked basa fillets
differsEach line's naming words7fullbasa, fillet, pcs, smokedbasa, fillet, pc, smoked
differsEach line's naming words8trigmix, stockmixmix, stock, stockmix
differsEach line's naming words8fallbackstock, vegetablevegetable
differsEach line's naming words10fallbackalternative—
differsEach line's naming words11fallbackalternative—
differsEach line's naming words12fallbackalternative, vegetablevegetable
differsEach line's naming words13fallbackalternative—

Inputs

Draftsone per printed ingredient line (#1, #2, ... in list order), every field, as IS 15.3 receives them
#_line_textquantityunitingredientprepoptional_part_kind_heading_metric_note_container_qv_converted_words_flags_addon
15Ginger & garlic paste (15g)0.5weight ounceginger & garlic paste——mainitem—[[15.0, "g"]]——1/2yes——
26Lemon——lemon——mainitem————————
37Cooked white long grain rice (280g)9.9weight ouncescooked white long grain rice——mainitem—[[280.0, "g"]]——99/10yes——
48Dried chilli flakes (0.5tsp)0.5tspdried chilli flakes——mainitem————1/2———
59Ground turmeric (1tsp)1tspground turmeric——mainitem————1———
610Spring onion——spring onion——mainitem————————
711Smoked basa fillets (2pcs) †2pcssmoked basa fillets †——mainitem————————
812Vegetable stock mix (5.5g)0.2weight ouncevegetable stock mix——mainitem—[[5.5, "g"]]——1/5yes——
913Spinach (80g)2.8weight ouncesspinach——mainitem—[[80.0, "g"]]——14/5yes——
1014pepper (or dietary alternatives)——pepper (or dietary alternatives)——mainitem————————
1114salt (or dietary alternatives)——salt (or dietary alternatives)——mainitem————————
1214vegetable oil (or dietary alternatives)——vegetable oil (or dietary alternatives)——mainitem————————
1314water (or dietary alternatives)——water (or dietary alternatives)——mainitem————————

Script result

Each line's naming words
#ingredientname_trimmedheadhead_rawtrigfallbackvocabfullbare_nophraser120_part
1ginger & garlic pasteginger & garlic pastepastepastegarlicpaste, pastegarlic, gingergarlic, ginger, pastegarlic, ginger, ounce, paste, weightnonono
2lemonlemonlemonlemonlemon—lemonlemonnonono
3cooked white long grain ricecooked white long grain ricericericegrainrice, ricegraincooked, grain, long, rice, whitecooked, grain, long, ounce, rice, weight, whitenonono
4dried chilli flakesdried chilli flakesflakeflakeschilliflake, flakechillichilli, dried, flakechilli, dried, flake, tspnonono
5ground turmericground turmericturmericturmericgroundturmeric, turmeric—ground, turmericground, tsp, turmericnonono
6spring onionspring oniononiononiononion, springonionspringonion, springonion, springnonono
7smoked basa fillets †smoked basa fillets †filletfilletsbasa, basafillet, fillet—basa, fillet, smokedbasa, fillet, pcs, smokednonono
8vegetable stock mixvegetable stock mixmixmixmix, stockmixstock, vegetablemix, stock, vegetablemix, ounce, stock, vegetable, weightnonono
9spinachspinachspinachspinachspinach—spinachounce, spinach, weightnonono
10pepper (or dietary alternatives)pepperpepperpepperpepperalternativealternative, dietary, pepperalternative, dietary, peppernonono
11salt (or dietary alternatives)saltsaltsaltsaltalternativealternative, dietary, saltalternative, dietary, saltnonono
12vegetable oil (or dietary alternatives)vegetable oiloiloiloil, vegetableoilalternative, vegetablealternative, dietary, oil, vegetablealternative, dietary, oil, vegetablenonono
13water (or dietary alternatives)waterwaterwaterwateralternativealternative, dietary, wateralternative, dietary, waternonono

Answer key

Each line's naming words
#ingredientname_trimmedheadhead_rawtrigfallbackvocabfullbare_nophraser120_part
1ginger & garlic pasteginger & garlic pastepastepastegarlicpaste, pastegarlic, gingergarlic, ginger, pastegarlic, ginger, ounce, paste, weightnonono
2lemonlemonlemonlemonlemon—lemonlemonnonono
3cooked white long grain ricecooked white long grain ricericericegrainrice, rice—cooked, grain, long, rice, whitecooked, grain, long, ounce, rice, weight, whitenonono
4dried chilli flakesdried chilli flakesflakeflakeschilliflake, flakechillichilli, dried, flakechilli, dried, flake, tspnonono
5ground turmericground turmericturmericturmericgroundturmeric, turmeric—ground, turmericground, tsp, turmericnonono
6spring onionspring oniononiononiononion, springonion—onion, springonion, springnonono
7smoked basa fillets †smoked basa filletsfilletfilletsbasa, basafillet, fillet—basa, fillet, smokedbasa, fillet, pc, smokednonono
8vegetable stock mixvegetable stock mixmixmixmix, stock, stockmixvegetablemix, stock, vegetablemix, ounce, stock, vegetable, weightnonono
9spinachspinachspinachspinachspinach—spinachounce, spinach, weightnonono
10pepper (or dietary alternatives)pepperpepperpepperpepper—alternative, dietary, pepperalternative, dietary, peppernonono
11salt (or dietary alternatives)saltsaltsaltsalt—alternative, dietary, saltalternative, dietary, saltnonono
12vegetable oil (or dietary alternatives)vegetable oiloiloiloil, vegetableoilvegetablealternative, dietary, oil, vegetablealternative, dietary, oil, vegetablenonono
13water (or dietary alternatives)waterwaterwaterwater—alternative, dietary, wateralternative, dietary, waternonono