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