15.3.5 Group the lines by part

Thousand Island Dressing · photo-cs05|1-17,19 · 10 drafts · 2 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
6.1main
19b.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_words_flags_addon
183/4 cup mayonnaise3/4cupmayonnaise——mainitem————3/4——
291/3 cup sweet chili sauce1/3cupsweet chili sauce——mainitem————1/3——
3102 tablespoons dill pickles, chopped2tablespoonsdill pickleschopped—mainitem————2——
4112 tablespoons chives, chopped2tablespoonschiveschopped—mainitem————2——
5122 tablespoons pimento, chopped2tablespoonspimentochopped—mainitem————2——
6131 teaspoon capers1teaspooncapers——mainitem————1——
7142-3 dashes of hot sauce3dasheshot sauce——mainitem————3——
8151 hardboiled egg, chopped1—hardboiled eggchopped—mainitem————1——
9161 tablespoon lemon juice, freshly squeezed1tablespoonlemon juicefreshly squeezed—mainitem————1——
10191 teaspoon of smoked paprika1teaspoonsmoked paprika——add_on:p1phrase————1—yes

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1mayonnaisemain6.1
2sweet chili saucemain6.1
3dill picklesmain6.1
4chivesmain6.1
5pimentomain6.1
6capersmain6.1
7hot saucemain6.1
8hardboiled eggmain6.1
9lemon juicemain6.1
10smoked paprikaadd_on:p119b.1
Groupsas written
groupstepslines
16.11, 2, 3, 4, 5, 6, 7, 8, 9
219b.110

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1mayonnaisemain6.1
2sweet chili saucemain6.1
3dill picklesmain6.1
4chivesmain6.1
5pimentomain6.1
6capersmain6.1
7hot saucemain6.1
8hardboiled eggmain6.1
9lemon juicemain6.1
10smoked paprikaadd_on:p119b.1
Groupsas written
groupstepslines
16.11, 2, 3, 4, 5, 6, 7, 8, 9
219b.110