15.3.3 The words that name each line

Kachumber · url-v22|extraction-kachumber · 9 drafts · 4 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.

6 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
  • Draft #2 has _qv null although its quantity is 0.5, while #3 carries a _qv; this does not change the words here.
  • I wrote the unit pcs of #2 in its singular form pc.
Differencesevery keyed cell where the script and the key differ; real differences first
kindtablerowcolumnscriptanswer key
differsEach line's naming words2fullcucumber, pcscucumber, pc
differsEach line's naming words5fallbackalternative—
differsEach line's naming words6fallbackalternative, oliveolive
differsEach line's naming words7fallbackalternative—
differsEach line's naming words8fallbackalternative—
differsEach line's naming words9fallbackalternative—

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_words_flags_addon_x_copy_converted
15Tomato——tomato——mainitem———————yes—
213Cucumber (0.5pcs)0.5pcscucumber——mainitem———————yes—
314Coriander (5g)0.2weight ouncecoriander——mainitem—[[5.0, "g"]]——1/5——yesyes
416Red onion——red onion——mainitem———————yes—
518butter (or dietary alternatives)——butter (or dietary alternatives)——mainitem———————yes—
618olive oil (or dietary alternatives)——olive oil (or dietary alternatives)——mainitem———————yes—
718pepper (or dietary alternatives)——pepper (or dietary alternatives)——mainitem———————yes—
818salt (or dietary alternatives)——salt (or dietary alternatives)——mainitem———————yes—
918water (or dietary alternatives)——water (or dietary alternatives)——mainitem———————yes—

Script result

Each line's naming words
#ingredientname_trimmedheadhead_rawtrigfallbackvocabfullbare_nophraser120_part
1tomatotomatotomatotomatotomato—tomatotomatononono
2cucumbercucumbercucumbercucumbercucumber—cucumbercucumber, pcsnonono
3coriandercoriandercoriandercoriandercoriander—coriandercoriander, ounce, weightnonono
4red onionred oniononiononiononion, redonion—onion, redonion, rednonono
5butter (or dietary alternatives)butterbutterbutterbutteralternativealternative, butter, dietaryalternative, butter, dietarynonono
6olive oil (or dietary alternatives)olive oiloiloiloil, oliveoilalternative, olivealternative, dietary, oil, olivealternative, dietary, oil, olivenonono
7pepper (or dietary alternatives)pepperpepperpepperpepperalternativealternative, dietary, pepperalternative, dietary, peppernonono
8salt (or dietary alternatives)saltsaltsaltsaltalternativealternative, dietary, saltalternative, dietary, saltnonono
9water (or dietary alternatives)waterwaterwaterwateralternativealternative, dietary, wateralternative, dietary, waternonono

Answer key

Each line's naming words
#ingredientname_trimmedheadhead_rawtrigfallbackvocabfullbare_nophraser120_part
1tomatotomatotomatotomatotomato—tomatotomatononono
2cucumbercucumbercucumbercucumbercucumber—cucumbercucumber, pcnonono
3coriandercoriandercoriandercoriandercoriander—coriandercoriander, ounce, weightnonono
4red onionred oniononiononiononion, redonion—onion, redonion, rednonono
5butter (or dietary alternatives)butterbutterbutterbutter—alternative, butter, dietaryalternative, butter, dietarynonono
6olive oil (or dietary alternatives)olive oiloiloiloil, oliveoilolivealternative, dietary, oil, olivealternative, dietary, oil, olivenonono
7pepper (or dietary alternatives)pepperpepperpepperpepper—alternative, dietary, pepperalternative, dietary, peppernonono
8salt (or dietary alternatives)saltsaltsaltsalt—alternative, dietary, saltalternative, dietary, saltnonono
9water (or dietary alternatives)waterwaterwaterwater—alternative, dietary, wateralternative, dietary, waternonono