15.3.5 Group the lines by part

Nigel Slater's gazpacho · url-l018|all · 9 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
15.1main
16.1main
16.2main
17.1main
17.2main
17.3main
18a.1main
18b.1main
18b.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_ounce
16½ cucumber, peeled, roughly chopped½—cucumberpeeled, roughly chopped—mainitem————1/2———
271 large yellow pepper, de-seeded, roughly chopped1—large yellow pepperde-seeded, roughly chopped—mainitem————1———
381 large red pepper, de-seeded, roughly chopped1—large red pepperde-seeded, roughly chopped—mainitem————1———
496 ripe tomatoes, roughly chopped6—ripe tomatoesroughly chopped—mainitem————6———
5102 banana shallots, roughly chopped2—banana shallotsroughly chopped—mainitem————2———
6113 garlic cloves, roughly chopped3clovesgarlicroughly chopped—mainitem————3———
712100g/3½oz stale white bread, soaked in a little cold water3½weight ouncesstale white breadsoaked in a little cold water—mainitem—[[100.0, "g"]]——7/2——yes
8133 tbsp olive oil3tbspolive oil——mainitem————3———
9142 tbsp sherry vinegar2tbspsherry vinegar——mainitem————2———

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1cucumbermain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
2large yellow peppermain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
3large red peppermain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
4ripe tomatoesmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
5banana shallotsmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
6garlicmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
7stale white breadmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
8olive oilmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
9sherry vinegarmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
Groupsas written
groupstepslines
115.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.21, 2, 3, 4, 5, 6, 7, 8, 9

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1cucumbermain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
2large yellow peppermain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
3large red peppermain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
4ripe tomatoesmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
5banana shallotsmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
6garlicmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
7stale white breadmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
8olive oilmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
9sherry vinegarmain15.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.2
Groupsas written
groupstepslines
115.1, 16.1, 16.2, 17.1, 17.2, 17.3, 18a.1, 18b.1, 18b.21, 2, 3, 4, 5, 6, 7, 8, 9