@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
| Parameter | Type | Description |
|---|---|---|
input | string | The first string |
compareTo | string | The second string |
__nameParameters | DiceCoefficientOptions | see DiceCoefficientOptions |
Returns
number
a number from 0 (not similar) to 1 (equal) measuring the similarity