@technobuddha/library
Version:
A large library of useful functions
13 lines (12 loc) • 562 B
TypeScript
declare type Options = {
/** The compairson will ignore case */
caseInsensitive?: boolean;
/** Weight of levenshtein distance */
weightLevenshteinDistance?: number;
/** Weight of diceCoefficient */
weightDiceCoefficient?: number;
/** Weight of longestCommonSubstring */
weightLongestCommonSubstring?: number;
};
export declare function fuzzyMatch(input: string, comparedTo: string, { caseInsensitive, weightLevenshteinDistance, weightDiceCoefficient, weightLongestCommonSubstring, }?: Options): number;
export default fuzzyMatch;