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

Function tokenSet

scripts/migrate-locale.ts:89–91  ·  view source on GitHub ↗
(tokens: string[])

Source from the content-addressed store, hash-verified

87 "for", "on", "with", "your", "how", "use", "using"]);
88
89function tokenSet(tokens: string[]): Set<string> {
90 return new Set(tokens.filter(t => !NOISE.has(t)));
91}
92
93function jaccard(a: Set<string>, b: Set<string>): number {
94 if (a.size === 0 || b.size === 0) return 0;

Callers 1

findMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected