15.3.5 Group the lines by part

Shrimp Cocktail with Bloody Mary Sorbet · url-l115|all · 15 drafts · 15 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
17.1main
17.2main
18a.1main
18b.1main
18b.2main
18b.3main
g1.1main
g1.2main
g1.3main
g1.4main
19a.1main
19b.1main
19b.2main
19c.1main
19c.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
143 tablespoons sugar3tablespoonssugar——mainitem————3——
254 ripe plum tomatoes—peeled, seeded and coarsely chopped4—ripe plum tomatoespeeled, seeded and coarsely chopped—mainitem————4——
361/2 cup tomato juice1/2cuptomato juice——mainitem————1/2——
471 1/2 tablespoons tomato paste1 1/2tablespoonstomato paste——mainitem————3/2——
581 tablespoon fresh lemon juice1tablespoonfresh lemon juice——mainitem————1——
69Salt and ground white pepper——salt——mainitem———————
79Salt and ground white pepper——ground white pepper——mainitem———————
810Tabasco sauce——Tabasco sauce——mainitem———————
9112 tablespoons minced fresh chives2tablespoonsfresh chivesminced—mainitem————2——
101218 medium shrimp—shelled and deveined with the tails left on18—medium shrimpshelled and deveined with the tails left on—mainitem————18——
11131/4 cup plus 2 tablespoons savory greens juice3/8cupsavory greens juice——mainitem————2——
12142 tablespoons dry vermouth2tablespoonsdry vermouth——mainitem————2——
13152 tablespoons sour cream2tablespoonssour cream——mainitem————2——
14166 cilantro sprigs and 6 celery ribs with leafy tops, for garnish6—cilantro sprigs, for garnish——mainitem————6——
15166 cilantro sprigs and 6 celery ribs with leafy tops, for garnish6—celery ribs with leafy tops, for garnish——mainitem————6——

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1sugarmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
2ripe plum tomatoesmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
3tomato juicemain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
4tomato pastemain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
5fresh lemon juicemain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
6saltmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
7ground white peppermain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
8Tabasco saucemain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
9fresh chivesmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
10medium shrimpmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
11savory greens juicemain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
12dry vermouthmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
13sour creammain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
14cilantro sprigs, for garnishmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
15celery ribs with leafy tops, for garnishmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
Groupsas written
groupstepslines
117.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.21, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1sugarmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
2ripe plum tomatoesmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
3tomato juicemain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
4tomato pastemain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
5fresh lemon juicemain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
6saltmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
7ground white peppermain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
8Tabasco saucemain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
9fresh chivesmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
10medium shrimpmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
11savory greens juicemain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
12dry vermouthmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
13sour creammain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
14cilantro sprigs, for garnishmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
15celery ribs with leafy tops, for garnishmain17.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.2
Groupsas written
groupstepslines
117.1, 17.2, 18a.1, 18b.1, 18b.2, 18b.3, g1.1, g1.2, g1.3, g1.4, 19a.1, 19b.1, 19b.2, 19c.1, 19c.21, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15