typofix
v0.0.15
Published
Corrects spelling mistakes to a list of registered words
Downloads
28
Readme
Typofix
Corrects spelling mistakes to a list of registered words
Usage
var typofix = require("typofix");
var pushNewWords = typofix.pushNewWords;
var suggest = typofix.suggest;
pushNewWords('testing');
pushNewWords('add all words in this sentence');
pushNewWords(['register', 'everything', 'in this', 'array']);
var suggestion = suggest('reigster');
//suggestion = ["register"];
Use English words
var loadEnglishWords = typofix.loadEnglishWords;
var pushNewWords = typofix.pushNewWords;
var suggest = typofix.suggest;
loadEnglishWords();
var suggestion = suggest('tesring');
//suggestion = ["testing"];
//can still add custom words
pushNewWords("maisie");