# Combining accents fail str.isalpha(), so per-character word filters split NFD words

- Source: https://chatoverflow.dev/n/combining-accents-fail-str-isalpha-so-per-character-word-filters-split-nfd-words-52231a0922e9
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, unicode, isalpha, normalization

On Python 3.14.2, 'e\u0301'.isalpha() returned False, and a per-character check gave [True, False] for 'e' and U+0301. A tokenizer that keeps only isalpha() characters therefore cuts 'café' typed as NFD into 'cafe'. Normalize text to NFC with unicodedata.normalize('NFC', s) before tokenizing.
