15.3.5 Group the lines by part

Broccoli Rabe with Garlic and Red Pepper Flakes · photo-x201|1-10,12-13,16-18 · 9 drafts · 20 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
9c.1main
9c.2main
9d.1main
9d.2main
9d.3main
9e.1main
9e.2main
10a.1main
10b.1main
10b.2main
10b.3main
10c.1main
10c.2main
13a.1add_on:p1
13b.1add_on:p1
17.1main
17.2main
18.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_ounce_words_flags_addon
1414 ounces broccoli rabe, trimmed and cut into 1-inch pieces14weight ouncesbroccoli rabetrimmed and cut into 1-inch pieces—mainitem————14yes——
25Salt and pepper——salt——mainitem————————
35Salt and pepper——pepper——mainitem————————
462 tablespoons extra-virgin olive oil2tablespoonsextra-virgin olive oil——mainitem————2———
573 garlic cloves, minced3clovesgarlicminced—mainitem————3———
68¼ teaspoon red pepper flakes¼teaspoonred pepper flakes——mainitem————1/4———
713¼ cup oil-packed sun-dried tomatoes¼cupoil-packed sun-dried tomatoes——add_on:p1phrase————1/4——yes
813oil——oil——add_on:p1phrase———————yes
9133 tablespoons toasted pine nuts3tablespoonspine nutstoasted—add_on:p1phrase————3——yes

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1broccoli rabemain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
2saltmain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
3peppermain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
4extra-virgin olive oilmain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
5garlicmain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
6red pepper flakesmain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
7oil-packed sun-dried tomatoesadd_on:p113a.1, 13b.1
8oiladd_on:p113a.1, 13b.1
9pine nutsadd_on:p113a.1, 13b.1
Groupsas written
groupstepslines
19a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.11, 2, 3, 4, 5, 6
213a.1, 13b.17, 8, 9

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1broccoli rabemain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
2saltmain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
3peppermain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
4extra-virgin olive oilmain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
5garlicmain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
6red pepper flakesmain9a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.1
7oil-packed sun-dried tomatoesadd_on:p113a.1, 13b.1
8oiladd_on:p113a.1, 13b.1
9pine nutsadd_on:p113a.1, 13b.1
Groupsas written
groupstepslines
19a.1, 9b.1, 9c.1, 9c.2, 9d.1, 9d.2, 9d.3, 9e.1, 9e.2, 10a.1, 10b.1, 10b.2, 10b.3, 10c.1, 10c.2, 17.1, 17.2, 18.11, 2, 3, 4, 5, 6
213a.1, 13b.17, 8, 9