runewords

package
v0.0.0-...-3579762 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Word

func Word(r rune) (string, bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL