(left: string, right: string)
| 35 | } |
| 36 | |
| 37 | const nameSimilarity = (left: string, right: string): number => { |
| 38 | const length = Math.max(left.length, right.length) |
| 39 | return length === 0 ? 1 : 1 - levenshtein(left.toLowerCase(), right.toLowerCase()) / length |
| 40 | } |
| 41 | |
| 42 | const entityFeatureCache = new WeakMap<ApiEntity, ReadonlySet<string>>() |
| 43 |
no test coverage detected