1.1.3 • Published 5 years ago

@extra-string/tversky-index v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Get Tversky index between strings.

const tverskyIndex = require('@extra-string/tversky-index');
// tverskyIndex(<string-1>, <string-2>, [α=1], [β=1], [ngram=2])

tverskyIndex('pocket', 'pocket');
// 1
tverskyIndex('monster', 'rocket');
// 0
tverskyIndex('pikachu', 'raichu', 0.2, 0.4, 3);
// 0.3333333333333333

extra-string

1.1.3

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago