The uniseg library determines Unicode text segmentation boundaries, such as grapheme clusters, words, sentences, and line break opportunities, following the Unicode Standard Annex #29 and UAX #14. Current version is 0.10.1, requires Python >=3.9, and released with no fixed cadence.
pip install unisegVerified import paths — ran on the pinned version, not inferred.
Basic usage: iterate over Unicode segment boundaries.
Wrap calls in list() if you need to index or reuse results.
Check uniseg.UNICODE_VERSION for the Unicode version used.
Filter results if only alphanumeric words are needed.
No dependency data recorded yet.