UNPKG

@technobuddha/library

Version:
13 lines (12 loc) 562 B
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;