We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Get Sørensen-Dice distance between strings.
const sorensenDiceDistance = require('@extra-string/sorensen-dice-distance'); // sorensenDiceDistance(<string-1>, <string-2>, [ngram=2]) sorensenDiceDistance('pocket', 'pocket'); // 0 sorensenDiceDistance('monster', 'rocket'); // 1 sorensenDiceDistance('pikachu', 'raichu', 3); // 0.7777777777777778