Skip to content

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

License

Notifications You must be signed in to change notification settings

Bdost/quick-levenshtein

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quick-levenshtein

This library implements 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
distance = levenshtein.calculateEditDistance('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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published