/quick-levenshtein

this library implement the edit distance algorithm (levenshtein original operation) to predict the correct spelling

Primary LanguageJavaScriptMIT LicenseMIT

quick-levenshtein

this library implement the edit distance algorithm( levenshtein original operation) to predict the correct spelling

Installation

node.js

Install using npm:

$ npm install quick-levenshtein

Examples

Default usage

var levenshtein = require('quick-levenshtein');

var distance = levenshtein.calculateEditDistance('kitten', 'sitting');   // 3
var distance = levenshtein.get('sitting', 'sitting');   // 0

Contributing

If you wish to submit a pull request please update and/or create new tests for any changes

License

MIT - see LICENSE