A diacritic is a mark added to a character that can change pronunciation, appearance, or linguistic interpretation. In multilingual text processing, these marks may also become unintended clues for a machine-learning model. section 8.2
Removing diacritics before classification
The surname O’Néàl contains accented characters and a curly apostrophe; asciifying it produces O'Neal. Çetin becomes Cetin. This normalization removes character-level giveaways so a model learns broader text patterns instead of exploiting orthographic details. section 8.2
>>> from nlpia2.string_normalizers import Asciifier
>>> asciify = Asciifier()
>>> asciify("O’Néàl")
"O'Neal"
>>> asciify("Çetin")
'Cetin'
Run the Asciifier examples to inspect how diacritics and curly punctuation are converted to plain ASCII characters. section 8.2
