15.3.3 The words that name each line

Ham and Cheese Crescent Sandwiches · url-l203|all · 3 drafts · 12 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.

3 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
  • #1's Ingredient cell drops the printed alternative 'Crescent Dough Sheet', so a step that calls it 'dough' or 'dough sheet' prints no word of this line.
  • #1's name_trimmed keeps the printed '™', and its word lists read 'pillsbury' without it.
Differencesevery keyed cell where the script and the key differ; real differences first
kindtablerowcolumnscriptanswer key
differsEach line's naming words1fallbackcrescent, original, pillsburycrescent
differsEach line's naming words3trigcheese, swiss, swisscheesecheese, swisscheese
differsEach line's naming words3fallback—swiss

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_ounce_words_flags_addon_alt_tail
161 can (8 oz) refrigerated Pillsbury™ Original Crescent Rolls (8 Count) or 1 can (8 oz) refrigerated Pillsbury™ Original Crescent Dough Sheet8weight ouncesrefrigerated Pillsbury™ Original Crescent Rolls (8 Count)——mainitem———yes8yes———
274 thin slices cooked ham4thin slicescooked ham——mainitem————4————
384 thin slices Swiss cheese4thin slicesSwiss cheese——mainitem————4————

Script result

Each line's naming words
#ingredientname_trimmedheadhead_rawtrigfallbackvocabfullbare_nophraser120_part
1refrigerated Pillsbury™ Original Crescent Rolls (8 Count)refrigerated pillsbury™ original crescent rollsrollrollscrescentroll, rollcrescent, original, pillsburycount, crescent, original, pillsbury, refrigerated, rollcount, crescent, original, ounce, pillsbury, refrigerated, roll, weightnonono
2cooked hamcooked hamhamhamcookedham, ham—cooked, hamcooked, ham, slice, thinnonono
3Swiss cheeseswiss cheesecheesecheesecheese, swiss, swisscheese—cheese, swisscheese, slice, swiss, thinnonono

Answer key

Each line's naming words
#ingredientname_trimmedheadhead_rawtrigfallbackvocabfullbare_nophraser120_part
1refrigerated Pillsbury™ Original Crescent Rolls (8 Count)refrigerated pillsbury™ original crescent rollsrollrollscrescentroll, rollcrescentcount, crescent, original, pillsbury, refrigerated, rollcount, crescent, original, ounce, pillsbury, refrigerated, roll, weightnonono
2cooked hamcooked hamhamhamcookedham, ham—cooked, hamcooked, ham, slice, thinnonono
3Swiss cheeseswiss cheesecheesecheesecheese, swisscheeseswisscheese, swisscheese, slice, swiss, thinnonono