// Load the dictionary for the language you want to use var dictionary = new Typo("en_US"); // Get suggestions for a misspelled word var suggestions = dictionary.suggest("speling"); console.log("Did you mean: " + suggestions.join(", "));
// Load the dictionary for the language you want to use var dictionary = new Typo("en_US"); // Get suggestions for a misspelled word var suggestions = dictionary.suggest("speling"); console.log("Did you mean: " + suggestions.join(", "));