Yes. Two words can look identical on a screen while containing different character sequences, and two identical strings can still refer to different things. Unicode normalisation can reconcile specified differences between Unicode character sequences, but it cannot decide whether two people, accounts, scientific concepts or promises are the same. Vocabulary coding therefore needs several separate checks: what was received, how it is represented, how it is displayed, which comparison rule applies, and what the text means in its context.
The practical approach is to preserve the original, apply a documented comparison policy, inspect collisions and link meaning through explicit records. This article explains Unicode, normalisation, grapheme clusters, visual confusables and bidirectional text through fictional examples. It then proposes a usable design for search, AI handoffs, multilingual names and shared vocabulary registries. The goal is reliable comparison with enough evidence to explain every transformation, while allowing people to write accurately in their own languages.
- Encoding: Bytes store text; their interpretation depends on the encoding.
- Characters: A visible character may contain multiple code points.
- Normalisation: NFC and NFKC apply different equivalence rules.
- Appearance: Similar glyphs do not establish textual or conceptual identity.
- Names: Preserve authentic spelling; search convenience needs a separate policy.
- Direction: Handle right-to-left text deliberately and in context.
- Meaning: Keep comparison keys separate from concept and entity identifiers.
- Verification: Test intended matches, forbidden merges and readable output.
Choose your reading route
Start with the question closest to your task, or follow the chapters in order.
Chapters 1–3. Separate characters, representations and normalisation.
2. Recognise hidden differences
Chapters 4–6. Inspect boundaries, lookalikes and personal names.
Chapters 7–9. Preserve direction, source text and AI handoffs.
Chapters 10–12. Audit matching rules and later policy changes.
Full contents · Start the full article · Frequently asked questions
Full contents
Chapters 1–3: Understand text identity
Chapters 4–6: Recognise hidden differences
Chapters 7–9: Design faithful handling
Chapters 10–12: Test and maintain
FAQ · Related articles · Primary sources and editorial scope
CHAPTER 1 OF 12 · Understand text identity
1. Five different meanings of “the same word”
Imagine a catalogue with two entries that both display “Café”. One was typed directly; another arrived from an imported spreadsheet. An editor sees an apparent duplicate. The database may see different strings. A later search system may deliberately treat both as matches. None of those observations establishes whether the entries describe one business or two separate businesses with similar names.
| Question | What is compared | What a match does not prove |
|---|---|---|
| Same bytes? | The stored byte sequence | That both systems decode it correctly |
| Same code points? | The decoded Unicode sequence | That the text has one interpretation |
| Same normalised text? | Results under a specified normalisation form | That every original distinction is recoverable |
| Same appearance? | Rendered shapes in a particular environment | That the underlying strings match |
| Same referent or concept? | Evidence, scope and identity rules | That every label will have the same spelling |
The error is often a silent jump between rows. A search match becomes an identity merge. A visual resemblance becomes an authorisation decision. A shared spelling becomes a claim that two communities use one definition. A careful system names the relation it has actually established and leaves the stronger questions open until there is evidence.
At the human level, this is the difference between saying “these labels look alike” and “these records belong together”. At the software level, it is the difference between a comparison result and a decision rule.
CHAPTER 2 OF 12 · Understand text identity
2. A worked example: two Unicode representations of Café
RFC 3629 specifies UTF-8, where a Unicode scalar value is represented using one to four bytes. Consequently, byte length and code-point count are different measurements. Neither is automatically the length a reader perceives.
Consider two exact strings. The first ends in U+00E9, LATIN SMALL LETTER E WITH ACUTE. The second ends in U+0065 followed by U+0301, COMBINING ACUTE ACCENT. The rest of each string is the ordinary Latin sequence C, a, f. These are not two different French words; they are two representations of the same accented spelling.
| Representation | Code-point count | UTF-8 byte count | Result after NFC |
|---|---|---|---|
| Caf + U+00E9 | 4 | 5 | Café |
| Cafe + U+0301 | 5 | 6 | Café |
Unicode Standard Annex #15 defines canonical equivalence and normalisation forms. NFC reconciles this particular difference. Before that step, an exact sequence comparison can report inequality; afterwards, the resulting strings match.
In a fictional catalogue, retain the received strings in an import record, derive the agreed comparison key and flag duplicate candidates. Then ask whether the records describe the same object. If one is a café in a town centre and another is a book title, normalisation should improve retrieval without merging their identities.
CHAPTER 3 OF 12 · Understand text identity
3. Choose normalisation for the field and purpose
NFC uses canonical decomposition followed by canonical composition. NFKC uses compatibility decomposition followed by canonical composition, so it can remove distinctions carried by superscript characters and circled forms. Unicode explicitly cautions that compatibility distinctions may matter in some contexts. The normalisation specification therefore provides tools whose suitability depends on the application.
For the exact sample “m²”, NFC preserves the superscript; NFKC yields “m2”. For “①”, NFKC yields “1”. Suppose an archive stores a diagram label or a mathematical expression. A transformed key may help someone find the document, yet replacing the only stored copy would erase evidence about its notation.
This is a design choice about what differences may be ignored for a particular operation. It should be written as a field contract: which form is used, at which boundary, for which comparisons, and what happens when distinct inputs produce the same key. “Clean the text” is too vague to serve as that contract.
A proposed catalogue policy could preserve original labels, maintain NFC comparison keys and offer additional search aliases where justified. A separate programming-language identifier field may require a different policy. Do not copy a convenient rule from one field into every field merely because both contain strings.
If a compatibility transform is permitted, record its purpose beside the result. Later maintainers should be able to distinguish an intentional search convenience from an accidental rewriting of the source.
CHAPTER 4 OF 12 · Recognise hidden differences
4. Count and cut text at appropriate boundaries
Unicode Standard Annex #29 defines default segmentation rules for grapheme clusters, words and sentences. Grapheme clusters help applications work with units closer to user-perceived characters. These defaults are useful, but the annex also recognises that boundaries depend on language conventions and sometimes need tailoring.
Consider a fictional label field limited to twenty characters. The requirement is incomplete. Does it mean twenty bytes for a transmission packet, twenty code points for an internal limit, or twenty displayed character units for a reader? Different answers create different acceptance and truncation behaviour.
A good requirement distinguishes storage limits from presentation limits. Storage validation should explain why an input is rejected. A display preview can shorten a long label without destroying the stored value. The user should still have a way to inspect or copy the complete name.
In testing, place a combining sequence near a cutoff and inspect what appears. Also test a long multilingual name, a short label with punctuation and a sequence the target environment renders as one visible unit. Record the boundary policy and the segmentation library used, rather than assuming every language measures length the way an English keyboard suggests.
The semantic question is practical: has the interface preserved the part of the label that distinguishes one item from another? An attractive shortened caption is inadequate if several unrelated records become indistinguishable on the decision screen.
CHAPTER 5 OF 12 · Recognise hidden differences
5. Treat lookalikes as a review signal
Latin capital A, U+0041, and Cyrillic capital A, U+0410, are distinct code points whose rendered shapes can look alike. In a fictional inventory, “Lot A” and a label ending with the Cyrillic character should not be silently assumed to be the same identifier merely because a reviewer sees a familiar shape.
Unicode Technical Standard #39 provides mechanisms for analysing potentially confusable identifiers. Its skeleton representations support internal comparison; they are not suitable as replacement display strings or as a general normalisation of identifiers. The mechanisms can help identify cases needing attention, but visual resemblance does not establish the author’s intention.
An operational policy should make the next action explicit. For a public display name, allow the name while showing additional identity information when confusion matters. For a narrowly defined machine identifier, apply the documented identifier profile. For a collision with an existing protected identifier, route the case through the service’s established review process.
Avoid turning a technical signal into a judgement about a language or a person. A mixed-script label can have an ordinary explanation. The important questions are whether the field permits it, whether users can distinguish records, and whether the system has independent evidence of identity.
Review screens should show both the readable label and an inspectable representation. A tiny change marker that appears only on hover is weak evidence for a consequential decision.
CHAPTER 6 OF 12 · Recognise hidden differences
6. Make names searchable without rewriting people
The W3C article Personal names around the world describes why forms and databases should avoid assuming one naming pattern fits everyone. For a vocabulary system, the corresponding design lesson is to treat a person’s submitted spelling as meaningful information, not as a formatting inconvenience.
Suppose a fictional archive receives a name containing an accent. An accent-insensitive search may help readers using a limited keyboard discover the record. That convenience does not justify replacing the recorded name with an unaccented spelling. Nor should it automatically merge two people whose simplified search aliases happen to coincide.
Keep a clear distinction between the name displayed to people, an optional transliteration, a search alias and a stable internal record identifier. Each can serve a legitimate purpose. Their relationship should be recorded rather than inferred repeatedly from appearance.
Ask what a transformation would remove. Blanket deletion of combining marks or all non-Latin characters can erase distinctions that the writer intended. A policy that works for one restricted product-code field is not an appropriate default for a worldwide name field.
In the proposed archive workflow, users can correct their display name, see how it will appear and understand which supporting details distinguish their record. Search results show enough context to support selection. When two records remain ambiguous, the system asks for additional evidence instead of inventing a spelling-based certainty.
CHAPTER 7 OF 12 · Design faithful handling
7. Handle text direction as part of the record
Right-to-left and left-to-right text can coexist in one line. The W3C guidance on Unicode controls for bidirectional text explains how directional isolation helps prevent a phrase from interfering with surrounding text. It also distinguishes situations where markup is available from plain-text environments that need character-level controls.
Imagine a catalogue entry containing a right-to-left title, an English product code and a number. The underlying sequence and its displayed arrangement are related but not identical concepts. A reviewer needs to see the title naturally while remaining able to verify the actual product code and its position in the record.
A proposed handling policy should specify direction metadata, rendering behaviour and inspection tools. It should not simply delete every invisible character in every context. Some controls have a legitimate presentation purpose; a restricted identifier field may impose tighter conditions than a document title.
Test complete interface components, including brackets, punctuation and neighbouring numbers. Copy the value into the places where users actually use it: a message, an export or a search field. A value that looks correct only in one isolated preview has not passed the complete workflow.
For diagnostic displays, show escaped character names or code points alongside the rendered text. Keep that technical view available to reviewers without forcing ordinary readers to interpret character codes just to read a title.
CHAPTER 8 OF 12 · Design faithful handling
8. A proposed record contract for faithful text
A language registry can avoid many accidental equivalences by storing a small set of separately named fields. The following is a proposed application design, not a Unicode standard. The exact schema should reflect the system’s purpose and retention requirements.
| Field | Purpose | Control |
|---|---|---|
| Original value | Preserve what the source supplied | Retain source and acquisition context |
| Display label | Present an approved readable form | Track editorial changes |
| Comparison key | Apply one declared matching policy | Record policy and implementation version |
| Search aliases | Support discovery across permitted variants | Keep aliases distinct from identity |
| Entity or concept ID | Refer to a scoped record | Resolve using evidence and governance |
| Review state | Explain collisions or uncertainty | Identify the decision and its basis |
The source record may need the original bytes as well as decoded text when exact byte preservation matters. Merely calling a rewritten string “original” does not restore lost information. Decide what evidence the application needs before transformation, and avoid collecting more personal information than the workflow requires.
Derived fields should be reproducible from their declared inputs. If a new comparison policy changes a key, retain enough information to explain why yesterday’s match differs from today’s. The explanation should connect the transformation to its purpose instead of presenting the result as a mysterious correction.
CHAPTER 9 OF 12 · Design faithful handling
9. Carry text identity through AI and system handoffs
Consider a hypothetical sequence: an import service receives a label, an AI assistant summarises a record, a search service retrieves candidates, and a second system selects an item. Every stage may have a different reason to transform text. A fluent final sentence can conceal which stages changed the label or collapsed a distinction.
A proposed handoff should carry the stable record identifier alongside the display label and relevant source reference. If an assistant proposes a new spelling or translation, record it as a proposal or derivative rather than overwriting the source identity. The receiving system can then distinguish an exact record reference from a free-text guess.
Ask the model to explain uncertain matches, but do not make its explanation the sole matching rule. Deterministic text checks, field policies and record evidence can establish different parts of the decision. When the evidence supports only a candidate list, the interface should present candidates.
For a worked review, send two fictional records with similar labels but different identifiers through the complete pipeline. Ask for a summary, translation and retrieval. Inspect whether the identifiers stay attached to the correct objects. Then repeat with canonically equivalent spellings of one label. These cases test two opposite requirements: preserve real distinctions and reconcile authorised representation differences.
A useful failure report identifies the stage, input, derived value and decision affected. “The AI changed something” is less actionable than a trace showing that a search alias was mistakenly promoted into an entity identifier.
CHAPTER 10 OF 12 · Test and maintain
10. A twelve-step audit for a text-handling workflow
Use this proposed audit on one bounded workflow before applying it across a large registry. Select an input field, its consumers and one decision that depends on the text. Include people who understand the relevant languages and the application’s actual users.
- Name the task. Decide whether the operation is display, search, equality checking or identity resolution.
- Define the field. Distinguish a person’s name, a document title, a machine identifier and unrestricted prose.
- Preserve evidence. Capture the authorised source representation before applying destructive transformations.
- Declare decoding. Specify the accepted encoding and how invalid input is reported.
- State normalisation. Choose the required form, or document why a field preserves its received representation.
- Separate aliases. Keep search conveniences outside the authoritative identity field.
- Inspect collisions. Identify distinct inputs that produce one comparison key and define the response.
- Check boundaries. Review length limits, truncation, copying and export behaviour.
- Check direction. Exercise mixed-direction labels in the complete interface.
- Test handoffs. Verify that downstream services use compatible field contracts.
- Record decisions. Capture review outcomes, exceptions and the versions needed to reproduce comparisons.
- Rehearse change. Test policy upgrades and recovery before replacing production keys.
The deliverable is a small evidence pack: the field contract, representative examples, expected outcomes and unresolved cases. A pass means the chosen workflow meets those stated expectations. It does not certify every language, font, future Unicode version or downstream application.
CHAPTER 11 OF 12 · Test and maintain
11. Test matches, separations and policy migrations
A useful test collection includes both positive and negative expectations. Positive examples should match under the declared policy. Negative examples must remain distinguishable even when they look alike or share a search alias. Add a third class for cases that should require review rather than automatic acceptance or rejection.
For the fictional catalogue, the Café pair can be an expected canonical match. Separate businesses with identical display names must remain separate records. A superscript-bearing technical label should preserve its authoritative source even when an additional search key is simplified. Each expectation belongs to a particular field and operation.
Before changing a comparison policy, compute new keys alongside existing keys in a test environment. Count and inspect newly introduced collisions, missed matches and changed review cases. The important result is the meaning of each changed outcome, not merely whether processing finishes without an error.
Retain a recovery route appropriate to the application. If a migration merges records, restoring a previous matching policy will not necessarily reconstruct everything the merge removed. Preserve the information required to reverse or review those decisions before running the migration.
Unicode identifier guidance in UAX #31 provides recommended identifier specifications and normalisation guidance. An implementation should identify the profile it follows rather than claiming that accepting arbitrary Unicode text automatically satisfies a particular identifier contract.
CHAPTER 12 OF 12 · Test and maintain
12. What Unicode can preserve, and what meaning still needs
At the smallest scale, careful text handling preserves the distinction between received characters and a chosen representation. At the interface scale, it helps readers find and distinguish labels. At the organisational scale, documented contracts make exchanges more predictable. At the archival scale, retaining source evidence helps future readers understand how a label was transformed.
These gains have a boundary. A correctly encoded word can be ambiguous. A perfectly normalised definition can be outdated. Two records with different labels can describe the same concept, while two identical labels can describe incompatible concepts. These are semantic questions that require context, evidence and decisions about scope.
A shared meaning layer therefore needs both text discipline and conceptual discipline. Unicode supports the reliable representation and processing of writing. A vocabulary registry must additionally explain what each entry refers to, who maintains it, which version applies and what evidence connects it to another entry.
The useful next move is concrete: choose one field whose text affects a real decision and write its comparison contract. Keep the original available, label every derived representation and examine the first collision carefully. That small exercise reveals whether the system has been comparing bytes, spellings, appearances or meanings—and whether its decision requires more than the comparison can establish.
Frequently asked questions
Does Unicode normalisation translate a word?
No. Normalisation applies defined character-sequence transformations. Translation interprets meaning and expresses it in another language. A workflow may need both, but it should record them as different operations with different evidence and review requirements.
Is NFC always the right choice?
The appropriate choice depends on the field and its governing specification. Define what comparisons are needed and what must be preserved. Do not change an established identifier protocol simply because another application uses NFC successfully.
Why preserve original text if a comparison key works?
The original supports review, correction and reconstruction of transformations. A derived key answers one matching question. It may omit distinctions needed for a different task, so it should not become the only surviving evidence by accident.
Should all accents be removed to improve search?
Only consider such a transformation as an explicitly scoped search feature, with relevant language testing. Keep the authoritative spelling intact and examine collisions. A broader search result is a candidate for inspection, not proof that two names are interchangeable.
Can a confusable detector prove impersonation?
No. A visual-confusability signal identifies a relationship between strings under a mechanism. Intention and identity need other evidence. Route the result through the application’s review policy and provide enough context for a defensible decision.
Are invisible characters always errors?
No. Some support legitimate writing or display behaviour. Apply the policy of the specific field and inspect suspicious cases. General document text, a personal name and a restricted system identifier can require different treatment.
Why can one visible letter count as several units?
A displayed unit may involve more than one code point, and its encoding may occupy several bytes. A requirement should name the unit being counted. Reader-facing length rules and transport-size limits serve different purposes.
Can matching text establish matching concepts?
No. Matching text is evidence about the representation under the chosen comparison. A concept match additionally requires compatible definitions, scope and identity rules. Conversely, different labels can refer to one concept when the relationship is explicitly established.
Should an AI assistant repair unusual spelling automatically?
For authoritative names or identifiers, make a suggested correction explicit and retain the source. Automatic rewriting can attach information to the wrong record. A system should distinguish a proposed alias from an accepted identity change.
What should happen when two inputs produce one key?
Follow the documented collision policy. Depending on the field, the right response may be to preserve separate records, reject a duplicate identifier, request clarification or queue review. Silent merging should never be an accidental consequence of indexing.
Do the examples guarantee identical appearance everywhere?
No. Appearance depends on the rendering environment. The examples establish particular character sequences and transformations; important interfaces still need visual checks with their actual fonts, controls and surrounding text.
What is the first practical improvement to make?
Write down what “equal” means for one important field. Identify the original value, comparison key, identity record and collision response. Then test one pair that should match and one pair that must remain separate.
Continue reading the series
Primary sources and further reading
- Unicode Standard Annex #15: Unicode Normalization Forms — Canonical and compatibility equivalence; definitions and cautions for NFC and NFKC.
- Unicode Standard Annex #29: Unicode Text Segmentation — Default grapheme, word and sentence boundaries, and tailoring.
- Unicode Technical Standard #39: Unicode Security Mechanisms — Confusable identifier analysis; skeletons are internal representations, not replacement text.
- Unicode Standard Annex #31: Unicode Identifiers and Syntax — Recommended identifier specifications and normalisation guidance.
- W3C: How to use Unicode controls for bidi text — Direction controls, isolation and the distinction between markup and plain-text contexts.
- W3C: Personal names around the world — Naming diversity and implications for forms and databases.
- RFC 3629: UTF-8, a transformation format of ISO 10646 — UTF-8 encoding and byte representation.
The Unicode specifications and W3C guidance cited here are established sources. The record contract, audit and catalogue workflows are proposed applications for vocabulary engineering, not official Unicode requirements. All catalogue, name and AI-handoff scenarios are hypothetical. Example counts refer to the exact strings shown; successful normalisation or a text match does not establish conceptual identity or truth.