15.3.5 Group the lines by part

pdf-i094|all · pdf-i094|all · 18 drafts · 22 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
29a.1main
29b.1main
29b.2main
29c.1main
29c.2main
29d.1main
29d.2main
29e.1main
29e.2main
29f.1main
30a.1main
30b.1main
30b.2main
30c.1main
30c.2main
31a.1main
31b.1main
31b.2main
31c.1main
31c.2main
31c.3main
31c.4main
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
194 tablespoons unsalted butter4tablespoonsunsalted butter——mainitem————4———
2101 large onion, chopped fine1—large onionchopped fine—mainitem————1———
311Salt and pepper——salt——mainitem————————
411Salt and pepper——pepper——mainitem————————
512¾ teaspoon ground coriander¾teaspoonground coriander——mainitem————3/4———
613½ teaspoon ground cumin½teaspoonground cumin——mainitem————1/2———
714¼ teaspoon ground ginger¼teaspoonground ginger——mainitem————1/4———
815⅛ teaspoon ground cinnamon⅛teaspoonground cinnamon——mainitem————1/8———
916Pinch cayenne1pinchcayenne——mainitem————1———
10171 tablespoon tomato paste1tablespoontomato paste——mainitem————1———
11181 garlic clove, minced1clovegarlicminced—mainitem————1———
12194 cups chicken broth4cupschicken broth——mainitem————4———
13202 cups water2cupswater——mainitem————2———
142110 ½ ounces (1 1/2 cups) red lentils, picked over and rinsed10 ½weight ounces(1 1/2 cups) red lentilspicked over and rinsed—mainitem————21/2——yes
15222 tablespoons lemon juice, plus extra for seasoning2tablespoonslemon juice, plus extra for seasoning——mainitem————2———
16231 ½ teaspoons dried mint, crumbled1 ½teaspoonsdried mintcrumbled—mainitem————3/2———
17241 teaspoon paprika1teaspoonpaprika——mainitem————1———
1825¼ cup chopped fresh cilantro¼cupfresh cilantrochopped—mainitem————1/4———

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1unsalted buttermain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
2large onionmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
3saltmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
4peppermain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
5ground coriandermain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
6ground cuminmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
7ground gingermain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
8ground cinnamonmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
9cayennemain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
10tomato pastemain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
11garlicmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
12chicken brothmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
13watermain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
14(1 1/2 cups) red lentilsmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
15lemon juice, plus extra for seasoningmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
16dried mintmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
17paprikamain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
18fresh cilantromain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
Groupsas written
groupstepslines
129a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.41, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1unsalted buttermain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
2large onionmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
3saltmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
4peppermain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
5ground coriandermain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
6ground cuminmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
7ground gingermain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
8ground cinnamonmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
9cayennemain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
10tomato pastemain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
11garlicmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
12chicken brothmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
13watermain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
14(1 1/2 cups) red lentilsmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
15lemon juice, plus extra for seasoningmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
16dried mintmain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
17paprikamain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
18fresh cilantromain29a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.4
Groupsas written
groupstepslines
129a.1, 29b.1, 29b.2, 29c.1, 29c.2, 29d.1, 29d.2, 29e.1, 29e.2, 29f.1, 30a.1, 30b.1, 30b.2, 30c.1, 30c.2, 31a.1, 31b.1, 31b.2, 31c.1, 31c.2, 31c.3, 31c.41, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18