Your infinite supply of procedural stupidity!
These* are idiotic, yet worthless algorithms to generate semi-random text. They're useful for... nothing really, but I use them in various projects like the Somatic and Christopher the Robot Quagsire. They're written in Python, but should be trivial to port. The whole may be more offensive than its parts, so don't use this in live demos!
insult_generator.py: Produces ad hominem attacks of the form adjective [...more adjectives] noun [maybe another noun]
, such as 'hairy fart-filled creep weasel' and 'corncob-tugging egg-shaped sleazy son-of-a-boomer.'
- Ruminate on the poor decisions that led you here
- Add the thing to your thing
- Import it:
from insult_generator import hit_me
- Run it:
yo_mama = hit_me()
and add optional paramsmaximum_words
,odds_of_adding_another_word
, and/orexclusions
... if you dare
Parameters:
maximum_words
: The maximum number of tokens to select. They're not really words per se, since some tokens likefuture divorcee
are phrases. Anything less than 1 means you're dumb. Default: 3exclusions
: Tokens that should be rerolled. One string, not a collection! For instance,yo_mama = hit_me(exclusions="mama's boy Bionicle moist")
because yo mama is not cool enough to be a Bionicle, probably not male enough to be a boy, and certainly not moist in my experience, hey-o! Default: Nothingodds_of_adding_another_word
: Probability from 0.0 to 1.0 of adding an additional word - affects variance, basically. A value of 1.0 means every output ismaximum_words
long. A value of 0.75 means there's a 75% chance of getting more than one word, a 75% * 75% = 56% chance of getting more than two words, etc. A value of 0.0 means you're super duper dumb. Generation always stops whenmaximum_words
have been produced! Default: 0.5
*I'll add more later, I promise!