MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / factTokens

Function factTokens

src/session/store.ts:8–10  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

6
7/** Pull searchable word tokens out of free text (alphanumerics + underscore, length ≥ 2). PURE. */
8export function factTokens(raw: string): string[] {
9 return (raw.toLowerCase().match(/[\p{L}\p{N}_]{2,}/gu) ?? []);
10}
11
12/** De-dupe preserving order. */
13function dedupe(xs: string[]): string[] {

Callers 3

buildFtsMatchFunction · 0.85
searchFactsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected