witty-phrase-generator
Generates three-word phrases of the form intensifier-adjective-noun
, just like GitHub default repo names.
Has minimal dependencies (just rand
and getopts
) and minimal bloat. Uses backtracking and binary search when constraints are tight to avoid repeated computation and maximize speed.
Usage
use WPGen;
Also supports alliteration, max length, and other features. Use witty-phrase-generator --help
or check the docstrings to learn more!
Improvements
- always looking for more witty words to add to the wordlist.
- can have duplicates (common if constraints are tight)
- allow generating with a given length but variable number of words