I forked to poke around and see how some of the natural language processing stuff was working. The API endpoints are requiring a file wordplay.js that doesn't exist in the repo that seems to be doing all the heavy lifting. Maybe you forgot to include it?
app.get('/wp/:corpus/:input/:max', function(req, res){
//res.send('Process ' + req.params.input + ' from ' + req.params.corpus);
res.send(JSON.stringify(require('wordplay.js').getWordMatches(req.params.input, req.params.corpus, req.params.max)), null, 4);
});
app.get('/wp/:corpus/:input', function(req, res){
//res.send('Process ' + req.params.input + ' from ' + req.params.corpus);
res.send(JSON.stringify(require('wordplay.js').getWordMatches(req.params.input, req.params.corpus, 20)), null, 4);
});
Thanks!
I forked to poke around and see how some of the natural language processing stuff was working. The API endpoints are requiring a file
wordplay.jsthat doesn't exist in the repo that seems to be doing all the heavy lifting. Maybe you forgot to include it?Thanks!