-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfnorders.js
71 lines (61 loc) · 24 KB
/
fnorders.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
if (navigator.serviceWorker) navigator.serviceWorker.register('/service-worker.js', { scope: '/' });
var parts = {
"adjective": ["1st", "23rd", "aback", "abaft", "abandoned", "abashed", "aberrant", "abhorrent", "abiding", "abject", "ablaze", "abnormal", "aboard", "aboriginal", "abortive", "abounding", "abrasive", "abrupt", "absent", "absorbed", "absorbing", "abstracted", "absurd", "abusive", "acceptable", "accessible", "accidental", "accurate", "acoustic", "acrid", "acrobatic", "actually", "ad hoc", "adamant", "adaptable", "addicted", "adhesive", "adjoining", "adorable", "afraid", "agnostic", "agonizing", "ahead", "alcoholic", "alert", "alien", "alike", "alive", "alleged", "alluring", "aloof", "ambiguous", "ambitious", "amiable", "amoeboid", "amuck", "ancient", "animated", "anorexic", "anorexic", "apathetic", "aquatic", "arbitrary", "aromatic", "aspiring", "assorted", "astonishing", "atomic", "auspicious", "available", "avenging", "average", "aware", "awesome", "axiomatic", "bad", "balanced", "barbarous", "bashful", "bawdy", "beautiful", "befitting", "belligerent", "berserk", "besotted", "best", "better", "big", "billowy", "bizarre", "black", "blighted", "blue", "boiling", "boorish", "boring", "boundless", "brash", "brawny", "breezy", "brief", "bright", "broad", "broken", "brown", "bumpy", "burly", "cagey", "calculating", "callous", "capable", "capricious", "cast-iron", "cast iron", "cat-like", "catlike", "cautious", "ceaseless", "changeable", "cheerful", "childlike", "chilly", "Chinese", "chivalrous", "chubby", "chunky", "clammy", "classy", "cloistered", "cloudy", "clumsy", "coherent", "cold", "colossal", "combative", "comfortable", "communist", "Communist", "conquering", "cooing", "cool", "cooperative", "corrupt", "corruscating", "cosmic", "courageous", "cowardly", "crabby", "craven", "crazy", "credible", "creepy", "crooked", "cuddly", "cultured", "curly", "curved", "cynical", "daffy", "daily", "damaged", "damaging", "damp", "dancing", "dapper", "dashing", "dazzling", "dead", "deadly", "deadpan", "debonair", "decisive", "decorous", "deep", "deeply", "defective", "dehydrated", "delightful", "demonic", "deranged", "deserted", "detailed", "determined", "devilish", "didactic", "diligent", "direful", "dirty", "disagreeable", "discreet", "diseased", "disguised", "disillusioned", "dispensable", "divergent", "dizzy", "domineering", "draconian", "dramatic", "drug-crazed", "drugged", "drunken", "dry", "dull", "dusty", "dynamic", "dysfunctional", "dyslexic", "eager", "early", "earsplitting", "earthy", "easy", "eatable", "economic", "educated", "efficacious", "efficient", "elated", "elderly", "electric", "elfin", "elite", "embossed", "eminent", "empty", "enchanting", "encouraging", "endurable", "energetic", "enhanced", "enormous", "entertaining", "enthusiastic", "equable", "erect", "erotic", "erratic", "ethereal", "evanescent", "evasive", "evil", "excellent", "excited", "exclusive", "exotic", "expensive", "explosive", "extraterrestrial", "exuberant", "exultant", "fabulous", "faded", "fallacious", "fanatical", "fancy", "fantastic", "fascinated", "fast", "fat", "faulty", "fearless", "feigned", "ferocious", "fertile", "festive", "filthy", "finicky", "flagrant", "flaming", "flashy", "flawless", "flippant", "flowery", "foamy", "foregoing", "forgetful", "fortunate", "frail", "French", "frenzied", "fretful", "friendly", "frightening", "frozen", "functional", "funny", "furry", "furtive", "futuristic", "gabby", "gainful", "gamy", "gaping", "garrulous", "gaudy", "gelatinous", "gentle", "giant", "giddy", "gigantic", "glamorous", "gleaming", "glib", "glorious", "glossy", "glowing", "gnarly", "godly", "gold", "good", "goofy", "gorgeous", "graceful", "grandiose", "granular", "gratis", "great", "greedy", "green", "groovy", "grotesque", "grouchy", "gruesome", "grumpy", "guarded", "guiltless", "gullible", "gusty", "guttural", "habitual", "half", "hallowed", "halting", "handsome", "handsomely", "hapless", "happy", "harmonious", "heady", "healthy", "heartbreaking", "heavenly", "heavy", "hellish", "helpful", "hesitant", "high", "highest", "highfalutin", "hilarious", "historical", "holistic", "hollow", "honorable", "horrible", "horrific", "hospitable", "hot", "huge", "hulking", "humdrum", "humming", "humorous", "hungry", "hurried", "hurt", "hypnotic", "hysterical", "icky", "idiotic", "ignorant", "illegal", "illegal", "illuminated", "illustrious", "imaginary", "imitation", "immense", "imminent", "impartial", "imperfect", "imported", "impotent", "impudent", "impulsive", "incandescent", "incompetent", "inconclusive", "indictable", "industrious", "innate", "innocent", "insane", "instinctive", "internal", "invincible", "irate", "itchy", "jaded", "jagged", "Japanese", "jazzy", "jealous", "jittery", "jobless", "jolly", "joyous", "judicious", "jumbled", "jumpy", "juvenile", "kaput", "kind", "kindhearted", "knotty", "knowing", "knowledgeable", "known", "labored", "lackadaisical", "lacking", "lamentable", "languid", "large", "late", "laughable", "lavish", "lazy", "lean", "learned", "lecherous", "legal", "lethal", "level", "lewd", "light", "likeable", "literate", "little", "lively", "lizard-like", "long", "longing", "lopsided", "loutish", "lovely", "loving", "low", "lowly", "lucky", "ludicrous", "lumpy", "lush", "luxuriant", "lying", "lyrical", "macabre", "macho", "maddening", "madly", "magenta", "magical", "magnificent", "majestic", "makeshift", "malicious", "mammoth", "maniacal", "many", "marked", "Martian", "massive", "materialistic", "mature", "mauve", "measly", "medium-sized", "meek", "melodic", "merciful", "mere", "mighty", "mindless", "miniature", "minor", "miscreant", "moaning", "modern", "moldy", "momentous", "morbid", "most influential", "muddled", "mundane", "murky", "mushy", "musical", "mutant", "mysterious", "mythical", "naive", "nappy", "narrow", "nasty", "naughty", "nauseating", "nebulous", "needless", "needy", "neighborly", "nervous", "new", "nice", "nifty", "noiseless", "noisy", "nonchalant", "nondescript", "nonstop", "nostalgic", "nosy", "noxious", "nuclear", "null", "numberless", "numerous", "nutritious", "oafish", "obedient", "obeisant", "obscene", "obsequious", "observant", "obsolete", "obtainable", "oceanic", "odd", "offbeat", "oily", "old", "omniscient", "onerous", "oozing", "opaque", "optimal", "opulent", "orange", "orbital", "ordinary", "organic", "ossified", "oval", "overconfident", "overjoyed", "overrated", "overt", "overwrought", "painful", "painstaking", "panoramic", "parched", "parsimonious", "pastoral", "pathetic", "peaceful", "penitent", "perfect", "perfectly ordinary", "periodic", "permissible", "perpetual", "persuasive", "petite", "petty", "phobic", "picayune", "pickled", "piquant", "placid", "plant", "plausible", "pleasant", "plucky", "plump", "pointless", "political", "polluted", "poor", "possessive", "precious", "pregnant", "premium", "pretty", "prickly", "productive", "profuse", "protective", "protozoan", "proud", "psychedelic", "psychotic", "puce", "puffy", "pulsating", "pumped", "puny", "purple", "putrid", "quack", "quaint", "quarrelsome", "questionable", "quick", "quickest", "quiet", "quixotic", "quizzical", "rabid", "racial", "radical", "radioactive", "ragged", "rainy", "rambunctious", "rampant", "rare", "raspy", "ratty", "rebel", "receptive", "recondite", "red", "redundant", "reflective", "reformed", "reincarnated", "relieved", "reminiscent", "resolute", "resonant", "rhetorical", "righteous", "rightful", "ritzy", "roasted", "robust", "romantic", "roomy", "round", "royal", "rubber", "ruddy", "rugose", "rural", "Russian", "rustic", "ruthless", "sable", "sad", "sassy", "satisfying", "savoy", "scandalous", "scarce", "scary", "scientific", "scintillating", "scrawny", "screaming", "secretive", "sedate", "seemly", "selective", "sexy", "shallow", "shiftless", "shifty", "shocking", "short", "shrill", "Siamese", "silly", "silver", "sin-ridden", "sincere", "sinister", "sizzling", "skeptical", "skillful", "skinny", "slack-producing", "sleeping", "slick", "slime-dripping", "slimy", "slippery", "sloppy", "slow", "sluggish", "small", "smelly", "smoking", "sneaky", "snobbish", "snotty", "soggy", "solid gold", "somber", "sordid", "spectacular", "spicy", "spiffy", "spiritual", "splendid", "spooky", "spurious", "squalid", "squamous", "square", "squeamish", "staking", "standing", "statuesque", "steadfast", "stereotyped", "stimulating", "stingy", "stoned", "strange", "subdued", "subsequent", "successful", "succinct", "sulky", "supreme", "swanky", "sweet", "sweltering", "symptomatic", "synonymous", "taboo", "tacit", "tacky", "talented", "tall", "tame", "tan", "tangible", "tangy", "tart", "tasteful", "tawdry", "tax-free", "tearful", "telling", "temporary", "tender", "tenuous", "tested", "testy", "therapeutic", "thinkable", "threatening", "throbbing", "tight", "tightfisted", "tin-plated", "tin-pot", "tiny", "tiresome", "toothsome", "torpid", "tough", "towering", "tranquil", "transient", "trashy", "treacherous", "tricky", "trite", "truculent", "tubular", "typical", "ubiquitous", "ugliest", "ugly", "ultra", "unable", "unaccountable", "unadvised", "unarmed", "unbecoming", "unbiased", "uncovered", "understood", "undesirable", "unequaled", "uneven", "unsightly", "unsuitable", "untouchable", "unusual", "upbeat", "upgraded", "uppity", "upset", "uptight", "used", "user-friendly", "user-serviceable", "utopian", "utter", "uttermost", "vacant", "vacillating", "vacuous", "vagabond", "vague", "vampiric", "various", "vast", "vengeful", "venomous", "verdant", "versed", "vibrant", "victorious", "vigorous", "virginal", "vivacious", "vivid", "voiceless", "volatile", "voracious", "vulgar", "wacky", "waggish", "wakeful", "wanting", "warlike", "warm", "wary", "wasteful", "watchful", "watery", "weak", "wealthy", "weary", "wee", "well-dressed", "well-endowed", "wet", "whimsical", "whispering", "white", "wholesale", "wicked", "wide", "willing", "wimpy", "wiry", "wise", "wistful", "woebegone", "womanly", "wonderful", "wooden", "woozy", "workable", "worried", "worthless", "wrathful", "wretched", "wry", "x-rated", "yellow", "yielding", "young", "youthful", "yummy", "zany", "zealous", "zippy", "zonked"],
"name": ["007", "a dead relative", "a dead rock star", "a famous athlete", "a famous golfer", "a famous movie director", "a famous writer", "a former British Prime Minister", "a former First Lady of Massachusetts", "a former U.S. Senator", "a Hollywood film producer", "a long-lost uncle", "a dead rock star", "a long-lost uncle", "a military general", "a mystery writer", "a reknowned lawyer", "a singer", "a Swiss physician", "a Texan legislator", "a wealthy financier", "a well-known media personality", "Abdul Al-Azrad", "Abraham Lincoln", "Agatha Christie", "Al-Qaeda", "Aladdin", "Albert Einstein", "Ali Baba", "an actor", "an artist", "an assistant to the president", "an astronaut", "an humorist", "Angel", "Archangel Gabriel", "Aristotle", "Arnold Schwarzenegger", "Art Buchwald", "Asmodeus", "Badge", "Baja", "Barbie", "Barry Bonds", "Batman", "Bill Clinton", "Bill Gates", "Bill O'Reilly", "Blackrat", "Blackratprime", "Britney Spears", "Buck Rogers", "Bud Selig", "Buffy", "Bullwinkle", "Burgess Meredith", "Buzz Aldrin", "C. E. Chaffin", "Captain Ahab", "Captain America", "Captain Archer", "Captain Kirk", "Captain Nemo", "Carlton Palmer", "Carrie Fisher", "Cary Grant", "Charlie Brown", "Condoleeza Rice", "Connie Francis", "Cthulhu", "Darth Vader", "Dave Letterman", "Dick Cavett", "Dick Cheney", "Dilbert", "Dimitri Mihalas", "Donovan's Brain", "Dracula", "Drew Carey", "Edgar Allen Poe", "Edward Dayes", "Edward FitzGerald", "Elvis", "Emily Dickinson", "Erik Bloodaxe", "Evil Stevie", "F Scott Fitzgerald", "Fearless Leader", "Flaming Carrot", "Francis Ford Coppola", "Gandhi", "Garnet Coleman", "George Lucas", "Gerald Ford", "Graham Greene", "Grandmother", "Gumby", "Hamlet", "Han Solo", "Hans Christian Andersen", "Harry Potter", "Harvey Birdman", "Hillary Clinton", "Hitler", "Hulk Hogan", "Hunter S. Thompson", "Ilie Nastase", "Internal Security", "Isaac Asimov", "Isaac Newton", "J C Penney", "Jack London", "Jack the Ripper", "Jacques Chirac", "Jay Leno", "Jean-Claude Van Damme", "Jim Carrey", "Jimmy Carter", "Jimmy Hoffa", "Jimmy Hoffa", "Tristero", "the Archdean", "Asmodeus", "Joe Montana", "John Ashcroft", "John Clare", "John Daly", "John Davidson", "Johnny-B-Gud", "Jon Stewart", "Joseph Stalin", "Karl Rove", "Kate Millett", "King Arthur", "King Tut", "Kitty Dukakis", "Larry Flynt", "LeBron James", "Lex Luthor", "Lionel Aldridge", "Luke Skywalker", "Mac", "Marilyn Monroe", "Mark Twain", "Mark Vonnegut", "Michael Jordan", "Mick Jagger", "Mozart", "Mr. Bill", "Mr. Ed", "Mr. Science", "Mr. Spock", "Napoleon Bonaparte", "Ned Beatty", "Nelson Mandela", "Neo", "Nixon", "Norman Bates", "Obi-Wan Kenobi", "Oliver North", "Osama bin-Laden", "Patricia Cornwell", "Patty Duke", "Paul McKibbin", "Paul Newman", "Perry Mason", "Peter Jackson", "PK", "Plato", "President Bartlett", "President Bush", "Princess Leia", "Ralph Blakelock", "Ralph Waldo Emerson", "Rambo", "Ray Davies", "Richard Dadd", "Ringo", "Robby the Robot", "Robert Boorstin", "Robert Campeau", "Robert Evans", "Robert Frost", "Robert Heinlein", "Robert Louis Stevenson", "Robin Yellow", "Rocky", "Rod Steiger", "Roger Rabbit", "Ronald Reagan", "Rosemary Clooney", "Saddam Hussein", "Scrooge", "Senor Dobbus", "Sigmund Freud", "Sir Lancelot", "Sir Paul", "Snoopy", "Spiderman", "Spike Milligan", "Sponge Bob Square Pants", "Squad 23", "St Francis", "Steve", "Steven Spielberg", "Superman", "T'Pol", "T S Eliot", "Tadeusz Borowski", "Ted Turner", "Tennessee Williams", "the A.C.L.U.", "the American Idol", "the Archdean", "the Bachelor", "the Bachelorette", "The Claw", "The Computer", "the Crocodile Hunter", "the Discordian", "the Dixie Chicks", "The Doctor", "The Face of Bo", "the Hand", "The Hooded Claw", "The Illuminati", "the Joker", "the Legion of Doom", "The Mighty Dobber", "The Ministry of Disinformation", "the ninja", "the poet laureat", "the Powerpuff Girls", "the Secret Master", "the Secret Service", "the vice squad", "Thomas Eagleton", "Thor", "Tim Burton", "Tiny Tim", "Tom Waits", "Tony Blair", "Tristero", "Tweety-Bird", "Uncle Bob", "Uncle Duke", "Victor Hugo", "Vincent van Gogh", "Weird Al", "Whiterat", "Whiteratprime", "Why the Lucky Stiff", "William Blake", "Winston Churchill", "yo' mama", "your brother", "your evil twin", "your father", "your mother", "your sister", "your sister", "Zaphod Beeblebrox", "Zeus", "Zonker", "Zonker", "Donovan's Brain", ],
"place": ["(not available at your clearance)", "Afghanistan", "Alpha Centauri", "Alpha Complex", "Atlantis", "Austin", "Baghdad", "Berkeley", "Berlin", "Buckingham Palace", "Callahan's Place", "Cheyenne Mountain", "Chicago", "Cyberworld", "Dallas", "Death Valley", "Dime Box", "Endsville", "Gasoline Alley", "Gotham City", "headquarters", "Hell", "Hollywood", "Hong Kong", "Iran", "Iraq", "Israel", "Joe's Bar and Grill", "Kabul", "Katmandu", "Lake Geneva", "Las Vegas", "left field", "Lithuania", "London", "Los Angeles", "Main Street", "Mars", "Middle-earth", "Mission Control", "Mordor", "Moscow", "Munich", "my back yard", "Peking", "Poland", "San Francisco", "Siberia", "Sixth Street", "SJ Games", "Switzerland", "Tel Aviv", "the back forty", "the Bastille", "the bathroom", "the best place possible", "the brewery", "the Bat Cave", "the corner bar", "the dentists' convention", "the doghouse", "the dumpster", "the editorial department", "the Empire State Building", "the hackers' convention", "the home of a trusted friend", "the Hotel California", "the Last National Bank", "the North Pole", "the ocean", "the outback", "the Phoenix Project", "the river", "the same place as before", "the service station", "the South Pole", "the Super Bowl", "the tavern", "the toxic waste dump", "the U.S. Attorney's Office", "the Vatican", "the Watergate Hotel", "the White House", "Toledo", "Topeka", "Uranus", "Wall Street", "you-know-where", "your place", "Yrth", "the Death Star", "beautiful downtown Burbank", "Smallville", "the Shire"],
"preposition": ["assumes responsibility for", "avoids servants of", "deals with", "elopes with", "evades agents of", "flees from", "flees to", "flies to", "flies toward", "goes for", "goes to", "has finished in", "has left with", "hides in", "is attacked by", "is commanded by", "is concerned about", "is contaminated by", "is destroyed by", "is distressed by", "is financed by", "is fondled by", "is found by", "is imitated by", "is infiltrated by", "is joined by", "is like a god to", "is removed by", "is the patron of", "is threatened by", "listens to", "makes fun of", "may not visit", "moves to", "originates from", "reports to", "retreats from", "returns to", "shoots henchmen of", "should watch for", "steals from", "takes blame for", "takes control of", "takes no notice of", "takes refuge in", "travels to", "walks to", "was eliminated by", "was seen in", "will go to", "withdraws from", "assumed responsibility for", "avoided servants of", "has dealt with", "eloped with", "evaded agents of", "fled from", "fled to", "flew to", "flew toward", "has gone for", "went to", "hides in", "was attacked by", "was commanded by", "was concerned about", "was contaminated by", "was destroyed by", "was distressed by", "was financed by", "was fondled by", "was found by", "was imitated by", "was infiltrated by", "was joined by", "was removed by", "was the patron of", "was threatened by", "listened to", "made fun of", "moved to", "originated from", "reported to", "retreated from", "returned to", "shot henchmen of", "watched for", "stole from", "took blame for", "took control of", "took no notice of", "took refuge in", "traveled to", "walked to", "withdrew from", "plays with", "played with", "is assassinated by", "was assassinated by", "is boggled by", "was boggled by", "performs surgical alternations on"],
"action": ["amuses", "avoids", "berates", "boggles", "bothers", "buries", "catches", "commands", "contaminates", "controls", "converts", "delivers", "destroys", "disfigures", "eats", "enters", "fondles", "handles", "harasses", "hassles", "helps", "imitates", "infiltrates", "inherits", "joins", "kills", "leaves", "massages", "molests", "persuades", "perverts", "pitches", "rebuilds", "reinforces", "removes", "replaces", "resurrects", "saves", "serves", "spanks", "squeezes", "strokes", "subverts", "swallows", "swats", "torments", "tortures", "transforms", "whips", "teases", "stomps", "mates with", "tickles", "audits", "beats", "defeats", "outwits", "manipulates", "defects to", "titillates", "perverts", "defenestrates", "discards", "abandons", "talks to", "talks back to", "allies with", "discovers", "betrays", "assassinates", "promotes", "pretends to be", "disguises", "disobeys", "alters", "intimidates"],
"pronoun": ["his", "my", "our", "the", "your"],
"intro": ["4 out of 5 dentists recommend that", "Abort immediately unless", "Abort previous sequence;", "Advance code sequence;", "Alert all stations:", "Confirmed report:", "Contrary to popular belief,", "Delete all evidence that", "Determine whether", "E. F. Hutton says", "Effective immediately,", "Enemy agents now know that", "Fnord!", "Follow plan X if", "Ignore previous message:", "Ignore this message:", "Imperative that", "It appears that", "It is not true that", "Most people surveyed believe that", "Observe and report if", "Oral Roberts dreamed that", "Our foes believe that", "Our reporters claim that", "Pentagon officials deny that", "Please investigate report that", "Step up operation;", "Terminate operation if", "The surgeon general warns that", "Unsubstantiated rumor:", "Urgent:", "Usual sources confirm that", "Warning:", "We suspect that"],
"noun": ["(censored)", "911 file", "additive", "amethyst", "amphibian", "amulet", "angel", "ash tray", "baby", "BBS", "beer bottle", "blueprint", "boat", "book", "bowling ball", "business card", "button", "cable", "cactus", "cannibal", "capsule", "carnation", "cash", "cat", "cauliflower", "CD-ROM", "chainsaw", "chair", "chicken", "club", "cockroach", "code wheel", "coke can", "compact disc", "computer", "cork", "couch", "cow", "crystal", "cummerbund", "cyberdeck", "Deep One", "demon", "devil", "diamond", "dictaphone", "dictator", "dinosaur", "disk drive", "document", "dog", "dragon", "drug", "duck", "DVD", "elephant", "engine", "eye", "file", "flag", "floppy disk", "fly", "football", "frame", "frog", "geographer", "goldfish", "grasshopper", "grimoire", "gyroslugger", "hammer", "Handheld", "hat-rack", "hat", "helmet", "hemisphere", "hot tub", "hypodermic", "ice cream", "icon", "ID card", "iguana", "iMac", "implement", "infant", "insect", "INWO deck", "jellybean", "jet ski", "jet", "jukebox", "kitten", "Klingon", "krugerrand", "kumquat", "lamp", "laptop", "light bulb", "machine gun", "mallet", "manuscript", "mason jar", "message", "mosquito", "motorcycle", "mouse", "MP3", "nanite", "oar", "octopus", "olive", "ostrich", "paddle", "paintbrush", "paper clip", "passport", "password file", "password", "pendant", "penguin", "petunia", "phased plasma rifle", "phone", "photocopy", "piccolo", "piranha", "pistol", "pit viper", "plant", "playtester", "pop tart", "power drill", "ptarmigan", "pterodactyl", "puppy", "pyramid", "racquetball", "radio", "railroad", "razor", "rescuer", "ring", "rom chip", "saber", "saxophone", "scenario", "scraper", "screwdriver", "scuba mask", "sculpture", "Segway", "sex toy", "shark", "shoggoth", "skateboard", "ski lift", "skillet", "spark plug", "spider", "submarine", "surfboard", "sword", "teddy bear", "telegram", "television", "tennis ball", "terminal", "termite", "textbook", "toad", "toast", "tornado", "traitor", "transmitter", "treasure chest", "tree", "trolley", "trumpet", "tuba", "typewriter", "ukelele", "user's manual", "Uzi", "van", "virus", "volleyball", "wand", "wheel", "whip", "yak", "Zulu"],
"illuminati": ["The Bavarian Illuminati", "The Bermuda Triangle", "The Discordian Society", "The Gnomes of Zurich", "The Network", "The Servants of Cthulhu", "The Society of Assassins", "The UFOs"]
};
var template = [
[[5, ["intro"]], "the", [2, ["adjective"]], "noun", [5, ["in", "place"]], "is", "adjective"],
[[5, ["intro"]], "name", "action", "the", "adjective", "noun", "and the", "adjective", "noun"],
[[5, ["intro"]], "the", "noun", "from", "place", "will go to", "place"],
[[5, ["intro"]], "name", "must take the", "adjective", "noun", "from", "place"],
[[5, ["intro"]], "place", "is", "adjective", "and the", "noun", "is", "adjective"],
[[5, ["intro"]], "name", "preposition", "place", "for the", "adjective", "noun"],
[[5, ["intro"]], "the", [2, ["adjective"]], "noun", "action", "the", "adjective", "noun", [5, ["in", "place"]]],
[[5, ["intro"]], "name", "preposition", "place", "and", "action", "the", "noun"],
[[5, ["intro"]], "name", "takes", "pronoun", [2, ["adjective"]], "noun", "and", "preposition", "place"],
[[5, ["intro"]], "name", "action", "the", [2, ["adjective"]], "noun"],
[[5, ["intro"]], "name", "action", "name", "and", "pronoun", [2, ["adjective"]], "noun"],
[[5, ["intro"]], "name", "is the", [2, ["adjective"]], "noun", ";", "name", "preposition", "place"],
[[5, ["intro"]], "you must meet", "name", "at", "place", "and get the", [2, ["adjective"]], "noun"],
[[5, ["intro"]], "a", "noun", "from", "place", "action", "the", [2, ["adjective"]], [5, ["adjective"]], "noun"]
];
var fnordersFromWrapper = document.getElementById("fnorders-from");
var fnordersWrapper = document.getElementById("fnorders");
function capitalize(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function random(theArray){
return theArray[Math.floor(Math.random()*theArray.length)];
}
function fnordify(template){
if(typeof(template[0]) == "number"){
// 1 in N 'chance of'
if(Math.random() < (1 / template[0])){ return fnordify(template[1]); } else { return false; }
}
return template.map(function(item){
if(typeof(item) == 'string' && parts[item]){
// random part
return random(parts[item]);
} else if (typeof(item) == 'string'){
return item;
} else {
return fnordify(item);
}
}).filter(function(part){ return(!!part); }).join(' ').replace(/ +([\.!;:])/g, "$1");
}
function fnorders(){
return capitalize(fnordify(random(template))) + '.';
}
function newFnorders(){
fnordersFromWrapper.innerHTML = fnordify(["illuminati"]);
fnordersWrapper.innerHTML = fnorders();
}
document.getElementById("fnord").addEventListener("click", newFnorders);
newFnorders();