Posted By

Pjotor on 07/17/09


Tagged

generator insult Shakespearean curses Elizabethan


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Zufolek
cfleschhut


insult generator


 / Published in: JavaScript
 

URL: http://www.museangel.net/insult.html#generator

A quick hackup of the "Shakespearean" insult generator.

  1. var insult = {
  2. // Insults nicked from [ http://www.museangel.net/insult.html ]
  3. a: ["artless","bawdy","beslubbering","bootless","churlish","cockered","clouted","craven","currish","dankish","dissembling","droning","errant","fawning","fobbing","froward","frothy","gleeking","goatish","gorbellied","impertinent","infectious","jarring","loggerheaded","lumpish","mammering","mangled","mewling","paunchy","pribbling","puking","puny","quailing","rank","reeky","roguish","ruttish","saucy","spleeny","spongy","surly","tottering","unmuzzled","vain","venomed","villainous","warped","wayward","weedy","yeasty"],
  4. b: ["base-court","bat-fowling","beef-witted","beetle-headed","boil-brained","clapper-clawed","clay-brained","common-kissing","crook-pated","dismal-dreaming","dizzy-eyed","dog-hearted","dread-bolted","earth-vexing","elf-skinned","fat-kidneyed","fen-sucked","flap-mouthed","fly-bitten","folly-fallen","fool-born","full-gorged","guts-griping","half-faced","hasty-witted","hedge-born","hell-hated","idle-headed","ill-breeding","ill-nurtured","knotty-pated","milk-livered","motley-minded","onion-eyed","plume-plucked","pottle-deep","pox-marked","reeling-ripe","rough-hewn","rude-growing","rump-fed","shard-borne","sheep-biting","spur-galled","swag-bellied","tardy-gaited","tickle-brained","toad-spotted","unchin-snouted","weather-bitten"],
  5. c: ["apple-john","baggage","barnacle","bladder","boar-pig","bugbear","bum-bailey","canker-blossom","clack-dish","clot-pole","coxcomb","codpiece","death-token","dewberry","flap-dragon","flax-wench","flirt-gill","foot-licker","fustilarian","giglet","gudgeon","haggard","harpy","hedge-pig","horn-beast","huggermugger","jolt-head","lewdster","lout","maggot-pie","malt-worm","mammet","measle","minnow","miscreant","mold-warp","mumble-news","nut-hook","pigeon-egg","pignut","puttock","pumpion","rats-bane","scut","skains-mate","strumpet","varlot","vassal","whey-face","wagtail"],
  6. rI: function(a){ return a[Math.floor(Math.random()*a.length)]; },
  7. generate: function(){ var s = "";
  8. for(n=0; n<Math.floor(Math.random()*3)+1; n++)
  9. s += ", " + insult.rI(insult.a) + ", " + insult.rI(insult.b);
  10. s += " " + insult.rI(insult.c);
  11. return "Thou " + s.substring(2) + "!";
  12. }
  13. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: straps on July 21, 2009

i18n support?

Posted By: Pjotor on October 8, 2009

Not planned.

You need to login to post a comment.