listenshtein
v0.0.0
Published
Filter a list based on Levenshtein distances
Downloads
4
Readme
listenshtein
Filter a list based on Levenshtein distances
Example
var fs = require('fs')
, listenshtein = require('listenshtein');
fs.readFile(somefile, function(err, data) {
var words = data.split(' ');
console.log(
listenshtein('tako', words, 1);
); // => 'taco'
});
listenshtein(word, words, [max dist])
max dist
the maximum levenshtein distance to allow (defaults toword.length - 1
)
install
With npm do:
npm install listenshtein