Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
For translation of article "Natural language processing for Node.js" -
// index.js
var natural = require('natural');
var metaphone = natural.Metaphone;
var soundEx = natural.SoundEx;
var wordA = 'phonetics';
var wordB = 'fonetix';
if (, wordB))
console.log('They sound alike!');
// We can also obtain the raw phonetics of a word using process()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment