adj-noun ![Build Status](https://travis-ci.org/btford/adj-noun.svg?branch=master)
Gives you a random adj-noun pair that you can use as a unique identifier.
Great for generating readable URLs.
Install
$ npm install adj-noun
Use
var adjNoun = require('adj-noun');
adjNoun.seed(123);
adjNoun.adjPrime(3);
adjNoun.nounPrime(7);
for (var i = 0; i < 10; i++) {
console.log(adjNoun().join('-'));
}
adjNoun.seed(456);
CLI
Install it globally:
$ npm install -g
Then you can:
$ adj-noun
royal-haircut
You can also specify the number of unique names to generate:
$ adj-noun 5
unlined octet
luckier gospel
wordy shading
slothful groomsmen
devotional newsletter
It randomly seeds between runs with Math.random()
.
Word list
The script for generating the word list uses NLTK.
See scripts/data.py
for more.
See Also
License
MIT