What's text normalization?
Text normalization is the process of transforming text into a common form. That is necessary in order to remove insignificant differences among identical words.
Let's look at déjà-vu word to handle.
The word deja-vu is not equal to déjà-vu for string comparison. Even Déjà-vu is not equal to déjà-vu. Similarly, Michè'le is not equal to Michèle. All these words (that is, tokens) are not equal because the comparison is made at the byte-level by Elasticsearch. This means, for two tokens to be considered the same, they need to consist of exactly the same bytes when these tokens are compared.
However, these words have similar meanings. In other words, the same thing is being sought when a user is searching for the word déjà-vu ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access