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