Two pieces of text can look identical while containing different character sequences. A reader may see the same accented word, while software receives different codes. Conversely, two different letters can look similar in a particular font without representing the same character. For AI systems, visual appearance, stored text, token sequences and meaning are separate questions.
The practical response is to identify the layer where a mismatch occurs before trying to repair it. Check what was entered, how the text was converted, how it was compared and which model processed it. In Vocabulary Coding and Engineering, this is the boundary between the language a person intends and the representation a system actually receives. A sound repair preserves meaningful distinctions while removing only the differences the task has agreed to ignore.
- A visible character, a Unicode code point, a byte and an AI token are different units.
- Canonically equivalent text can have different stored sequences before normalisation.
- Lookalike letters are not automatically the same character or the same identifier.
- A tokenizer's vocabulary is not a dictionary of human meanings.
- Preserve original text, document comparison rules and test real examples from the languages your system serves.
Choose your reading route
Understand the problem · Follow the effects across society · Practise and check
Full article contents
- Begin with the meaning of “same”
- Zoom 1: What a person sees and types
- Zoom 2: How AI systems receive text
- Normalisation is a choice about which differences to ignore
- Zoom 3: Institutional records and meaningful differences
- Zoom 4: Writing systems, access and public trust
- A practical text-integrity check
- A four-week practice plan
- Questions readers often ask
- Continue reading
Begin with the meaning of “same”
Imagine a person copying a café name from one document into another. The accented “é” can be represented by a single code point, U+00E9, or by “e” followed by a combining acute accent, U+0065 U+0301. These are canonically equivalent representations, although the original code-point sequences differ. Unicode’s normalisation specification defines forms that give equivalent sequences a consistent representation.
That is one kind of sameness. It does not establish that two businesses with that spelling are the same business. It does not prove that a quotation is authentic. It does not tell us what the word means in a sentence.
The distinction matters because “make the text the same” is an incomplete engineering instruction. Same appearance? Same code points? Same result under a chosen comparison rule? Same referent? Same meaning in this context? A repair that succeeds at one level may be irrelevant or damaging at another.
This article concerns representation before and around interpretation. It complements questions about meanings, translations and identities; it does not reduce those questions to character codes.
Zoom 1: What a person sees and types
A familiar-looking word can hide a small difference introduced by a keyboard, a copy operation or a document conversion. The appropriate first step is to inspect the original text, not to assume that the writer lacks vocabulary or that the AI lacks understanding.
| Layer | What it describes | What it does not establish |
|---|---|---|
| Displayed shape | How a font and layout present text | That two underlying strings are identical |
| Code-point sequence | The encoded character values | That two strings have different meanings |
| Grapheme cluster | A segment approximating a user-perceived character | That it is one word or one AI token |
| Token sequence | Units supplied to a particular model | A complete division into human concepts |
| Meaning in context | What the expression communicates here | That its bytes must match another expression |
Unicode's text segmentation specification distinguishes grapheme clusters, words and sentences. It also explains that text alone cannot always resolve boundaries exactly as a reader would. Even a seemingly basic instruction such as “count the characters” therefore needs an agreed unit.
For a practical example, suppose a form allows ten “characters”. Ten visible characters and ten code points can be different limits. If the form rejects a legitimate name, repeatedly asking the person to shorten it may conceal a software design problem.
For an ordinary reader, the useful questions are modest: Did the original word survive copying? Did punctuation change? Is the error present in the source or only in the extracted text? Can the service show what it received? Keep the original document when a discrepancy matters.
Within families, preserving the spelling of a shared name can matter across generations of documents. Community archives face the same task across many people. A plain text view can expose some formatting changes, but identical-looking text may still require code-point inspection. Keep the original as the reference for correction.
Zoom 2: How AI systems receive text
Many language models process tokens that may correspond to whole words, parts of words, punctuation or other units. The boundaries depend on the tokenizer. In the SentencePiece research, Kudo and Richardson describe a subword system that can learn directly from raw sentences rather than requiring pre-separated word sequences. Its treatment of text and normalisation illustrates why model input units should not be equated with dictionary entries.
A token is not a thought. A familiar word need not occupy one token, and a token need not have one stable meaning. The same visible passage processed by different tokenizers may be segmented differently. This does not, by itself, establish that the resulting models will answer differently or that one interpretation is wrong.
It is helpful to separate three operations. Encoding represents characters for storage or transmission; UTF-8 is one such encoding, specified in RFC 3629. Text preprocessing may transform an input according to chosen rules. Tokenisation then supplies units to the model. These operations can sit inside a larger pipeline that also extracts text from documents and retrieves matching records.
If a system cannot locate a document containing a requested phrase, the problem could arise before the language model sees the document. The search index and the query might use different text transformations. A document extractor might have inserted a break inside a word. These are possible diagnoses, not conclusions to infer from one failed answer.
A worked example: an unsuccessful catalogue search
Imagine a small archive storing two versions of a title containing an accented name. An exact comparison reports a mismatch, although the titles look identical. An engineer checks the code points and finds the composed and decomposed forms described earlier.
The archive's task is to retrieve the title, so canonical normalisation may be an appropriate comparison step. The original title remains stored, and the comparison value is derived using a documented rule. A second test then checks an actual spelling difference that should remain distinguishable.
The repair is specific. It addresses a representation mismatch; it does not authorise merging every similar name or every search result. If the system still fails after the representations agree, the investigation moves to indexing, retrieval or interpretation instead of repeatedly changing the spelling.
Normalisation is a choice about which differences to ignore
Unicode distinguishes canonical and compatibility equivalence. Compatibility normalisation can collapse some distinctions that particular applications may need to preserve. The specification cautions against applying compatibility forms indiscriminately to arbitrary text. A normalisation rule should therefore be selected for the task, not treated as a universal cleaning command. See Unicode Normalization Forms.
Case changes, punctuation substitution, accent removal and whitespace changes also need their own policies. Calling all of them “cleaning” hides the decisions involved. A search tool may reasonably offer forgiving matching while a record system preserves the exact submitted spelling.
The W3C string-matching working draft of 16 July 2026 examines how choices about normalisation and case affect comparisons. It is a work in progress, not a universal rule for every application. Its broader engineering lesson is useful: matching behaviour should be specified, rather than left to accidental differences between components.
For a team, write the requirement in operational terms: “Use this comparison rule for catalogue lookup, retain the submitted title, and return possible matches for review.” That is much clearer than “fix strange characters”.
Zoom 3: Institutional records and meaningful differences
An organisation can create two opposite problems. It can keep equivalent representations separate and fail to connect relevant records. Or it can erase distinctions too aggressively and combine records that should remain separate.
Neither problem is solved by an AI guessing that the names “look close enough”. A model's proposed match is a candidate that needs the evidence appropriate to the task. An exact spelling match is also insufficient to establish identity; different people can share a name.
Consider an invented membership service. A person's accented name is preserved for display, a documented comparison key helps search, and an account identifier connects transactions. When two candidates remain plausible, the workflow requests a suitable additional identifier instead of silently choosing one. The human-facing spelling and the system's matching rule perform different jobs.
A useful record can retain the submitted text, the source, any transformation applied, the resulting comparison value and the reason for a manual correction. This is a proposed audit pattern, not an established universal record format. Its value is that a reviewer can locate where a difference was introduced.
The same principle helps with document-based AI. Preserve the original passage alongside extracted text when accuracy matters. If an extraction step changed a symbol, repairing the prompt alone will not restore the lost source information.
Zoom 4: Writing systems, access and public trust
English is part of a world of writing systems. A rule that treats unfamiliar characters as disposable can make a system easier for its developers while making it less faithful to the people who use it. The appropriate objective is reliable handling of legitimate text, with transparent rules for the particular application.
There is also a distinction between supporting writing systems and detecting visual confusion. Unicode’s security mechanisms address confusable characters and strings, while recognising that visual similarity depends in part on fonts. Confusable detection does not prove that two strings share a meaning, an owner or an identity. Nor is ordinary Unicode normalisation a universal solution to lookalikes.
At national scale, a small character-handling decision can be repeated across public forms, archives and automated reports. A technical shortcut can then influence whose names are easy to find, which documents connect and which corrections people must repeatedly request. Cross-border systems need to agree how legitimate text will be preserved and compared, rather than assuming that one country's conventions cover everyone.
That is a possible consequence to examine, not a claim that every mismatch produces discrimination. The evidence should identify the affected inputs, the decision path and the outcome. User testing should include the actual languages and scripts the service intends to support.
Vocabulary engineering reaches below definitions here. Before a system can preserve what a person means, it must know what text it received and which changes it made. Respect for meaning begins with an inspectable representation.
At the scale of civilisation and future continuity, the same principle applies to inherited archives. A migration to a new system should test whether text remains readable and faithful, including characters unfamiliar to the migration team. Preserved originals and documented conversions give future readers a way to investigate a mismatch. A cleaner-looking database is not sufficient evidence that cultural or scientific records survived intact.
A practical text-integrity check
Choose one failing example. Keep the original and the processed version. Name the task: displaying a name, searching a title, comparing an identifier, quoting a passage or generating an answer. Then identify the first stage at which the intended information changes.
Ask what “same” must mean for that task. Test a pair that should match and a pair that should remain different. Include text from the relevant writing systems. Document any transformation and preserve enough of the original to investigate later mistakes.
Finally, test the output that matters. Equal code points do not guarantee a correct summary. Correct tokenisation does not guarantee truthful reasoning. A successful retrieval does not establish that the retrieved passage supports the answer. The representation check is one part of a larger evidence check.
A four-week practice plan
Week 1 — Observe. Compare a short passage in its original document and in plain extracted text. Note changed punctuation, spacing or accents without assuming a cause.
Week 2 — Define. Write the meaning of “same” for one task you use. Explain which differences should be ignored and which must remain visible.
Week 3 — Test. Build a small set containing a valid match, a meaningful difference and an ambiguous case. Ask the tool to preserve uncertainty when the available information cannot settle the ambiguous case.
Week 4 — Repair. Improve one input or review procedure. Check the revised behaviour on the original examples and preserve a record of the change. Treat this as a local improvement, not proof of reliability for every language or document.
Questions readers often ask
Should everyone remove accents before using AI?
No. Accents can be meaningful parts of words and names. The task is to support the intended text and choose appropriate comparison rules, not to make every input resemble English without accents.
Does a different token sequence mean a different answer?
Not necessarily. Input representation is one influence within a larger system. To claim an output effect, test the specified model and task rather than inferring the result from the token sequence alone.
Is Unicode normalisation the same as fixing meaning?
No. It addresses specified relationships between character sequences. Interpretation still depends on language, context, evidence and the purpose of the task.
Continue reading
For the broader model vocabulary, read Why Aren’t Token, Word, Embedding, Vector and Meaning the Same in AI?. The present article concentrates on preserving and comparing the written text before drawing conclusions about its meaning.