autocorrect
Finds the best matching word using the first smallest Levenshtein distance.
Usage
Default options
var autocorrect = // embryo
Custom dictionary path
var path = '/usr/share/dict/words'var autocorrect = dictionary: path // embryo
Custom words
var words = 'word' 'weird' 'wired'var autocorrect = words: words// wired
Options
words
- a list of words to use for matchingdictionary
- path to dictionary file