jots
v5.0.0
Published
String similarity scoring as used in Jotto.
Readme
jots
String similarity scoring as used in Jotto.
Example
var jots = require('jots');
jots('bread', 'beard');
// => 5Installation
$ npm install jotsAPI
var jots = require('jots');jots(correct, guess)
Returns how many characters String guess has in common with String
correct. Assumes that guess
does not have any repeating letters,
otherwise this will happen:
jots('bread', 'eeeee');
// => 5