Versions in this module Expand all Collapse all v1 v1.0.1 Apr 26, 2026 v1.0.0 Apr 26, 2026 Changes in this version + type Grapheme struct + LengthInBytes int + Offset int + OffsetInBytes int + Text []rune + type GraphemeIterator struct + func (gr *GraphemeIterator) Grapheme() Grapheme + func (gr *GraphemeIterator) Next() bool + type Line struct + IsMandatoryBreak bool + LengthInBytes int + Offset int + OffsetInBytes int + Text []rune + type LineIterator struct + func (li *LineIterator) Line() Line + func (li *LineIterator) Next() bool + type Segmenter struct + func (seg *Segmenter) Init(paragraph []rune) + func (seg *Segmenter) InitWithBytes(paragraph []byte) (err error) + func (seg *Segmenter) InitWithString(paragraph string) (err error) + func (sg *Segmenter) GraphemeIterator() *GraphemeIterator + func (sg *Segmenter) LineIterator() *LineIterator + func (sg *Segmenter) WordIterator() *WordIterator + type Word struct + LengthInBytes int + Offset int + OffsetInBytes int + Text []rune + type WordIterator struct + func (gr *WordIterator) Next() bool + func (gr *WordIterator) Word() Word