15.3.5 Group the lines by part

Tomato-Cream Sauce · url-l232|all · 9 drafts · 9 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

Puts each line with the steps whose IS 14 tag matches the line's part, so a main-list line is only looked for in main steps and an add-on's lines only in that add-on's steps.

The key agrees with the script on every keyed cell.

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.

Inputs

IS 14 step tagseach step's part
steptag
9a.1main
9b.1main
9b.2main
9c.1main
9c.2main
9d.1main
9d.2main
9e.1main
9f.1main
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
111 tbsp. extra-virgin olive oil1tbsp.extra-virgin olive oil——mainitem————1——
222 small cloves garlic, peeled and minced2small clovesgarlicpeeled and minced—mainitem————2——
332 cups canned crushed tomatoes2cupscanned crushed tomatoes——mainitem————2——
443 fresh basil leaves3—fresh basil leaves——mainitem————3——
551⁄4 cup heavy cream1⁄4cupheavy cream——mainitem————1/4——
663 tbsp. prepared pesto3tbsp.prepared pesto——mainitem————3——
773 tbsp. freshly grated Parmigiano-Reggiano3tbsp.Parmigiano-Reggianofreshly grated—mainitem————3[{"what": "leading word pair not in the key", "row": "Parmigiano-Reggiano", "word": "freshly grated"}]—
88Salt and freshly ground black pepper——salt——mainitem———————
98Salt and freshly ground black pepper——black pepperfreshly ground—mainitem———————

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1extra-virgin olive oilmain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
2garlicmain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
3canned crushed tomatoesmain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
4fresh basil leavesmain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
5heavy creammain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
6prepared pestomain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
7Parmigiano-Reggianomain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
8saltmain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
9black peppermain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
Groupsas written
groupstepslines
19a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.11, 2, 3, 4, 5, 6, 7, 8, 9

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1extra-virgin olive oilmain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
2garlicmain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
3canned crushed tomatoesmain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
4fresh basil leavesmain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
5heavy creammain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
6prepared pestomain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
7Parmigiano-Reggianomain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
8saltmain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
9black peppermain9a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.1
Groupsas written
groupstepslines
19a.1, 9b.1, 9b.2, 9c.1, 9c.2, 9d.1, 9d.2, 9e.1, 9f.11, 2, 3, 4, 5, 6, 7, 8, 9