15.3.5 Group the lines by part

photo-m01|all · photo-m01|all · 13 drafts · 10 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
11.1main
12.1main
12.2main
13.1main
14.1main
16.1main
g1.1main
g1.2main
g2.1main
g2.2main
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
123 c. grated carrots3cupscarrotsgrated—mainitem————3[{"what": "leading word pair not in the key", "row": "carrots", "word": "grated"}]——
234 eggs4—eggs——mainitem————4———
341 1/2 c. salad oil1 1/2cupssalad oil——mainitem————3/2———
452 c. sugar2cupssugar——mainitem————2———
562 c. flour2cupsflour——mainitem————2———
671/2 ts. salt1/2ts.salt——mainitem————1/2———
782 tsp. baking soda2tsp.baking soda——mainitem————2———
891 1/2 c. chopped nuts1 1/2cupsnutschopped—mainitem————3/2———
9101 tsp. vanilla1tsp.vanilla——mainitem————1———
1015FROSTING- 1 stick oleo, 1-8oz pkg cream cheese, 1 lb box powdered sugar 1 tsp vanilla1stickoleo——mainitem————1———
1115FROSTING- 1 stick oleo, 1-8oz pkg cream cheese, 1 lb box powdered sugar 1 tsp vanilla8weight ouncescream cheese——mainitem————8——yes
1215FROSTING- 1 stick oleo, 1-8oz pkg cream cheese, 1 lb box powdered sugar 1 tsp vanilla1lbpowdered sugar——mainitem————1———
1315FROSTING- 1 stick oleo, 1-8oz pkg cream cheese, 1 lb box powdered sugar 1 tsp vanilla1tspvanilla——mainitem————1———

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1carrotsmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
2eggsmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
3salad oilmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
4sugarmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
5flourmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
6saltmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
7baking sodamain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
8nutsmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
9vanillamain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
10oleomain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
11cream cheesemain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
12powdered sugarmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
13vanillamain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
Groupsas written
groupstepslines
111.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.21, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1carrotsmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
2eggsmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
3salad oilmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
4sugarmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
5flourmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
6saltmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
7baking sodamain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
8nutsmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
9vanillamain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
10oleomain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
11cream cheesemain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
12powdered sugarmain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
13vanillamain11.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.2
Groupsas written
groupstepslines
111.1, 12.1, 12.2, 13.1, 14.1, 16.1, g1.1, g1.2, g2.1, g2.21, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13