Registry / utility / apparentlymart-go-textseg-v15

apparentlymart-go-textseg-v15

JSON →
library15.0.0gogounverified

Provides Unicode text segmentation (grapheme clusters, word boundaries, sentence boundaries) as defined in UAX #29.

go get github.com/apparentlymart/go-textseg/v15
INSTALL
IMPORT
SIG · APPARENTLYMART-GO-
A
apparentlymart-go-textseg-v15
utilitygov15.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

textseg
github.com/apparentlymart/go-textseg/v15

Iterate over grapheme clusters in a string

package main import ( "fmt" "github.com/apparentlymart/go-textseg/v15" ) func main() { seg := textseg.NewGraphemeClusterSegmenter([]byte("Hello")) for seg.Next() { fmt.Println(string(seg.Bytes())) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
15.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
11
OpenAI (training)
2
Meta
1
Resources
apparentlymart-go-textseg-v15 — go get apparentlymart-go-textseg-v15 · libregistry