Imagine a captioning tool spells the song title “Não me trates mal” exactly as it appears in the catalogue, yet the evaluator marks it wrong. Unicode normalization can resolve one surprising reason for that result. In a comparison using the Fradiqueland title, three edited copies all failed a raw equality check. After applying NFC, exactly one matched. To a reader, that copy already looked correct.

In this article
What changed in the word “Não”?
The catalogue spelling uses the single character ã in the first word. Text can also express that same letter as an ordinary a followed by a combining tilde. In a font that supports both forms, the two sequences can look identical. Their underlying numbers differ. A raw string comparison sees those numbers, even when a proofreader sees the same lettering.
We took the title from the artist’s published page for Não me trates mal and kept the capital letter, spaces and word order. The reference had 17 Unicode code points. Decomposing its accented letter produced 18. Those counts describe the encoded text. They say nothing about the number of sounds in the recording.
Unicode normalization in three exact-match checks
We made three controlled variants and compared each with the published title in JavaScript. First we tested equality directly. Then we applied normalize('NFC') to both strings and repeated the comparison. These were deliberately constructed text inputs. The exercise tests the scoring procedure and makes no claim about the performance of a particular transcription model.
| Change to the candidate | Raw match | Match after NFC |
|---|---|---|
| Write ã as a plus a combining tilde | No | Yes |
| Remove the tilde to leave “Nao” | No | No |
| Add an exclamation mark after “mal” | No | No |
The middle row is the useful control. Removing the mark changes the spelling. A comparison that strips all accents would accept that candidate too. For someone preparing Portuguese release notes, that would hide precisely the fault the check was supposed to catch. The final row tests a separate editorial choice about punctuation.
How to score a catalogue title fairly
Keep the original caption alongside the reference so an editor can inspect both. Make separate copies for comparison and apply the same normalization form to each. Record an encoding-only difference separately from a changed word, missing accent or added mark. When an artist intentionally includes punctuation in a title, use the credited spelling as the reference.
The Unicode Consortium defines NFC and illustrates canonical equivalence in Unicode Standard Annex #15. NFC preserves a meaningful accent in this example. It cannot infer an accent that a caption omitted or identify a recording from a misspelled title.
For a caption benchmark, publish the comparison rule with the score. A reader can then tell whether a failed title needs a spelling correction or a change to the evaluator. If the words themselves differ, try the worked example of word error rate on a song title before interpreting a single number as a verdict on the transcript.
Repeat the Unicode normalization test with your own title
Enter the artist’s spelling in a JavaScript console as const title = 'Não me trates mal'. Create the decomposed candidate with const candidate = title.normalize('NFD'). Run candidate === title, then candidate.normalize('NFC') === title.normalize('NFC'). For the catalogue spelling these return false and true respectively.
Try the same steps with “Abandonado”, another Fradiqueland title. All its letters belong to the ASCII range. Decomposing that spelling makes no change, so both checks return true. This control isolates the effect of the combining tilde. If the raw comparison still fails for “Abandonado”, look for a trailing space or a change of case in the text you copied.