[READ-ONLY] Mirror of https://github.com/FoxxMD/string-sameness. Compare the sameness of two strings foxxmd.github.io/string-sameness/
compare cosine-similarity dice-coefficient levenshtein-distance sameness string text typescript
0

Configure Feed

Select the types of activity you want to include in your feed.

Remove erroneously added declaration files

FoxxMD (Jun 25, 2024, 9:38 AM EDT) 239d6917 115780ae

-17
-14
src/matchingStrategies/cosineSimilarity.d.ts
··· 1 - import { ComparisonStrategy, ComparisonStrategyResultObject } from "../atomic.js"; 2 - export declare const calculateCosineSimilarity: (strA: string, strB: string) => number; 3 - /** 4 - * Compares whole tokens (words) within a string independent of order 5 - * 6 - * This strategy is automatically disabled for strings with less than 4 words because it can lead to inaccurate scores due to not comparing characters IE it is not very useful for short sentences and comparing single words with typos 7 - * 8 - * If you'd like to use it even in these scenarios build your own strategy array using cosineStrategyAggressive instead of this one 9 - * */ 10 - export declare const cosineStrategy: ComparisonStrategy<ComparisonStrategyResultObject>; 11 - /** 12 - * Always runs (strings are always valid) which may lead to inaccurate scores in low token-count strings 13 - * */ 14 - export declare const cosineStrategyAggressive: ComparisonStrategy<ComparisonStrategyResultObject>;
-3
src/matchingStrategies/levenSimilarity.d.ts
··· 1 - import { ComparisonStrategy, ComparisonStrategyResultObject } from "../atomic.js"; 2 - export declare const calculateLevenSimilarity: (valA: string, valB: string) => number[]; 3 - export declare const levenStrategy: ComparisonStrategy<ComparisonStrategyResultObject>;