15.3.5 Group the lines by part

photo-x217|all · photo-x217|all · 14 drafts · 11 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
20a.1main
20b.1main
20b.2main
20c.1main
20c.2main
20d.1main
20d.2main
21a.1main
21b.1main
22.1main
22.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
162 cups diced sweet potatoes2cupssweet potatoesdiced—mainitem————2[{"what": "leading word pair not in the key", "row": "sweet potatoes", "word": "diced"}]—
272 medium carrots, diced2—medium carrotsdiced—mainitem————2——
381 small zucchini, diced1—small zucchinidiced—mainitem————1——
491 small yellow squash, diced1—small yellow squashdiced—mainitem————1——
510¼ teaspoon smoked paprika¼teaspoonsmoked paprika——mainitem————1/4——
611½ teaspoon ground cumin½teaspoonground cumin——mainitem————1/2——
712¼ teaspoon salt, plus more for the dressing¼teaspoonsalt, plus more for the dressing——mainitem————1/4——
813¼ teaspoon freshly ground black pepper, plus more for the dressing¼teaspoonblack pepper, plus more for the dressingfreshly ground—mainitem————1/4——
914Olive oil (optional)——olive oil—yesmainitem———————
10151 teaspoon Dijon mustard1teaspoonDijon mustard——mainitem————1——
11162 tablespoons freshly squeezed lemon juice2tablespoonslemon juicefreshly squeezed—mainitem————2——
12172 tablespoons tahini2tablespoonstahini——mainitem————2——
1318¼ cup finely chopped fresh flat-leaf parsley¼cupfresh flat-leaf parsleyfinely chopped—mainitem————1/4——
14191½ cups canned lentils, drained and rinsed1½cupscanned lentilsdrained and rinsed—mainitem————3/2——

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1sweet potatoesmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
2medium carrotsmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
3small zucchinimain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
4small yellow squashmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
5smoked paprikamain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
6ground cuminmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
7salt, plus more for the dressingmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
8black pepper, plus more for the dressingmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
9olive oilmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
10Dijon mustardmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
11lemon juicemain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
12tahinimain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
13fresh flat-leaf parsleymain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
14canned lentilsmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
Groupsas written
groupstepslines
120a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.21, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1sweet potatoesmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
2medium carrotsmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
3small zucchinimain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
4small yellow squashmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
5smoked paprikamain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
6ground cuminmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
7salt, plus more for the dressingmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
8black pepper, plus more for the dressingmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
9olive oilmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
10Dijon mustardmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
11lemon juicemain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
12tahinimain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
13fresh flat-leaf parsleymain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
14canned lentilsmain20a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.2
Groupsas written
groupstepslines
120a.1, 20b.1, 20b.2, 20c.1, 20c.2, 20d.1, 20d.2, 21a.1, 21b.1, 22.1, 22.21, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14