How do I require a node module in my client side javascript?
问题 I am trying to build a natural language processing bot using javascript and jQuery for the logic and node and express as the framework. I discovered a natural language processing facility that would be extremely useful for my project https://github.com/NaturalNode/natural unfortunately the documentation is sparse and I have only been using node for a couple of weeks. This is the code I have on my server side app.js var natural = require('natural'), tokenizer = new natural.WordTokenizer();