@technobuddha/library
Version:
A large library of useful functions
15 lines (14 loc) • 547 B
TypeScript
declare type Options = {
/** compare the two strings in case insensitive mode */
caseInsensitive?: boolean;
};
/**
* Compute the dice coefficient measure of similarity between two strings
*
* @param input The first string
* @param compareTo The second string
* @param __nameParameters see {@link Options}
* @return a number from 0 (not similar) to 1 (equal) measuring the similarity
*/
export declare function diceCoefficient(input: string, compareTo: string, { caseInsensitive }?: Options): number;
export default diceCoefficient;