Created
November 29, 2019 20:52
-
-
Save RinatValiullov/e2e920492c86d76ecac32e5d160face9 to your computer and use it in GitHub Desktop.
For translation of article "Natural language processing for Node.js" - https://bit.ly/2QZsts1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// index.js | |
var natural = require('natural'); | |
var corpus = ['something', 'soothing']; | |
var spellcheck = new natural.Spellcheck(corpus); | |
console.log(spellcheck.getCorrections('soemthing', 1)); | |
console.log(spellcheck.getCorrections('soemthing', 2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment