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