pg3d-autocorrect
v1.1.6
Published
Pixel Gun 3d Encyclopedia package helper(autocorrect)
Downloads
12
Maintainers
Readme
Usage
Default options
var pg3dautocorrect = require('pg3dautocorrect')()
autocorrect('extermator') // exterminator
Custom dictionary path
var path = '/usr/share/dict/words'
var pg3dautocorrect = require('pg3dautocorrect')({dictionary: path})
autocorrect('extermator') // exterminator
Custom words
var words = ['pixelgun', 'antichampionrifle', 'laserbow']
var pg3dautocorrect = require('pg3dautocorrect')({words: words})
autocorrect('larbow') // laserbow
Options
words
- a list of words to use for matchingdictionary
- path to dictionary file