Find the best matching word using the first smallest Levenshtein distance
npm install autocorrectautocorrect 
==============

Finds the best matching word using the first smallest Levenshtein distance.
```javascript``
var autocorrect = require('autocorrect')()
autocorrect('mbryo') // embryo
``javascript``
var path = '/usr/share/dict/words'
var autocorrect = require('autocorrect')({dictionary: path})
autocorrect('mbryo') // embryo
javascript
var words = ['word', 'weird', 'wired']
var autocorrect = require('autocorrect')({words: words})
autocorrect('wared') // wired
``Options
*
words - a list of words to use for matching
* dictionary` - path to dictionary file