What is text normalisation?

Text normalisation is the process of converting text into a consistent standard form before processing; it covers merging different Unicode encodings of the same character, case conversion, cleaning extra whitespace and expanding non-standard forms such as numbers, dates or abbreviations.

Unlike lemmatisation, which reduces an inflected word such as Turkish "kitaplarımızdan" to dictionary form "kitap", normalisation standardises spelling without analysing the word's suffixes. Diacritic restoration is a special kind of normalisation that fixes text typed without Turkish characters.

Topic
Natural language processing and Turkish
Also known as
Text normalization

How text normalisation works

  1. Unicode normalisation brings characters that look alike but are encoded differently to one form; the standard defines four normalisation forms.
  2. Case conversion is language-aware; in Turkish, lower-case I is ı and upper-case i is İ.
  3. Numbers, dates, currencies and abbreviations are expanded or unified as the application needs.
  4. In sources such as social media, spelling errors and missing Turkish characters are fixed.

In more detail

The critical difference between NFC and NFKC

Unicode defines canonical normalisation (NFC and NFD) and compatibility normalisation (NFKC and NFKD). While NFC preserves exact visual meaning and combines decomposed accents, NFKC folds stylistic variants such as ligatures, full-width digits or superscripts, useful for search, but risky when preserving technical or mathematical notation.

The İstanbul and combining dot (U+0307) trap in Turkish

In Unicode, standard locale-independent lower-casing turns Turkish uppercase 'İ' (U+0130) into 'i' followed by a combining dot above (U+0307), creating hidden extra characters that break exact string matching and tokenisation unless Turkish locale rules are applied.

When not to normalise in LLM and embedding pipelines

While classical bag-of-words and BM25 search benefit from aggressive lower-casing and punctuation cleanup, modern BPE tokenisers and dense embedding models rely on casing and punctuation cues for entity recognition and tone; over-normalising before LLM inference often lowers accuracy.

The security angle: homoglyphs and invisible characters

Normalisation also serves a security role by stripping zero-width characters and detecting Unicode homoglyphs (confusable characters from different scripts) that attackers use to evade keyword filters, PII detectors or prompt-injection guardrails.

Commonly confused terms

TermHow it differs
TokenisationTokenisation splits raw text into model-ready subwords or tokens, whereas normalisation cleans and standardises characters beforehand (or sometimes relies on the tokeniser's internal normaliser such as NFC/NFKC).
Data sanitisationData sanitisation removes malicious payloads, PII or control characters for security and privacy, whereas text normalisation focuses on linguistic and encoding consistency for downstream processing.

Why text normalisation matters for on-premises AI

Without normalisation the same word can behave as different words in search indexes, embeddings and tokenisers, causing missed results in enterprise search and RAG. Language-insensitive lower-casing can corrupt Turkish words, turning "IŞIK" into "işik". A study classifying non-standard words shows numbers, dates and abbreviations need separate handling for speech and language processing. Over-normalising also harms: meaningful forms such as product codes or article numbers must be kept.

ON-PREMISES EXAMPLE

Before classifying customer complaints, a telecom operator normalises Unicode, applies Turkish-aware lower-casing and fixes missing Turkish characters, leaving tariff codes untouched.

Common questions

Why does text normalisation matter especially for Turkish?

In Turkish, I and ı and İ and i are distinct letters. Language-insensitive conversion corrupts words and misses search matches.

How does text normalisation differ from lemmatisation?

Normalisation standardises spelling. Lemmatisation reduces an inflected word to its dictionary form.

Sources

In the glossary: Glossary, R to Z

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.