This vlang package implements Unicode Text Segmentation according to Unicode Standard Annex #29.
- Grapheme cluster boundaries: supported and passed official break tests.
- Word boundaries: supported and passed official break tests.
- Sentence boundaries: supported and passed official break tests.
v install magic003.uniseg
Check out the examples
folder.
Refer to http://magic003.github.io/uniseg for the documentation.
- Unicode Standard Annex #29.
- The design and implementation of this library is heavily influenced by uniseg in Go and unicode-segmentation in Rust.