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