MCPcopy
hub / github.com/obsidianmd/obsidian-help / tokenize

Function tokenize

scripts/migrate-locale.ts:81–83  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

79}
80
81function tokenize(s: string): string[] {
82 return normalize(s).split(/\s+/).filter(t => t.length > 1);
83}
84
85// Noise tokens that add no signal
86const NOISE = new Set(["the", "a", "an", "and", "or", "of", "to", "in",

Callers 1

findMatchFunction · 0.85

Calls 1

normalizeFunction · 0.70

Tested by

no test coverage detected