moos/wordpos

Random Word ?

pyprism opened this issue · 2 comments

Is there any way to get some random word ?

moos commented

Great suggestion. There is now (version 0.1.10). Not yet pushed to npm because of dependency on natural. But you can do direct install:

$ npm install git://github.com/moos/wordpos

Eg:

var WordPOS = require('wordpos'),
    wordpos = new WordPOS();

wordpos.rand(function(result){
    console.log(result); // ['random word']
});

wordpos.rand({startsWith: 'foo', count: 3} function(result){
    console.log(result); // ['foot', 'footsore', 'foolish']
});

See readme for other methods.

Thanks :)

On Sun, May 4, 2014 at 3:58 AM, Moos notifications@github.com wrote:

Great suggestion. There is now (version 0.1.10). Not yet pushed to npm
because of dependency on natural. But you can do direct install:

$ npm install git://github.com/moos/wordpos

Eg:

var WordPOS = require('wordpos'),
wordpos = new WordPOS();

wordpos.rand(function(result){
console.log(result); // ['random word']
});

wordpos.rand({startsWith: 'foo', count: 3} function(result){
console.log(result); // ['foot', 'footsore', 'foolish']
});

See readme for other methods.


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-42117513
.