Skip to content

YAGIRO practice

Compare two spellings of an accented dye label

A dye book has four swatches and three distinct recipe labels. Apply NFC to see which spellings come together, then use the slip to decide what a shared recipe tells you.

Read the four swatch entries

Open source-note.txt for slip D7. Rows 1 through 4 refer to swatches B41 through B44. The number identifies the swatch. The string in keys.json is the recipe label transcribed for it.

Paste keys.json in the key preview. With none, rows 1 and 3 repeat exactly. Row 2 stores e followed by U+0301 in the accented position. Row 4 has a plain e there.

Apply NFC

Choose NFC and run the same input. Rows 1 and 3 already use U+00E9. NFC composes the e and combining accent in row 2 to that same code point.

The list still has four rows. Exactly one row changed. The count of distinct labels falls from three to two, with rows 1, 2 and 3 in one output group.

Account for the unchanged fourth row

Read the two spellings in row 4 of the report. There is no accent to compose. NFC leaves Cafe-7 as it is, separate from the three accented labels.

Compare your download with expected.json. The original repeat at rows 1 and 3 and the new collision at rows 1, 2 and 3 overlap. They answer different questions about the same records.

Return to the slip

The recipe field may be useful for browsing by label. Each of the first three entries still points to a different swatch number, even when recipe labels compare equal.

Keep B44 and the envelope reference in the review. The missing dated cross-reference leaves open which recipe the envelope belonged to. NFC supplies no evidence to fill that gap.

Files for this exercise

Fictional text and JSON string arrays. Follow the guide to choose an input and operation. Keep the original and compare the expected report with your result.

Reference sources

Continue with a check