After a couple of years, significant technology appeared in the NLP around NodeJS. See here for more details: http://www.quora.com/Are-there-any-JavaScript-natural-language-processing-projects
But here is an example of question +1, because I was also looking for the same question ... in just a few years.
Working NLP example ... in JavaScript?
Here is my answer ...
Steps 1 - Boilerplate Node Server:
install npm npm install nodebootstrap nodebootstrap naturalNode cd naturalNode && npm install node app
// This should give you a Node bootstrap application running on localhost: 3000
Full details of the simple Node server setup can be found here: https://github.com/stonebk/nodeboilerplate
STEP 2 - Enable the natural library:
Head to the GitHub Natural Library to see what it can do ...
https://github.com/NaturalNode/natural
Launch:
npm install natural
(inside your boot server named naturalNode)
STEP 3 - Run the example:
Include the sample code from the above link in the app.js. boot file
var natural = require('natural'), tokenizer = new natural.WordTokenizer(); console.log(tokenizer.tokenize("your dog has fleas.")); // [ 'your', 'dog', 'has', 'fleas' ]
Now, when you start your server, you have full access to the natural library and the ability to expand it using the interface.
Let me know if any instructions are missing ...