Skip to content

Latest commit

 

History

History
 
 

09_abuse

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Shakespearean Insulter

Write a Shakespearean insult generator.

C:\> .\abuse.ps1
You foul, filthsome swine!
You foolish, sodden-witted ratcatcher!
You ruinous, bankrupt jolthead!

The insults are generated by randomly combining these adjectives

bankrupt base caterwauling corrupt cullionly detestable dishonest false
filthsome filthy foolish foul gross heedless indistinguishable infected
insatiate irksome lascivious lecherous loathsome lubbery old peevish
rascaly rotten ruinous scurilous scurvy slanderous sodden-witted
thin-faced toad-spotted unmannered vile wall-eyed

With these nouns

Judas Satan ape ass barbermonger beggar block boy braggart butt
carbuncle coward coxcomb cur dandy degenerate fiend fishmonger fool
gull harpy jack jolthead knave liar lunatic maw milksop minion
ratcatcher recreant rogue scold slave swine traitor varlet villain worm

The program can vary the -n or --number of insults

C:\> .\abuse.ps1 -n 2
You heedless, gross barbermonger!
You bankrupt, vile scold!

Or the number of --adjectives (also -a)

C:\> .\abuse.ps1 -a 4
You sodden-witted, ruinous, lecherous, lubbery villain!
You insatiate, caterwauling, corrupt, toad-spotted traitor!
You vile, unmannered, ruinous, filthy liar!

The program should accept a -s or --seed to set the random seed for reproducible results

C:\> .\abuse.ps1 -s 1
You filthsome, cullionly fiend!
You false, thin-faced minion!
You sodden-witted, rascaly cur!