15.3.5 Group the lines by part

Sweet Potato Noodles with Shiitakes and Spinach · photo-cm04|1-19,21-22 · 14 drafts · 37 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
16a.1main
16b.1main
16b.2main
16b.3main
16c.1main
16c.2main
16d.1main
16d.2main
16d.3main
17a.1main
17a.2main
17b.1main
17b.2main
18a.1main
18b.1main
18b.2main
18c.1main
18c.2main
19a.1main
19b.1main
19b.2main
19c.1main
19d.1main
19d.2main
19e.1main
22a.1add_on:p1
22b.1add_on:p1
22c.1add_on:p1
22d.1add_on:p1
22d.2add_on:p1
22e.1add_on:p1
22e.2add_on:p1
22f.1add_on:p1
22f.2add_on:p1
22g.1add_on:p1
22h.1add_on:p1
22i.1add_on:p1
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
148 ounces (⅛-inch-wide) dried sweet potato noodles, broken into 12-inch lengths8weight ounces(⅛-inch-wide) dried sweet potato noodlesbroken into 12-inch lengths—mainitem————8yes——
252 tablespoons plus 2 teaspoons toasted sesame oil, divided2 2/3tablespoonstoasted sesame oil, divided——mainitem————2———
363 garlic cloves, minced3clovesgarlicminced—mainitem————3———
471 tablespoon plus 2 teaspoons vegetable oil, divided1 2/3tablespoonsvegetable oil, divided——mainitem————2———
58¼ cup soy sauce¼cupsoy sauce——mainitem————1/4———
693 tablespoons sugar3tablespoonssugar——mainitem————3———
7101 tablespoon sesame seeds, toasted1tablespoonsesame seedstoasted—mainitem————1———
8118 ounces shiitake mushrooms, stemmed and sliced thin8weight ouncesshiitake mushroomsstemmed and sliced thin—mainitem————8yes——
9122 carrots, peeled and cut into 2-inch-long matchsticks2—carrotspeeled and cut into 2-inch-long matchsticks—mainitem————2———
10131 small onion, halved and sliced ½ inch thick1—small onionhalved and sliced ½ inch thick—mainitem————1———
11142 scallions, sliced thin2—scallionssliced thin—mainitem————2———
12158 ounces (8 cups) baby spinach8weight ounces(8 cups) baby spinach——mainitem————8yes——
13222 large eggs2—large eggs——add_on:p1phrase————2——yes
14221 teaspoon vegetable oil1teaspoonvegetable oil——add_on:p1phrase————1——yes

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1(⅛-inch-wide) dried sweet potato noodlesmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
2toasted sesame oil, dividedmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
3garlicmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
4vegetable oil, dividedmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
5soy saucemain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
6sugarmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
7sesame seedsmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
8shiitake mushroomsmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
9carrotsmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
10small onionmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
11scallionsmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
12(8 cups) baby spinachmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
13large eggsadd_on:p122a.1, 22b.1, 22c.1, 22d.1, 22d.2, 22e.1, 22e.2, 22f.1, 22f.2, 22g.1, 22h.1, 22i.1
14vegetable oiladd_on:p122a.1, 22b.1, 22c.1, 22d.1, 22d.2, 22e.1, 22e.2, 22f.1, 22f.2, 22g.1, 22h.1, 22i.1
Groupsas written
groupstepslines
116a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
222a.1, 22b.1, 22c.1, 22d.1, 22d.2, 22e.1, 22e.2, 22f.1, 22f.2, 22g.1, 22h.1, 22i.113, 14

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1(⅛-inch-wide) dried sweet potato noodlesmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
2toasted sesame oil, dividedmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
3garlicmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
4vegetable oil, dividedmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
5soy saucemain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
6sugarmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
7sesame seedsmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
8shiitake mushroomsmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
9carrotsmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
10small onionmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
11scallionsmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
12(8 cups) baby spinachmain16a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.1
13large eggsadd_on:p122a.1, 22b.1, 22c.1, 22d.1, 22d.2, 22e.1, 22e.2, 22f.1, 22f.2, 22g.1, 22h.1, 22i.1
14vegetable oiladd_on:p122a.1, 22b.1, 22c.1, 22d.1, 22d.2, 22e.1, 22e.2, 22f.1, 22f.2, 22g.1, 22h.1, 22i.1
Groupsas written
groupstepslines
116a.1, 16b.1, 16b.2, 16b.3, 16c.1, 16c.2, 16d.1, 16d.2, 16d.3, 17a.1, 17a.2, 17b.1, 17b.2, 18a.1, 18b.1, 18b.2, 18c.1, 18c.2, 19a.1, 19b.1, 19b.2, 19c.1, 19d.1, 19d.2, 19e.11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
222a.1, 22b.1, 22c.1, 22d.1, 22d.2, 22e.1, 22e.2, 22f.1, 22f.2, 22g.1, 22h.1, 22i.113, 14