MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getWordSegmenter

Function getWordSegmenter

src/utils/intl.ts:46–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46export function getWordSegmenter(): Intl.Segmenter {
47 if (!wordSegmenter) {
48 wordSegmenter = new Intl.Segmenter(undefined, { granularity: 'word' })
49 }
50 return wordSegmenter
51}
52
53// RelativeTimeFormat cache (keyed by style:numeric)
54const rtfCache = new Map<string, Intl.RelativeTimeFormat>()

Callers 1

getWordBoundariesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected