15.3.5 Group the lines by part

Chermoula · photo-x056|extraction-chermoula · 8 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
g2a.1main
g2b.1main
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_x_copy
115¾ cup fresh cilantro leaves¾cupfresh cilantro leaves——mainitemCHERMOULA———3/4——yes
216¼ cup extra-virgin olive oil¼cupextra-virgin olive oil——mainitemCHERMOULA———1/4——yes
3172 tablespoons lemon juice2tablespoonslemon juice——mainitemCHERMOULA———2——yes
4184 garlic cloves, minced4clovesgarlicminced—mainitemCHERMOULA———4——yes
519½ teaspoon ground cumin½teaspoonground cumin——mainitemCHERMOULA———1/2——yes
620½ teaspoon paprika½teaspoonpaprika——mainitemCHERMOULA———1/2——yes
721¼ teaspoon salt¼teaspoonsalt——mainitemCHERMOULA———1/4——yes
822⅛ teaspoon cayenne pepper⅛teaspooncayenne pepper——mainitemCHERMOULA———1/8——yes

Script result

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1fresh cilantro leavesmaing2a.1, g2b.1
2extra-virgin olive oilmaing2a.1, g2b.1
3lemon juicemaing2a.1, g2b.1
4garlicmaing2a.1, g2b.1
5ground cuminmaing2a.1, g2b.1
6paprikamaing2a.1, g2b.1
7saltmaing2a.1, g2b.1
8cayenne peppermaing2a.1, g2b.1
Groupsas written
groupstepslines
1g2a.1, g2b.11, 2, 3, 4, 5, 6, 7, 8

Answer key

Each line's stepsthe steps of the group each line is in
#ingredientpartits group's steps
1fresh cilantro leavesmaing2a.1, g2b.1
2extra-virgin olive oilmaing2a.1, g2b.1
3lemon juicemaing2a.1, g2b.1
4garlicmaing2a.1, g2b.1
5ground cuminmaing2a.1, g2b.1
6paprikamaing2a.1, g2b.1
7saltmaing2a.1, g2b.1
8cayenne peppermaing2a.1, g2b.1
Groupsas written
groupstepslines
1g2a.1, g2b.11, 2, 3, 4, 5, 6, 7, 8