check-spelling
v1.0.1
Published
Check input string for closest matching words in provided dictionary
Downloads
6
Maintainers
Readme
Check spelling using levenshtein distance.
Example usage
WORD_DICTIONARY_ARRAY = ["bat", "risk", "full"];
checkSpelling("cat"); // returns ["bat", "risk", "full"]
SUGGESTIONS_NUMBER = 1;
checkSpelling("rat"); // returns ["bat"]