A quick script for auto-generating a release name in the [adjective]_[noun] format given a website as source input.
The NLP part-of-speech tagger isn't perfect, but what is?
gem install rbtagger
gem install nokogiri
With no arguments, one suggestion will be returned using the argument defaults. When no website is passed, it defaults to Special:Random which loads a random article from Wikipedia.
ruby namer.rb
Returns:
- available_metres
You can optionally pass the number of suggections you want returned, enforce proper nouns, and a list of zero or more websites to crawl - used to determine the words available for the suggestions.
ruby namer.rb --suggestions=5 --proper=1
Returns:
- intext_creative
- spanish_theologia
- precise_deutsch
- mystic_Ávila
- stark_ariosophy
ruby namer.rb --suggestions=5 --proper=1 \
http://en.wikipedia.org/wiki/Theodore_Roosevelt
Returns:
- post_indian
- retrieved_trail
- critical_toucey
- domestic_indian
- milkandwater_airdrop
ruby namer.rb --suggestions=5 --proper=1 \
http://en.wikipedia.org/wiki/Theodore_Roosevelt \
http://en.wikipedia.org/wiki/Franklin_D._Roosevelt
Returns:
- ill_november
- panamanian_allen
- stopwatch_fdr
- difficult_w
- monetary_roosevelt