1.1.3 • Published 5 years ago

@extra-string/matching-ngram-count v1.1.3

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

Count matching n-grams between strings.

const matchingNgramCount = require('@extra-string/matching-ngram-count');
// matchingNgramCount(<string-1>, <string-2>, <n>)

matchingNgrams('worm', 'storm', 2);
// 2 ('or', 'rm')
matchingNgrams('astronaut', 'astronomer', 3);
// 4 ('ast', 'str', 'tro', 'ron')
matchingNgrams('coconut', 'cotton', 2);
// 2 ('co', 'on')

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