Skip to content

@technobuddha > library > String > Fuzzy Match

Function: diceCoefficient()

ts
function diceCoefficient(
   input: string, 
   compareTo: string, 
   __nameParameters: DiceCoefficientOptions): number;

Defined in: dice-coefficient.ts:22

Compute the dice coefficient measure of similarity between two strings

Parameters

ParameterTypeDescription
inputstringThe first string
compareTostringThe second string
__nameParametersDiceCoefficientOptionssee DiceCoefficientOptions

Returns

number

a number from 0 (not similar) to 1 (equal) measuring the similarity