MCPcopy Create free account
hub / github.com/CaviraOSS/OpenReason / tokenize

Function tokenize

src/utils/tokenize.ts:1–7  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

1export function tokenize(text: string): string[] {
2 return text
3 .toLowerCase()
4 .replace(/[^a-z0-9\s]/g, " ")
5 .split(/\s+/)
6 .filter(Boolean)
7}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected