Skip to content

Where's wordplay.js? #2

@andyinabox

Description

@andyinabox

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions