1. Background
A matcher compares sequences of code points. A reader sees writing. The difference matters when text moves through a word processor, PDF extractor, browser or OCR pipeline.
Take é. One document may store U+00E9, LATIN SMALL LETTER E WITH ACUTE. Another may store U+0065, LATIN SMALL LETTER E, followed by U+0301, COMBINING ACUTE ACCENT. Unicode defines these sequences as canonically equivalent. 1 A byte comparison, or a direct code-point comparison, treats them as different.
That difference can split tokens, lower an n-gram overlap score, or make a quoted fragment appear absent. Unicode normalization converts equivalent sequences to a defined form before comparison. It prevents an incidental encoding choice from deciding the result. 1
Normalization is not a rule that all similar-looking characters should match. The opening curly quote “ is U+201C. The straight quotation mark " is U+0022. They are distinct characters, and neither NFC nor NFKC maps one to the other. A punctuation-insensitive matcher needs a separate policy for that decision.
2. Method
A comparison pipeline should keep more than one representation of submitted writing. It preserves the received string as evidence, then creates a separate string for comparison. Normalize before tokenization, shingling and exact-substring lookup. Apply the same declared processing version to the writer’s draft and to indexed source text.
Unicode specifies four normalization forms. NFD and NFC use canonical decomposition. NFC then composes characters where a composed form exists. NFKD and NFKC also apply compatibility decomposition. 1 That broader mapping can help retrieve text extracted from older typography, but it removes distinctions by design.
For example, the ligature fi, U+FB01, remains fi under NFC and becomes fi under NFKC. This can recover an overlap in prose from a legacy PDF. It is not the same operation as making the two encodings of é agree.
For normalization function and optional product-policy function , an exact normalized match is:
Here, might be NFC. is not Unicode normalization. It might fold several quote characters to one internal token for a punctuation-insensitive search, or it might be the identity function. Keeping and separate makes the reported reason for a match inspectable.
| Visible input or pair | Relevant code points | NFC result | NFKC result | Comparison implication |
|---|---|---|---|---|
e plus combining acute |
U+0065 U+0301 | é |
é |
Matches precomposed é after normalization |
é |
U+00E9 | é |
é |
Canonically equivalent to the row above |
fi |
U+FB01 | fi |
fi |
Compatibility match only under NFKC |
“quoted” |
U+201C … U+201D | unchanged | unchanged | Needs explicit quote folding to match straight quotes |
The mappings in this table follow UAX #15. 1
NFC is a conservative baseline for prose comparison. It resolves canonical differences in accents without declaring typography interchangeable. An NFKC branch can be useful as additional retrieval evidence when OCR or document conversion introduces compatibility characters. It should not silently replace NFC. Compatibility mappings may erase distinctions that matter in a writing system or technical domain. The W3C’s character-model guidance similarly treats normalization as a processing choice tied to the operation being performed. 2
3. Results
For a fixed Unicode version and input, these transformations are deterministic. The table shows three outcomes relevant to a similarity checker.
First, precomposed and decomposed accents converge under NFC. A passage containing café should not miss an otherwise exact candidate merely because one source stored the acute accent as a combining mark. This is a canonical-equivalence match.
Second, ligatures do not necessarily converge under NFC. The character fi remains a single compatibility character under NFC, while NFKC maps it to the two-character sequence fi. If both modes are available, a report can show that an overlap appeared only after compatibility normalization. It should not present that result as an unexplained exact match.
Third, curly and straight quotation marks remain different under NFC and NFKC. Supporting curly quotes is therefore not, by itself, a Unicode-normalization feature. It is a comparison rule. A narrow rule might map U+2018 and U+2019 to apostrophe-like punctuation, and U+201C and U+201D to quotation-mark punctuation, while retaining original snippets in the report.
Unicode also documents visually confusable characters, which can look alike while retaining different code points. 3 A checker should not claim that all visually similar text is identical. It can instead label the transformation used, show the original passage, and leave the meaning of the overlap for a person to assess.
4. Interpretation
Normalization is input hygiene for comparison, not proof of copying. It removes a known representational difference before a similarity algorithm measures overlap. It does not establish authorship, intent, quotation quality or whether a source was cited correctly.
For a writer checking their own draft, the useful result is layered. Use NFC for a baseline result. Use NFKC or a narrowly scoped punctuation policy as a clearly labelled secondary retrieval mode when appropriate. For each candidate, show the mode and the unmodified surrounding context. Similarity remains evidence for human review.
Case handling needs the same separation. Unicode case folding is distinct from NFC and NFKC. A case-insensitive search may suit a search field, but not quoted prose or source code. Locale can also matter. Unicode default casing is designed for general interchange, not as a substitute for language-specific editorial rules. 4
Reproducibility requires a record of the Unicode version, normalization form, policy mappings, tokenizer version and source representation. With that record, a system can reconstruct why passages matched instead of returning only a score.
5. Limitations
NFC does not repair damaged extraction. OCR may substitute a letter, drop a combining mark or merge words. Normalization cannot infer the intended text from those errors.
NFKC can be too aggressive for mathematical notation, units, phonetic material, source code and language-specific orthography. A compatibility-normalized overlap should be additional evidence, not a replacement for review of raw text.
Quote folding has limits too. Apostrophes, primes and quotation marks can have different meanings. Folding them may improve retrieval in ordinary prose while creating false candidate overlaps in scholarly or technical writing. Any policy should be evaluated against known, consented examples before it affects ranking.
Finally, normalization is standardized string processing, while similarity scoring is a separate model choice. A normalized overlap is a lead for a human reader. It is not a verdict about plagiarism or AI use.
References
- 1. The Unicode Consortium. 2025. Unicode Standard Annex #15: Unicode Normalization Forms. Unicode Standard. https://www.unicode.org/reports/tr15/ https://www.unicode.org/reports/tr15/
- 2. World Wide Web Consortium. 2005. Character Model for the World Wide Web 1.0: Normalization. W3C Recommendation. https://www.w3.org/TR/charmod-norm/ https://www.w3.org/TR/charmod-norm/
- 3. The Unicode Consortium. 2025. Unicode Technical Standard #39: Unicode Security Mechanisms. Unicode Standard. https://www.unicode.org/reports/tr39/ https://www.unicode.org/reports/tr39/
- 4. The Unicode Consortium. 2025. The Unicode Standard, Version 17.0, Chapter 3: Conformance. Unicode, Inc. https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-3/ https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-3/



