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