Check input string for closest matching words in provided dictionary
npm install check-spellingCheck spelling using levenshtein distance.
Example usage
``js``
WORD_DICTIONARY_ARRAY = ["bat", "risk", "full"];
checkSpelling("cat"); // returns ["bat", "risk", "full"]
SUGGESTIONS_NUMBER = 1;
checkSpelling("rat"); // returns ["bat"]