This library implements the edit distance algorithm( levenshtein original operation) to predict the correct spelling
Install using npm:
$ npm install quick-levenshtein
Default usage
var levenshtein = require('quick-levenshtein');
var distance = levenshtein.calculateEditDistance('kitten', 'sitting'); // 3
distance = levenshtein.calculateEditDistance('sitting', 'sitting'); // 0
If you wish to submit a pull request please update and/or create new tests for any changes
MIT - see LICENSE