15.3.5 Group the lines by part

photo-l08|all · photo-l08|all · 10 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
14.1main
15a.1main
15b.1main
15b.2main
15c.1main
15c.2main
15d.1main
15d.2main
15d.3main
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_or_printed_ounce
142 tablespoons water2tablespoonswater——mainitem————2————
251 tablespoon soy sauce1tablespoonsoy sauce——mainitem————1————
361 tablespoon Shaoxing wine or dry sherry1tablespoonShaoxing wine——mainitem————1——Shaoxing wine or dry sherry—
472 teaspoons packed brown sugar2teaspoonspacked brown sugar——mainitem————2————
582 teaspoons grated fresh ginger2teaspoonsfresh gingergrated—mainitem————2————
691 teaspoon toasted sesame oil1teaspoontoasted sesame oil——mainitem————1————
7101 tablespoon vegetable oil1tablespoonvegetable oil——mainitem————1————
8111 pound thin asparagus, trimmed and cut on bias into 2-inch lengths1poundthin asparagustrimmed and cut on bias into 2-inch lengths—mainitem————1————
9124 ounces shiitake mushrooms, stemmed and sliced thin4weight ouncesshiitake mushroomsstemmed and sliced thin—mainitem————4———yes
10132 scallions, green parts only, sliced thin on bias2—scallionsgreen parts only, sliced thin on bias—mainitem————2————

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1watermain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
2soy saucemain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
3Shaoxing winemain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
4packed brown sugarmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
5fresh gingermain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
6toasted sesame oilmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
7vegetable oilmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
8thin asparagusmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
9shiitake mushroomsmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
10scallionsmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
Groupsas written
groupstepslines
114.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.31, 2, 3, 4, 5, 6, 7, 8, 9, 10

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1watermain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
2soy saucemain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
3Shaoxing winemain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
4packed brown sugarmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
5fresh gingermain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
6toasted sesame oilmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
7vegetable oilmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
8thin asparagusmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
9shiitake mushroomsmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
10scallionsmain14.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.3
Groupsas written
groupstepslines
114.1, 15a.1, 15b.1, 15b.2, 15c.1, 15c.2, 15d.1, 15d.2, 15d.31, 2, 3, 4, 5, 6, 7, 8, 9, 10