15.3.5 Group the lines by part

photo-x077|all · photo-x077|all · 12 drafts · 16 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
15.1main
15.2main
g1.1main
g1.2main
g1.3main
g1.4main
g1.5main
g2.1main
g2.2main
g2.3main
g3.1main
g3.2main
g4.1main
g4.2main
g4.3main
g5.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_ounce
122 cloves garlic2clovesgarlic——mainitem————2———
231 slice ginger1sliceginger——mainitem————1———
347oz mushrooms7weight ouncesmushrooms——mainitem————7——yes
45½ tsp mustard seeds½tspmustard seeds——mainitem————1/2———
568 cherry tomatoes8—cherry tomatoes——mainitem————8———
67¾ cup tomato sauce (5oz)¾cuptomato sauce (5 weight ounces)——mainitem————3/4———
781 tbsp sweet paprika1tbspsweet paprika——mainitem————1———
8910.5oz potatoes10.5weight ouncespotatoes——mainitem————21/2——yes
9101 cup water1cupwater——mainitem————1———
10111 pinch black pepper1pinchblack pepper——mainitem————1———
1112½ cup frozen peas½cupfrozen peas——mainitem————1/2———
1213salt (to taste)——salt (to taste)——mainitem————————

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1garlicmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
2gingermain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
3mushroomsmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
4mustard seedsmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
5cherry tomatoesmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
6tomato sauce (5 weight ounces)main15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
7sweet paprikamain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
8potatoesmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
9watermain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
10black peppermain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
11frozen peasmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
12salt (to taste)main15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
Groupsas written
groupstepslines
115.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1garlicmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
2gingermain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
3mushroomsmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
4mustard seedsmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
5cherry tomatoesmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
6tomato sauce (5 weight ounces)main15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
7sweet paprikamain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
8potatoesmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
9watermain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
10black peppermain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
11frozen peasmain15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
12salt (to taste)main15.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.1
Groupsas written
groupstepslines
115.1, 15.2, g1.1, g1.2, g1.3, g1.4, g1.5, g2.1, g2.2, g2.3, g3.1, g3.2, g4.1, g4.2, g4.3, g5.11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12