Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Word ¶
Word returns the distinctive lowercase word(s) for rune r.
e.g. 'α' -> "alpha", '😀' -> "grinning face", and whether r is covered.
Covered runes exclude everything the mangler already handles (ASCII, Latin+diacritics, digits) or elides (combining marks, controls, separators, CJK, Hangul).
Callers re-segment the result (following case breaks).
The covered set is interval-encoded (maximal ranges of consecutive codepoints): a single binary search over runStart locates the range, then the global rune index is pure arithmetic — no linear scan.
Offsets into wordBlob are 18-bit (uint16 low + 2-bit high sidecar).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.