Files
cs1430/mad-lib/js/script.js
T
2026-08-04 06:53:36 -06:00

140 lines
62 KiB
JavaScript

const formFields = document.getElementsByTagName("input");
const fields = [];
const nouns = ["accelerator", "accordion", "account", "accountant", "acknowledgment", "acoustic", "acrylic", "act", "action", "active", "activity", "actor", "actress", "adapter", "addition", "address", "adjustment", "adult", "advantage", "advertisement", "advice", "afghanistan", "africa", "aftermath", "afternoon", "aftershave", "afterthought", "age", "agenda", "agreement", "air", "airbus", "airmail", "airplane", "airport", "airship", "alarm", "albatross", "alcohol", "algebra", "algeria", "alibi", "alley", "alligator", "alloy", "almanac", "alphabet", "alto", "aluminium", "aluminum", "ambulance", "america", "amount", "amusement", "anatomy", "anethesiologist", "anger", "angle", "angora", "animal", "anime", "ankle", "answer", "ant", "antarctica", "anteater", "antelope", "anthony", "anthropology", "apartment", "apology", "apparatus", "apparel", "appeal", "appendix", "apple", "appliance", "approval", "april", "aquarius", "arch", "archaeology", "archeology", "archer", "architecture", "area", "argentina", "argument", "aries", "arithmetic", "arm", "armadillo", "armchair", "armenian", "army", "arrow", "art", "ash", "ashtray", "asia", "asparagus", "asphalt", "asterisk", "astronomy", "athlete", "atm", "atom", "attack", "attempt", "attention", "attic", "attraction", "august", "aunt", "australia", "australian", "author", "authorisation", "authority", "authorization", "avenue", "babies", "baboon", "baby", "back", "backbone", "bacon", "badge", "badger", "bag", "bagel", "bagpipe", "bail", "bait", "baker", "bakery", "balance", "balinese", "ball", "balloon", "bamboo", "banana", "band", "bandana", "bangladesh", "bangle", "banjo", "bank", "bankbook", "banker", "bar", "barbara", "barber", "barge", "baritone", "barometer", "base", "baseball", "basement", "basin", "basket", "basketball", "bass", "bassoon", "bat", "bath", "bathroom", "bathtub", "battery", "battle", "bay", "beach", "bead", "beam", "bean", "bear", "beard", "beast", "beat", "beautician", "beauty", "beaver", "bed", "bedroom", "bee", "beech", "beef", "beer", "beet", "beetle", "beggar", "beginner", "begonia", "behavior", "belgian", "belief", "believe", "bell", "belt", "bench", "bengal", "beret", "berry", "bestseller", "betty", "bibliography", "bicycle", "bike", "bill", "billboard", "biology", "biplane", "birch", "bird", "birth", "birthday", "bit", "bite", "black", "bladder", "blade", "blanket", "blinker", "blizzard", "block", "blood", "blouse", "blow", "blowgun", "blue", "board", "boat", "bobcat", "body", "bolt", "bomb", "bomber", "bone", "bongo", "bonsai", "book", "bookcase", "booklet", "boot", "border", "botany", "bottle", "bottom", "boundary", "bow", "bowl", "bowling", "box", "boy", "bra", "brace", "bracket", "brain", "brake", "branch", "brand", "brandy", "brass", "brazil", "bread", "break", "breakfast", "breath", "brian", "brick", "bridge", "british", "broccoli", "brochure", "broker", "bronze", "brother", "brother-in-law", "brow", "brown", "brush", "bubble", "bucket", "budget", "buffer", "buffet", "bugle", "building", "bulb", "bull", "bulldozer", "bumper", "bun", "burglar", "burma", "burn", "burst", "bus", "bush", "business", "butane", "butcher", "butter", "button", "buzzard", "c-clamp", "cabbage", "cabinet", "cable", "cactus", "cafe", "cake", "calculator", "calculus", "calendar", "calf", "call", "camel", "camera", "camp", "can", "canada", "canadian", "cancer", "candle", "cannon", "canoe", "canvas", "cap", "capital", "cappelletti", "capricorn", "captain", "caption", "car", "caravan", "carbon", "card", "cardboard", "cardigan", "care", "carnation", "carol", "carp", "carpenter", "carriage", "carrot", "cart", "cartoon", "case", "cast", "castanet", "cat", "catamaran", "caterpillar", "cathedral", "catsup", "cattle", "cauliflower", "cause", "caution", "cave", "cd", "ceiling", "celery", "celeste", "cell", "cellar", "cello", "celsius", "cement", "cemetery", "cent", "centimeter", "century", "ceramic", "cereal", "certification", "chain", "chair", "chalk", "chance", "change", "channel", "character", "chard", "charles", "chauffeur", "check", "cheek", "cheese", "cheetah", "chef", "chemistry", "cheque", "cherries", "cherry", "chess", "chest", "chick", "chicken", "chicory", "chief", "child", "children", "chill", "chime", "chimpanzee", "chin", "china", "chinese", "chive", "chocolate", "chord", "christmas", "christopher", "chronometer", "church", "cicada", "cinema", "circle", "circulation", "cirrus", "citizenship", "city", "clam", "clarinet", "class", "claus", "clave", "clef", "clerk", "click", "client", "climb", "clipper", "cloakroom", "clock", "close", "closet", "cloth", "cloud", "cloudy", "clover", "club", "clutch", "coach", "coal", "coast", "coat", "cobweb", "cockroach", "cocktail", "cocoa", "cod", "coffee", "coil", "coin", "coke", "cold", "collar", "college", "collision", "colombia", "colon", "colony", "color", "colt", "column", "columnist", "comb", "comfort", "comic", "comma", "command", "commission", "committee", "community", "company", "comparison", "competition", "competitor", "composer", "composition", "computer", "condition", "condor", "cone", "confirmation", "conga", "congo", "conifer", "connection", "consonant", "continent", "control", "cook", "cooking", "copper", "copy", "copyright", "cord", "cork", "cormorant", "corn", "cornet", "correspondent", "cost", "cotton", "couch", "cougar", "cough", "country", "course", "court", "cousin", "cover", "cow", "cowbell", "crab", "crack", "cracker", "craftsman", "crate", "crawdad", "crayfish", "crayon", "cream", "creator", "creature", "credit", "creditor", "creek", "crib", "cricket", "crime", "criminal", "crocodile", "crocus", "croissant", "crook", "crop", "cross", "crow", "crowd", "crown", "crush", "cry", "cub", "cuban", "cucumber", "cultivator", "cup", "cupboard", "cupcake", "curler", "currency", "current", "curtain", "curve", "cushion", "custard", "customer", "cut", "cuticle", "cycle", "cyclone", "cylinder", "cymbal", "dad", "daffodil", "dahlia", "daisy", "damage", "dance", "dancer", "danger", "daniel", "dash", "dashboard", "database", "date", "daughter", "david", "day", "dead", "deadline", "deal", "death", "deborah", "debt", "debtor", "decade", "december", "decimal", "decision", "decrease", "dedication", "deer", "defense", "deficit", "degree", "delete", "delivery", "den", "denim", "dentist", "deodorant", "department", "deposit", "description", "desert", "design", "desire", "desk", "dessert", "destruction", "detail", "detective", "development", "dew", "diamond", "diaphragm", "dibble", "dictionary", "dietician", "difference", "digestion", "digger", "digital", "dill", "dime", "dimple", "dinghy", "dinner", "dinosaur", "diploma", "dipstick", "direction", "dirt", "disadvantage", "discovery", "discussion", "disease", "disgust", "dish", "distance", "distribution", "distributor", "diving", "division", "divorced", "dock", "doctor", "dog", "dogsled", "doll", "dollar", "dolphin", "domain", "donald", "donkey", "donna", "door", "dorothy", "double", "doubt", "downtown", "dragon", "dragonfly", "drain", "drake", "drama", "draw", "drawbridge", "drawer", "dream", "dredger", "dress", "dresser", "dressing", "drill", "drink", "drive", "driver", "driving", "drizzle", "drop", "drug", "drum", "dry", "dryer", "duck", "duckling", "dugout", "dungeon", "dust", "eagle", "ear", "earth", "earthquake", "ease", "east", "edge", "edger", "editor", "editorial", "education", "edward", "eel", "effect", "egg", "eggnog", "eggplant", "egypt", "eight", "elbow", "element", "elephant", "elizabeth", "ellipse", "emery", "employee", "employer", "encyclopedia", "end", "enemy", "energy", "engine", "engineer", "engineering", "english", "enquiry", "entrance", "environment", "epoch", "epoxy", "equinox", "equipment", "era", "error", "estimate", "ethernet", "ethiopia", "euphonium", "europe", "evening", "event", "ex-husband", "ex-wife", "examination", "example", "exchange", "exclamation", "exhaust", "existence", "expansion", "experience", "expert", "explanation", "eye", "eyebrow", "eyelash", "eyeliner", "face", "facilities", "fact", "factory", "fahrenheit", "fairies", "fall", "family", "fan", "fang", "farm", "farmer", "fat", "father", "father-in-law", "faucet", "fear", "feast", "feather", "feature", "february", "fedelini", "feedback", "feeling", "feet", "felony", "female", "fender", "ferry", "ferryboat", "fertilizer", "fiber", "fiberglass", "fibre", "fiction", "field", "fifth", "fight", "fighter", "file", "find", "fine", "finger", "fir", "fire", "fired", "fireman", "fireplace", "firewall", "fish", "fisherman", "flag", "flame", "flare", "flat", "flavor", "flax", "flesh", "flight", "flock", "flood", "floor", "flower", "flugelhorn", "flute", "fly", "foam", "fog", "fold", "font", "food", "foot", "football", "footnote", "force", "forecast", "forehead", "forest", "forgery", "fork", "form", "format", "fortnight", "foundation", "fountain", "fowl", "fox", "foxglove", "fragrance", "frame", "france", "freckle", "freeze", "freezer", "freighter", "french", "freon", "friction", "friday", "fridge", "friend", "frog", "front", "frost", "frown", "fruit", "fuel", "fur", "furniture", "galley", "gallon", "game", "gander", "garage", "garden", "garlic", "gas", "gasoline", "gate", "gateway", "gauge", "gazelle", "gear", "gearshift", "geese", "gemini", "gender", "geography", "geology", "geometry", "george", "geranium", "german", "germany", "ghana", "ghost", "giant", "giraffe", "girdle", "girl", "gladiolus", "glass", "glider", "gliding", "glockenspiel", "glove", "glue", "goal", "goat", "gold", "goldfish", "golf", "gondola", "gong", "good-bye", "goose", "gore-tex", "gorilla", "gosling", "government", "governor", "grade", "grain", "gram", "granddaughter", "grandfather", "grandmother", "grandson", "grape", "graphic", "grass", "grasshopper", "gray", "grease", "great-grandfather", "great-grandmother", "greece", "greek", "green", "grenade", "grey", "grill", "grip", "ground", "group", "grouse", "growth", "guarantee", "guatemalan", "guide", "guilty", "guitar", "gum", "gun", "gym", "gymnast", "hacksaw", "hail", "hair", "haircut", "half-brother", "half-sister", "halibut", "hall", "hallway", "hamburger", "hammer", "hamster", "hand", "handball", "handicap", "handle", "handsaw", "harbor", "hardboard", "hardcover", "hardhat", "hardware", "harmonica", "harmony", "harp", "hat", "hate", "hawk", "head", "headlight", "headline", "health", "hearing", "heart", "heat", "heaven", "hedge", "height", "helen", "helicopter", "helium", "hell", "helmet", "help", "hemp", "hen", "heron", "herring", "hexagon", "hill", "himalayan", "hip", "hippopotamus", "history", "hobbies", "hockey", "hoe", "hole", "holiday", "home", "honey", "hood", "hook", "hope", "horn", "horse", "hose", "hospital", "hot", "hour", "hourglass", "house", "hovercraft", "hub", "hubcap", "humidity", "humor", "hurricane", "hyacinth", "hydrant", "hydrofoil", "hydrogen", "hyena", "hygienic", "ice", "icebreaker", "icicle", "icon", "idea", "ikebana", "illegal", "imprisonment", "improvement", "impulse", "inch", "income", "increase", "index", "india", "indonesia", "industry", "ink", "innocent", "input", "insect", "instruction", "instrument", "insulation", "insurance", "interactive", "interest", "internet", "interviewer", "intestine", "invention", "inventory", "invoice", "iran", "iraq", "iris", "iron", "island", "israel", "italian", "italy", "jacket", "jaguar", "jail", "jam", "james", "january", "japan", "japanese", "jar", "jasmine", "jason", "jaw", "jeans", "jeep", "jeff", "jelly", "jellyfish", "jennifer", "jet", "jewel", "jogging", "john", "join", "joke", "joseph", "journey", "judge", "judo", "juice", "july", "jumbo", "jump", "jumper", "june", "jury", "justice", "jute", "kale", "kamikaze", "kangaroo", "karate", "karen", "kayak", "kendo", "kenneth", "kenya", "ketchup", "kettle", "kettledrum", "kevin", "key", "keyboard", "keyboarding", "kick", "kidney", "kilogram", "kilometer", "kimberly", "kiss", "kitchen", "kite", "kitten", "kitty", "knee", "knickers", "knife", "knight", "knot", "knowledge", "kohlrabi", "korean", "laborer", "lace", "ladybug", "lake", "lamb", "lamp", "lan", "land", "landmine", "language", "larch", "lasagna", "latency", "latex", "lathe", "laugh", "laundry", "laura", "law", "lawyer", "layer", "lead", "leaf", "learning", "leather", "leek", "leg", "legal", "lemonade", "lentil", "leo", "leopard", "letter", "lettuce", "level", "libra", "library", "license", "lier", "lift", "light", "lightning", "lilac", "lily", "limit", "linda", "line", "linen", "link", "lion", "lip", "lipstick", "liquid", "liquor", "lisa", "list", "literature", "litter", "liver", "lizard", "llama", "loaf", "loan", "lobster", "lock", "locket", "locust", "look", "loss", "lotion", "love", "low", "lumber", "lunch", "lunchroom", "lung", "lunge", "lute", "luttuce", "lycra", "lynx", "lyocell", "lyre", "lyric", "macaroni", "machine", "macrame", "magazine", "magic", "magician", "maid", "mail", "mailbox", "mailman", "makeup", "malaysia", "male", "mall", "mallet", "man", "manager", "mandolin", "manicure", "manx", "map", "maple", "maraca", "marble", "march", "margaret", "margin", "maria", "marimba", "mark", "market", "married", "mary", "mascara", "mask", "mass", "match", "math", "mattock", "may", "mayonnaise", "meal", "measure", "meat", "mechanic", "medicine", "meeting", "melody", "memory", "men", "menu", "mercury", "message", "metal", "meteorology", "meter", "methane", "mexican", "mexico", "mice", "michael", "michelle", "microwave", "middle", "mile", "milk", "milkshake", "millennium", "millimeter", "millisecond", "mimosa", "mind", "mine", "mini-skirt", "minibus", "minister", "mint", "minute", "mirror", "missile", "mist", "mistake", "mitten", "moat", "modem", "mole", "mom", "monday", "money", "monkey", "month", "moon", "morning", "morocco", "mosque", "mosquito", "mother", "mother-in-law", "motion", "motorboat", "motorcycle", "mountain", "mouse", "moustache", "mouth", "move", "multi-hop", "multimedia", "muscle", "museum", "music", "musician", "mustard", "myanmar", "nail", "name", "nancy", "napkin", "narcissus", "nation", "neck", "need", "needle", "neon", "nepal", "nephew", "nerve", "nest", "net", "network", "news", "newsprint", "newsstand", "nic", "nickel", "niece", "nigeria", "night", "nitrogen", "node", "noise", "noodle", "north", "north america", "north korea", "norwegian", "nose", "note", "notebook", "notify", "novel", "november", "number", "numeric", "nurse", "nut", "nylon", "oak", "oatmeal", "objective", "oboe", "observation", "occupation", "ocean", "ocelot", "octagon", "octave", "october", "octopus", "odometer", "offence", "offer", "office", "oil", "okra", "olive", "onion", "open", "opera", "operation", "ophthalmologist", "opinion", "option", "orange", "orchestra", "orchid", "order", "organ", "organisation", "organization", "ornament", "ostrich", "otter", "ounce", "output", "outrigger", "oval", "oven", "overcoat", "owl", "owner", "ox", "oxygen", "oyster", "package", "packet", "page", "pail", "pain", "paint", "pair", "pajama", "pakistan", "palm", "pamphlet", "pan", "pancake", "pancreas", "panda", "pansy", "panther", "panties", "pantry", "pants", "panty", "pantyhose", "paper", "paperback", "parade", "parallelogram", "parcel", "parent", "parentheses", "park", "parrot", "parsnip", "part", "particle", "partner", "partridge", "party", "passbook", "passenger", "passive", "pasta", "paste", "pastor", "pastry", "patch", "path", "patient", "patio", "patricia", "paul", "payment", "pea", "peace", "peak", "peanut", "pear", "pedestrian", "pediatrician", "peen", "peer-to-peer", "pelican", "pen", "penalty", "pencil", "pendulum", "pentagon", "peony", "pepper", "perch", "perfume", "period", "periodical", "peripheral", "permission", "persian", "person", "peru", "pest", "pet", "pharmacist", "pheasant", "philippines", "philosophy", "phone", "physician", "piano", "piccolo", "pickle", "picture", "pie", "pig", "pigeon", "pike", "pillow", "pilot", "pimple", "pin", "pine", "ping", "pink", "pint", "pipe", "pisces", "pizza", "place", "plain", "plane", "planet", "plant", "plantation", "plaster", "plasterboard", "plastic", "plate", "platinum", "play", "playground", "playroom", "pleasure", "plier", "plot", "plough", "plow", "plywood", "pocket", "poet", "point", "poison", "poland", "police", "policeman", "polish", "politician", "pollution", "polo", "polyester", "pond", "popcorn", "poppy", "population", "porch", "porcupine", "port", "porter", "position", "possibility", "postage", "postbox", "pot", "potato", "poultry", "pound", "powder", "power", "precipitation", "preface", "prepared", "pressure", "price", "priest", "print", "printer", "prison", "probation", "process", "processing", "produce", "product", "production", "professor", "profit", "promotion", "propane", "property", "prose", "prosecution", "protest", "protocol", "pruner", "psychiatrist", "psychology", "ptarmigan", "puffin", "pull", "puma", "pump", "pumpkin", "punch", "punishment", "puppy", "purchase", "purple", "purpose", "push", "pvc", "pyjama", "pyramid", "quail", "quality", "quart", "quarter", "quartz", "queen", "question", "quicksand", "quiet", "quill", "quilt", "quince", "quit", "quiver", "quotation", "rabbi", "rabbit", "racing", "radar", "radiator", "radio", "radish", "raft", "rail", "railway", "rain", "rainbow", "raincoat", "rainstorm", "rake", "ramie", "random", "range", "rat", "rate", "raven", "ravioli", "ray", "rayon", "reaction", "reading", "reason", "receipt", "recess", "record", "recorder", "rectangle", "red", "reduction", "refrigerator", "refund", "regret", "reindeer", "relation", "relative", "religion", "relish", "reminder", "repair", "replace", "report", "representative", "request", "resolution", "respect", "responsibility", "rest", "restaurant", "result", "retailer", "revolve", "revolver", "reward", "rhinoceros", "rhythm", "rice", "richard", "riddle", "rifle", "ring", "rise", "risk", "river", "riverbed", "road", "roadway", "roast", "robert", "robin", "rock", "rocket", "rod", "roll", "romania", "romanian", "ronald", "roof", "room", "rooster", "root", "rose", "rotate", "route", "router", "rowboat", "rub", "rubber", "rugby", "rule", "run", "russia", "russian", "rutabaga", "ruth", "sack", "sagittarius", "sail", "sailboat", "sailor", "salad", "salary", "sale", "salesman", "salmon", "salt", "sampan", "samurai", "sand", "sandra", "sandwich", "santa", "sarah", "sardine", "satin", "saturday", "sauce", "saudi arabia", "sausage", "save", "saw", "saxophone", "scale", "scallion", "scanner", "scarecrow", "scarf", "scene", "scent", "schedule", "school", "science", "scissors", "scooter", "scorpio", "scorpion", "scraper", "screen", "screw", "screwdriver", "sea", "seagull", "seal", "seaplane", "search", "seashore", "season", "seat", "second", "secretary", "secure", "security", "seed", "seeder", "segment", "select", "selection", "self", "semicircle", "semicolon", "sense", "sentence", "separated", "september", "servant", "server", "session", "sex", "shade", "shadow", "shake", "shallot", "shame", "shampoo", "shape", "share", "shark", "sharon", "shears", "sheep", "sheet", "shelf", "shell", "shield", "shingle", "ship", "shirt", "shock", "shoe", "shoemaker", "shop", "shorts", "shoulder", "shovel", "show", "shrimp", "shrine", "siamese", "siberian", "side", "sideboard", "sidecar", "sidewalk", "sign", "signature", "silica", "silk", "silver", "sing", "singer", "single", "sink", "sister", "sister-in-law", "size", "skate", "skiing", "skill", "skin", "skirt", "sky", "slash", "slave", "sled", "sleep", "sleet", "slice", "slime", "slip", "slipper", "slope", "smash", "smell", "smile", "smoke", "snail", "snake", "sneeze", "snow", "snowboarding", "snowflake", "snowman", "snowplow", "snowstorm", "soap", "soccer", "society", "sociology", "sock", "soda", "sofa", "softball", "softdrink", "software", "soil", "soldier", "son", "song", "soprano", "sort", "sound", "soup", "sousaphone", "south africa", "south america", "south korea", "soy", "soybean", "space", "spade", "spaghetti", "spain", "spandex", "spark", "sparrow", "spear", "specialist", "speedboat", "sphere", "sphynx", "spider", "spike", "spinach", "spleen", "sponge", "spoon", "spot", "spring", "sprout", "spruce", "spy", "square", "squash", "squid", "squirrel", "stage", "staircase", "stamp", "star", "start", "starter", "state", "statement", "station", "statistic", "steam", "steel", "stem", "step", "step-aunt", "step-brother", "step-daughter", "step-father", "step-grandfather", "step-grandmother", "step-mother", "step-sister", "step-son", "step-uncle", "stepdaughter", "stepmother", "stepson", "steven", "stew", "stick", "stinger", "stitch", "stock", "stocking", "stomach", "stone", "stool", "stop", "stopsign", "stopwatch", "store", "storm", "story", "stove", "stranger", "straw", "stream", "street", "streetcar", "stretch", "string", "structure", "study", "sturgeon", "submarine", "substance", "subway", "success", "sudan", "suede", "sugar", "suggestion", "suit", "summer", "sun", "sunday", "sundial", "sunflower", "sunshine", "supermarket", "supply", "support", "surfboard", "surgeon", "surname", "surprise", "susan", "sushi", "swallow", "swamp", "swan", "sweater", "sweatshirt", "sweatshop", "swedish", "sweets", "swim", "swimming", "swing", "swiss", "switch", "sword", "swordfish", "sycamore", "syria", "syrup", "system", "t-shirt", "table", "tablecloth", "tabletop", "tachometer", "tadpole", "tail", "tailor", "taiwan", "talk", "tank", "tanker", "tanzania", "target", "taste", "taurus", "tax", "taxi", "taxicab", "tea", "teacher", "teaching", "team", "technician", "teeth", "television", "teller", "temper", "temperature", "temple", "tempo", "tendency", "tennis", "tenor", "tent", "territory", "test", "text", "textbook", "texture", "thailand", "theater", "theory", "thermometer", "thing", "thistle", "thomas", "thought", "thread", "thrill", "throat", "throne", "thumb", "thunder", "thunderstorm", "thursday", "ticket", "tie", "tiger", "tights", "tile", "timbale", "time", "timer", "timpani", "tin", "tip", "tire", "titanium", "title", "toad", "toast", "toe", "toenail", "toilet", "tom-tom", "tomato", "ton", "tongue", "tooth", "toothbrush", "toothpaste", "top", "tornado", "tortellini", "tortoise", "touch", "tower", "town", "toy", "tractor", "trade", "traffic", "trail", "train", "tramp", "transaction", "transmission", "transport", "trapezoid", "tray", "treatment", "tree", "trial", "triangle", "trick", "trigonometry", "trip", "trombone", "trouble", "trousers", "trout", "trowel", "truck", "trumpet", "trunk", "tsunami", "tub", "tuba", "tuesday", "tugboat", "tulip", "tuna", "tune", "turkey", "turkish", "turn", "turnip", "turnover", "turret", "turtle", "tv", "twig", "twilight", "twine", "twist", "typhoon", "tyvek", "uganda", "ukraine", "ukrainian", "umbrella", "uncle", "underclothes", "underpants", "undershirt", "underwear", "unit", "united kingdom", "unshielded", "use", "utensil", "uzbekistan", "vacation", "vacuum", "valley", "value", "van", "var verbs = [aardvark", "vase", "vault", "vegetable", "vegetarian", "veil", "vein", "velvet", "venezuela", "venezuelan", "verdict", "vermicelli", "verse", "vessel", "vest", "veterinarian", "vibraphone", "vietnam", "view", "vinyl", "viola", "violet", "violin", "virgo", "viscose", "vise", "vision", "visitor", "voice", "volcano", "volleyball", "voyage", "vulture", "waiter", "waitress", "walk", "wall", "wallaby", "wallet", "walrus", "war", "warm", "wash", "washer", "wasp", "waste", "watch", "watchmaker", "water", "waterfall", "wave", "wax", "way", "wealth", "weapon", "weasel", "weather", "wedge", "wednesday", "weed", "weeder", "week", "weight", "whale", "wheel", "whip", "whiskey", "whistle", "white", "wholesaler", "whorl", "wilderness", "william", "willow", "wind", "windchime", "window", "windscreen", "windshield", "wine", "wing", "winter", "wire", "wish", "witch", "withdrawal", "witness", "wolf", "woman", "women", "wood", "wool", "woolen", "word", "work", "workshop", "worm", "wound", "wrecker", "wren", "wrench", "wrinkle", "wrist", "writer", "xylophone", "yacht", "yak", "yam", "yard", "yarn", "year", "yellow", "yew", "yogurt", "yoke", "yugoslavian", "zebra", "zephyr", "zinc", "zipper", "zone", "zoo", "zoology" ];
const pronouns = ["he", "him", "his", "she", "her", "hers", "they", "them", "y\'all"];
const verbs = ["accept", "add", "admire", "admit", "advise", "afford", "agree", "alert", "allow", "amuse", "analyse", "announce", "annoy", "answer", "apologise", "appear", "applaud", "appreciate", "approve", "argue", "arrange", "arrest", "arrive", "ask", "attach", "attack", "attempt", "attend", "attract", "avoid", "back", "bake", "balance", "ban", "bang", "bare", "bat", "bathe", "battle", "beam", "beg", "behave", "belong", "bleach", "bless", "blind", "blink", "blot", "blush", "boast", "boil", "bolt", "bomb", "book", "bore", "borrow", "bounce", "bow", "box", "brake", "branch", "breathe", "bruise", "brush", "bubble", "bump", "burn", "bury", "buzz", "calculate", "call", "camp", "care", "carry", "carve", "cause", "challenge", "change", "charge", "chase", "cheat", "check", "cheer", "chew", "choke", "chop", "claim", "clap", "clean", "clear", "clip", "close", "coach", "coil", "collect", "colour", "comb", "command", "communicate", "compare", "compete", "complain", "complete", "concentrate", "concern", "confess", "confuse", "connect", "consider", "consist", "contain", "continue", "copy", "correct", "cough", "count", "cover", "crack", "crash", "crawl", "cross", "crush", "cry", "cure", "curl", "curve", "cycle", "dam", "damage", "dance", "dare", "decay", "deceive", "decide", "decorate", "delay", "delight", "deliver", "depend", "describe", "desert", "deserve", "destroy", "detect", "develop", "disagree", "disappear", "disapprove", "disarm", "discover", "dislike", "divide", "double", "doubt", "drag", "drain", "dream", "dress", "drip", "drop", "drown", "drum", "dry", "dust", "earn", "educate", "embarrass", "employ", "empty", "encourage", "end", "enjoy", "enter", "entertain", "escape", "examine", "excite", "excuse", "exercise", "exist", "expand", "expect", "explain", "explode", "extend", "face", "fade", "fail", "fancy", "fasten", "fax", "fear", "fence", "fetch", "file", "fill", "film", "fire", "fit", "fix", "flap", "flash", "float", "flood", "flow", "flower", "fold", "follow", "fool", "force", "form", "found", "frame", "frighten", "fry", "gather", "gaze", "glow", "glue", "grab", "grate", "grease", "greet", "grin", "grip", "groan", "guarantee", "guard", "guess", "guide", "hammer", "hand", "handle", "hang", "happen", "harass", "harm", "hate", "haunt", "head", "heal", "heap", "heat", "help", "hook", "hop", "hope", "hover", "hug", "hum", "hunt", "hurry", "identify", "ignore", "imagine", "impress", "improve", "include", "increase", "influence", "inform", "inject", "injure", "instruct", "intend", "interest", "interfere", "interrupt", "introduce", "invent", "invite", "irritate", "itch", "jail", "jam", "jog", "join", "joke", "judge", "juggle", "jump", "kick", "kill", "kiss", "kneel", "knit", "knock", "knot", "label", "land", "last", "laugh", "launch", "learn", "level", "license", "lick", "lie", "lighten", "like", "list", "listen", "live", "load", "lock", "long", "look", "love", "man", "manage", "march", "mark", "marry", "match", "mate", "matter", "measure", "meddle", "melt", "memorise", "mend", "mess up", "milk", "mine", "miss", "mix", "moan", "moor", "mourn", "move", "muddle", "mug", "multiply", "murder", "nail", "name", "need", "nest", "nod", "note", "notice", "number", "obey", "object", "observe", "obtain", "occur", "offend", "offer", "open", "order", "overflow", "owe", "own", "pack", "paddle", "paint", "park", "part", "pass", "paste", "pat", "pause", "peck", "pedal", "peel", "peep", "perform", "permit", "phone", "pick", "pinch", "pine", "place", "plan", "plant", "play", "please", "plug", "point", "poke", "polish", "pop", "possess", "post", "pour", "practise", "pray", "preach", "precede", "prefer", "prepare", "present", "preserve", "press", "pretend", "prevent", "prick", "print", "produce", "program", "promise", "protect", "provide", "pull", "pump", "punch", "puncture", "punish", "push", "question", "queue", "race", "radiate", "rain", "raise", "reach", "realise", "receive", "recognise", "record", "reduce", "reflect", "refuse", "regret", "reign", "reject", "rejoice", "relax", "release", "rely", "remain", "remember", "remind", "remove", "repair", "repeat", "replace", "reply", "report", "reproduce", "request", "rescue", "retire", "return", "rhyme", "rinse", "risk", "rob", "rock", "roll", "rot", "rub", "ruin", "rule", "rush", "sack", "sail", "satisfy", "save", "saw", "scare", "scatter", "scold", "scorch", "scrape", "scratch", "scream", "screw", "scribble", "scrub", "seal", "search", "separate", "serve", "settle", "shade", "share", "shave", "shelter", "shiver", "shock", "shop", "shrug", "sigh", "sign", "signal", "sin", "sip", "ski", "skip", "slap", "slip", "slow", "smash", "smell", "smile", "smoke", "snatch", "sneeze", "sniff", "snore", "snow", "soak", "soothe", "sound", "spare", "spark", "sparkle", "spell", "spill", "spoil", "spot", "spray", "sprout", "squash", "squeak", "squeal", "squeeze", "stain", "stamp", "stare", "start", "stay", "steer", "step", "stir", "stitch", "stop", "store", "strap", "strengthen", "stretch", "strip", "stroke", "stuff", "subtract", "succeed", "suck", "suffer", "suggest", "suit", "supply", "support", "suppose", "surprise", "surround", "suspect", "suspend", "switch", "talk", "tame", "tap", "taste", "tease", "telephone", "tempt", "terrify", "test", "thank", "thaw", "tick", "tickle", "tie", "time", "tip", "tire", "touch", "tour", "tow", "trace", "trade", "train", "transport", "trap", "travel", "treat", "tremble", "trick", "trip", "trot", "trouble", "trust", "try", "tug", "tumble", "turn", "twist", "type", "undress", "unfasten", "unite", "unlock", "unpack", "untidy", "use", "vanish", "visit", "wail", "wait", "walk", "wander", "want", "warm", "warn", "wash", "waste", "watch", "water", "wave", "weigh", "welcome", "whine", "whip", "whirl", "whisper", "whistle", "wink", "wipe", "wish", "wobble", "wonder", "work", "worry", "wrap", "wreck", "wrestle", "wriggle", "x-ray", "yawn", "yell", "zip", "zoom"];
const adjectives = ["aback","abaft","abandoned","abashed","aberrant","abhorrent","abiding","abject","ablaze","able","abnormal","aboard","aboriginal","abortive","abounding","abrasive","abrupt","absent","absorbed","absorbing","abstracted","absurd","abundant","abusive","acceptable","accessible","accidental","accurate","acid","acidic","acoustic","acrid","actually","ad","hoc","adamant","adaptable","addicted","adhesive","adjoining","adorable","adventurous","afraid","aggressive","agonizing","agreeable","ahead","ajar","alcoholic","alert","alike","alive","alleged","alluring","aloof","amazing","ambiguous","ambitious","amuck","amused","amusing","ancient","angry","animated","annoyed","annoying","anxious","apathetic","aquatic","aromatic","arrogant","ashamed","aspiring","assorted","astonishing","attractive","auspicious","automatic","available","average","awake","aware","awesome","awful","axiomatic","bad","barbarous","bashful","bawdy","beautiful","befitting","belligerent","beneficial","bent","berserk","best","better","bewildered","big","billowy","bite-sized","bitter","bizarre","black","black-and-white","bloody","blue","blue-eyed","blushing","boiling","boorish","bored","boring","bouncy","boundless","brainy","brash","brave","brawny","breakable","breezy","brief","bright","bright","broad","broken","brown","bumpy","burly","bustling","busy","cagey","calculating","callous","calm","capable","capricious","careful","careless","caring","cautious","ceaseless","certain","changeable","charming","cheap","cheerful","chemical","chief","childlike","chilly","chivalrous","chubby","chunky","clammy","classy","clean","clear","clever","cloistered","cloudy","closed","clumsy","cluttered","coherent","cold","colorful","colossal","combative","comfortable","common","complete","complex","concerned","condemned","confused","conscious","cooing","cool","cooperative","coordinated","courageous","cowardly","crabby","craven","crazy","creepy","crooked","crowded","cruel","cuddly","cultured","cumbersome","curious","curly","curved","curvy","cut","cute","cute","cynical","daffy","daily","damaged","damaging","damp","dangerous","dapper","dark","dashing","dazzling","dead","deadpan","deafening","dear","debonair","decisive","decorous","deep","deeply","defeated","defective","defiant","delicate","delicious","delightful","demonic","delirious","dependent","depressed","deranged","descriptive","deserted","detailed","determined","devilish","didactic","different","difficult","diligent","direful","dirty","disagreeable","disastrous","discreet","disgusted","disgusting","disillusioned","dispensable","distinct","disturbed","divergent","dizzy","domineering","doubtful","drab","draconian","dramatic","dreary","drunk","dry","dull","dusty","dynamic","dysfunctional","eager","early","earsplitting","earthy","easy","eatable","economic","educated","efficacious","efficient","eight","elastic","elated","elderly","electric","elegant","elfin","elite","embarrassed","eminent","empty","enchanted","enchanting","encouraging","endurable","energetic","enormous","entertaining","enthusiastic","envious","equable","equal","erect","erratic","ethereal","evanescent","evasive","even excellent excited","exciting exclusive","exotic","expensive","extra-large extra-small exuberant","exultant","fabulous","faded","faint fair","faithful","fallacious","false familiar famous","fanatical","fancy","fantastic","far"," far-flung"," fascinated","fast","fat faulty","fearful fearless","feeble feigned","female fertile","festive","few fierce","filthy","fine","finicky","first"," five"," fixed"," flagrant","flaky","flashy","flat","flawless","flimsy"," flippant","flowery","fluffy","fluttering"," foamy","foolish","foregoing","forgetful","fortunate","four frail","fragile","frantic","free"," freezing"," frequent"," fresh"," fretful","friendly","frightened frightening full fumbling functional","funny","furry furtive","future futuristic","fuzzy ","gabby","gainful","gamy","gaping","garrulous","gaudy","general gentle","giant","giddy","gifted","gigantic","glamorous","gleaming","glib","glistening glorious","glossy","godly","good","goofy","gorgeous","graceful","grandiose","grateful gratis","gray greasy great","greedy","green grey grieving","groovy","grotesque","grouchy","grubby gruesome","grumpy","guarded","guiltless","gullible gusty","guttural H habitual","half","hallowed","halting","handsome","handsomely","handy","hanging","hapless","happy","hard","hard-to-find","harmonious","harsh","hateful","heady","healthy","heartbreaking","heavenly heavy hellish","helpful","helpless","hesitant","hideous high","highfalutin","high-pitched","hilarious","hissing","historical","holistic","hollow","homeless","homely","honorable","horrible","hospitable","hot huge","hulking","humdrum","humorous","hungry","hurried","hurt","hushed","husky","hypnotic","hysterical","icky","icy","idiotic","ignorant","ill","illegal","ill-fated","ill-informed","illustrious","imaginary","immense","imminent","impartial","imperfect","impolite","important","imported","impossible","incandescent","incompetent","inconclusive","industrious","incredible","inexpensive","infamous","innate","innocent","inquisitive","insidious","instinctive","intelligent","interesting","internal","invincible","irate","irritating","itchy","jaded","jagged","jazzy","jealous","jittery","jobless","jolly","joyous","judicious","juicy","jumbled","jumpy","juvenile","kaput","keen","kind","kindhearted","kindly","knotty","knowing","knowledgeable","known","labored","lackadaisical","lacking","lame","lamentable","languid","large","last","late","laughable","lavish","lazy","lean","learned","left","legal","lethal","level","lewd","light","like","likeable","limping","literate","little","lively","lively","living","lonely","long","longing","long-term","loose","lopsided","loud","loutish","lovely","loving","low","lowly","lucky","ludicrous","lumpy","lush","luxuriant","lying","lyrical","macabre","macho","maddening","madly","magenta","magical","magnificent","majestic","makeshift","male","malicious","mammoth","maniacal","many","marked","massive","married","marvelous","material","materialistic","mature","mean","measly","meaty","medical","meek","mellow","melodic","melted","merciful","mere","messy","mighty","military","milky","mindless","miniature","minor","miscreant","misty","mixed","moaning","modern","moldy","momentous","motionless","mountainous","muddled","mundane","murky","mushy","mute","mysterious","naive","nappy","narrow","nasty","natural","naughty","nauseating","near","neat","nebulous","necessary","needless","needy","neighborly","nervous","new","next","nice","nifty","nimble","nine","nippy","noiseless","noisy","nonchalant","nondescript","nonstop","normal","nostalgic","nosy","noxious","null","numberless","numerous","nutritious","nutty","oafish","obedient","obeisant","obese","obnoxious","obscene","obsequious","observant","obsolete","obtainable","oceanic","odd","offbeat","old","old-fashioned","omniscient","one","onerous","open","opposite","optimal","orange","ordinary","organic","ossified","outgoing","outrageous","outstanding","oval","overconfident","overjoyed","overrated","overt","overwrought","painful","painstaking","pale","paltry","panicky","panoramic","parallel","parched","parsimonious","past","pastoral","pathetic","peaceful","penitent","perfect","periodic","permissible","perpetual","petite","petite","phobic","physical","picayune","pink","piquant","placid","plain","plant","plastic","plausible","pleasant","plucky","pointless","poised","polite","political","poor","possessive","possible","powerful","precious","premium","present","pretty","previous","pricey","prickly","private","probable","productive","profuse","protective","proud","psychedelic","psychotic","public","puffy","pumped","puny","purple","purring","pushy","puzzled","puzzling","quack","quaint","quarrelsome","questionable","quick","quickest","quiet","quirky","quixotic","quizzical","rabid","racial","ragged","rainy","rambunctious","rampant","rapid","rare","raspy","ratty","ready","real","rebel","receptive","recondite","red","redundant","reflective","regular","relieved","remarkable","reminiscent","repulsive","resolute","resonant","responsible","rhetorical","rich","right","righteous","rightful","rigid","ripe","ritzy","roasted","robust","romantic","roomy","rotten","rough","round","royal","ruddy","rude","rural","rustic","ruthless","sable","sad","safe","salty","same","sassy","satisfying","savory","scandalous","scarce","scared","scary","scattered","scientific","scintillating","scrawny","screeching","second","second-hand","secret","secretive","sedate","seemly","selective","selfish","separate","serious","shaggy","shaky","shallow","sharp","shiny","shivering","shocking","short","shrill","shut","shy","sick","silent","silent","silky","silly","simple","simplistic","sincere","six","skillful","skinny","sleepy","slim","slimy","slippery","sloppy","slow","small","smart","smelly","smiling","smoggy","smooth","sneaky","snobbish","snotty","soft","soggy","solid","somber","sophisticated","sordid","sore","sore","sour","sparkling","special","spectacular","spicy","spiffy","spiky","spiritual","spiteful","splendid","spooky","spotless","spotted","spotty","spurious","squalid","square","squealing","squeamish","staking","stale","standing","statuesque","steadfast","steady","steep","stereotyped","sticky","stiff","stimulating","stingy","stormy","straight","strange","striped","strong","stupendous","stupid","sturdy","subdued","subsequent","substantial","successful","succinct","sudden","sulky","super","superb","superficial","supreme","swanky","sweet","sweltering","swift","symptomatic","synonymous","taboo","tacit","tacky","talented","tall","tame","tan","tangible","tangy","tart","tasteful","tasteless","tasty","tawdry","tearful","tedious","teeny","teeny-tiny","telling","temporary","ten","tender tense","tense","tenuous","terrible","terrific","tested","testy","thankful","therapeutic","thick","thin","thinkable","third","thirsty","thoughtful","thoughtless","threatening","three","thundering","tidy","tight","tightfisted","tiny","tired","tiresome","toothsome","torpid","tough","towering","tranquil","trashy","tremendous","tricky","trite","troubled","truculent","true","truthful","two","typical","ubiquitous","ugliest","ugly","ultra","unable","unaccountable","unadvised","unarmed","unbecoming","unbiased","uncovered","understood","undesirable","unequal","unequaled","uneven","unhealthy","uninterested","unique","unkempt","unknown","unnatural","unruly","unsightly","unsuitable","untidy","unused","unusual","unwieldy","unwritten","upbeat","uppity","upset","uptight","used","useful","useless","utopian","utter","uttermost","vacuous","vagabond","vague","valuable","various","vast","vengeful","venomous","verdant","versed","victorious","vigorous","violent","violet","vivacious","voiceless","volatile","voracious","vulgar","wacky","waggish","waiting","","wakeful","wandering","wanting","warlike","warm","wary","wasteful","watery","weak","wealthy","weary","well-groomed","well-made","well-off","well-to-do","wet","whimsical","whispering","white","whole","wholesale","wicked","wide","wide-eyed","wiggly","wild","willing","windy","wiry","wise","wistful","witty","woebegone","" + fields[0] + "ly","wonderful","wooden","woozy","workable","worried","worthless","wrathful","wretched","wrong","wry","xenophobic","yellow","yielding","young","youthful","yummy","zany","zealous","zesty","zippy","zonked"];
const adverbs = ["finally", "additionally", "interestingly", "recently", "importantly", "similarly", "surprisingly", "specifically", "conversely", "consequently", "collectively", "currently", "accordingly", "notably", "subsequently", "previously", "unfortunately", "remarkably", "unexpectedly", "lastly", "strikingly", "secondly", "alternatively", "intriguingly", "generally", "firstly", "italy", "consistently", "initially", "significantly", "traditionally", "ultimately", "histologically", "particularly", "typically", "clinically", "mechanistically", "historically", "simultaneously", "paradoxically", "postoperatively", "concomitantly", "correspondingly", "globally", "presently", "especially", "functionally", "usually", "concurrently", "ideally", "thirdly", "apparently", "immunohistochemically", "microscopically", "clearly", "july", "eventually", "crucially", "fortunately", "occasionally", "increasingly", "histopathologically", "critically", "rarely", "namely", "totally", "normally", "briefly", "theoretically", "frequently", "morphologically", "intraoperatively", "presumably", "actually", "curiously", "experimentally", "obviously", "ultrastructurally", "preoperatively", "conclusively", "classically", "cumulatively", "retrospectively", "commonly", "evidently", "inversely", "behaviorally", "conventionally", "noticeably", "possibly", "statistically", "contrarily", "grossly", "hopefully", "reciprocally", "potentially", "structurally", "essentially", "probably", "radiographically", "separately", "macroscopically", "individually", "physiologically", "biochemically", "lately", "nationally", "approximately", "quantitatively", "radiologically", "uniquely", "incidentally", "comparatively", "concordantly", "qualitatively", "basically", "broadly", "early", "sicily", "pathologically", "internationally", "conceivably", "phylogenetically", "conceptually", "contrastingly", "independently", "intuitively", "analogously", "annually", "equally", "primarily", "arguably", "certainly", "ironically", "originally", "undoubtedly", "mostly", "phenotypically", "family", "secondarily", "specially", "expectedly", "genetically", "prospectively", "encouragingly", "fourthly", "mathematically", "naturally", "worryingly", "unsurprisingly", "anatomically", "characteristically", "differently", "likely", "locally", "reportedly", "technically", "alternately", "respectively", "coincidentally", "counterintuitively", "immediately", "predictably", "unusually", "longitudinally", "methodologically", "practically", "additionaly", "biologically", "sadly", "computationally", "geographically", "molecularly", "precisely", "regrettably", "amazingly", "consequentially", "empirically", "inevitably", "preferably", "spatially", "anecdotally", "evolutionarily", "only", "periodically", "perioperatively", "predominantly", "reassuringly", "serologically", "congruently", "cytologically", "daily", "hypothetically", "intracellularly", "mainly", "regionally", "relatively", "acutely", "assembly", "astonishingly", "behaviourally", "developmentally", "endoscopically", "kelly", "neuropathologically", "overwhelmingly", "principally", "relevantly", "routinely", "serendipitously", "tentatively", "virtually", "concretely", "electrophysiologically", "exceptionally", "exemplarily", "extracellularly", "formally", "formerly", "fundamentally", "gradually", "immunologically", "invariably", "jointly", "largely", "lilly", "logically", "nearly", "operationally", "optimally", "postnatally", "subjectively", "successively", "temporally", "understandably", "admittedly", "analytically", "complementarily", "consecutively", "cytochemically", "dentsply", "epidemiologically", "excitingly", "externally", "histochemically", "immunocytochemically", "impressively", "kinetically", "pathophysiologically", "pharmacologically", "reilly", "systemically", "uncommonly", "alarmingly", "architecturally", "bilaterally", "biomechanically", "centrally", "coincidently", "conservatively", "contemporaneously", "contextually", "disappointingly", "distally", "ecologically", "effectively", "ethnically", "fascinatingly", "histomorphometrically", "immunohistologically", "infrequently", "jelly", "markedly", "neurally", "numerically", "oppositely", "optionally", "physically", "posteriorly", "preclinically", "progressively", "reversely", "suddenly", "summarily", "taxonomically", "therapeutically", "topologically", "unprecedentedly", "anaerobically", "analogically", "angiographically", "antenatally", "atypically", "bailly", "baly", "chemically", "chronically", "chronologically", "commercially", "connolly", "correlatively", "customarily", "elderly", "etiologically", "explicitly", "fittingly", "fortuitously", "implicitly", "indirectly", "intrestingly", "laparoscopically", "latterly", "mechanically", "metrically", "microbiologically", "multivariately", "neurobiologically", "neurophysiologically", "oddly", "ordinarily", "peripherally", "pharmacodynamically", "postprandially", "preliminarily", "proportionally", "randomly", "realistically", "roughly", "scientifically", "scully", "superfamily", "suprisingly", "surgically", "tellingly", "thankfully", "thessaly", "timely", "unpredictably", "visually", "accordantly", "aditionally", "aerobically", "algorithmically", "arthroscopically", "biophysically", "bizarrely", "booly", "chiefly", "clinicopathologically", "coherently", "collaterally", "comprehensively", "considerably", "conspicuously", "continuously", "conversly", "corroboratively", "cytogenetically", "definitely", "demographically", "dfly", "diagnostically", "disconcertingly", "distinctively", "disturbingly", "ectrodactyly", "embryologically", "emotionally", "energetically", "ethically", "geometrically", "hemodynamically", "inexplicably", "informally", "interestedly", "intermittently", "internally", "intraorally", "intrinsically", "iteratively", "jekely", "joly", "lamentably", "luckily", "maternally", "medicinally", "micrencephaly", "minimally", "monthly", "morally", "morphometrically", "multivariably", "neuroanatomically", "neurochemically", "neurologically", "notablely", "opportunely", "orally", "ostensibly", "parallely", "parenthetically", "partially", "partly", "pathogenetically", "peroperatively", "phytogeographically", "postmeiotically", "postsynaptically", "prenatally", "prognostically", "proximally", "psychologically", "psychophysically", "putatively", "puzzlingly", "rapidly", "regretfully", "regularly", "relatedly", "seasonally", "sequentially", "simplistically", "singly", "speculatively", "spindly", "splenomegaly", "spontaneously", "sporadically", "successfully", "superficially", "supposedly", "symptomatically", "systematically", "terminally", "topically", "ultrasonographically", "uniformly", "univariately", "unlikely", "yearly", "aboaly", "acceptably", "accidentally", "acly", "acromegaly", "additionly", "additonally", "advantageously", "adventitiously", "adversely", "advisably", "aesthetically", "aetiologically", "affectively", "allegedly", "anteriorly", "apically", "appropriately", "archaeologically", "arespectively", "bacteriologically", "bareilly", "basally", "beautifully", "beverly", "bioinformatically", "biosynthetically", "bodily", "byerly", "canonically", "causally", "cellularly", "cephalometrically", "clasically", "climatologically", "coincidingly", "comparably", "compatibly", "compellingly", "complimentarily", "concordingly", "concurringly", "conformably", "conjecturally", "connoly", "consquentially", "constitutively", "contradictorily", "controversly", "conversantly", "coronally", "cosmetically", "covalently", "cranially", "culturally", "curiosly", "cytomorphologically", "cytopathologically", "decisively", "delightfully", "densply", "descriptively", "desirably", "dewailly", "dimensionally", "directly", "disappointedly", "distinctly", "dolly", "echographically", "electronically", "electronmicroscopically", "electrophoretically", "emphatically", "endogenously", "endosonographically", "enthrallingly", "enzymatically", "erroneously", "ethnopharmacologically", "evocatively", "exclusively", "expectably", "expectantly", "extragingivally", "extraorally", "extremely", "feasibly", "feraly", "fifthly", "finallly", "findingsinitially", "focally", "frustratingly", "ganguly", "generically", "genomically", "genotypically", "gergely", "gratifyingly", "greely", "gully", "habitually", "happily", "hemperly", "hepatosplenomegaly", "hisologically", "holly", "holoprosencephaly", "hooghly", "identically", "ignificantly", "immuhistochemically", "immunochemically", "immunophenotypically", "inadvertently", "indisputably", "industrially", "inferiorly", "inherently", "inspiringly", "interspecifically", "interstingly", "intialy", "intradurally", "intrahepatically", "intralysosomally", "intraperitonally", "intraspecifically", "intriguinly", "intringuingly", "ipsilaterally", "isely", "karunagappally", "karyologically", "lally", "laterally", "legally", "lily", "literally", "logistically", "lovely", "macropharmacologically", "marginally", "metabolically", "meteorologically", "methodically", "microcephaly", "microregionally", "moberly", "modestly", "muhly", "naively", "nally", "natively", "naturalistically", "neatly", "nomenclaturally", "noteworthily", "nouzilly", "nutritionally", "objectively", "observationally", "oceanographically", "ontogenetically", "ontogenically", "ophthalmoscopically", "optically", "orly", "osmotically", "outstandingly", "pathohistologically", "pathomorphologically", "perceptually", "perinatally", "perioperaively", "peroperativly", "perplexingly", "pertinently", "pharmacokinetically", "phenomenologically", "philly", "philosophically", "phongsaly", "phylogenitically", "phylogentically", "phytochemically", "pivotally", "plausibly", "positionally", "postauricularly", "postsurgically", "pragmatically", "preauricularly", "preferentially", "premenstrually", "problematically", "prominently", "promisingly", "proportionately", "provisionally", "proximately", "prudently", "quickly", "rahilly", "rationally", "really", "reassembly", "recurrently", "renomegaly", "repressingly", "resultantly", "resultspreviously", "revealingly", "rheologically", "rhetorically", "scilly", "seemingly", "selectively", "semiannually", "sequently", "shortly", "simulteneously", "socially", "socioeconomically", "spectacularly", "spectroscopically", "startlingly", "steadily", "strangely", "subcellularly", "substantially", "substantively", "suggestively", "summatively", "superiorly", "supply", "surely", "synchronously", "syntactically", "synthetically", "technologically", "temporarily", "thermodynamically", "thoracically", "tinctorially", "transmurally", "tribally", "trivially", "ultrascructurally", "ultrasonically", "ultrastructually", "undeniably", "undesirably", "unequivocally", "unexplainably", "unfortunatly", "unintentionally", "univariably", "universally", "unknowingly", "unquestionably", "untypically", "utrastructurally", "wailly", "weekly", "wessely", "whitely", "willy", "worrisomely"];
const prepositions = ["aboard","about","above","across","after","against","along","amid","among","around","as","at","before","behind","below","beneath","beside","between","beyond","but","by","concerning","considering","despite","down","during","except","except","following","for","from","in","inside","into","like","minus","near","next","of","off","on","onto","opposite","out","outside","over","past","per","plus","regarding","round","save","since","than","through","to","toward","under","underneath","unlike","until","up","upon","versus","via","with","within","without"];
const conjunctions = ["for","and","nor","but","or","yet","so","after","although","as","as if","as long as","as much as","as soon as","as far as","as though","by the time","in as much as","inasmuch","in order to","in order that","in case","lest","though","now that","now since","now when","now","even if","even","even though","provided","provide that","if","if then","if when","if only","just as","where","wherever","whereas","where if","whether","since","because","whose","whoever","unless","while","before","why","so that","until","how","since","than","till","whenever","supposing","when","or not","what"];
const interjections = ["ow", "ouch", "boo", "ick", "yuck", "ugh", "shoot", "whoops", "rats", "gosh", "goodness", "yay", "yippee", "cheers", "congratulations", "oh well", "oh no", "eek", "yikes"];
let wordIndex = -1;
function generateStory() {
generateFieldsArray();
for(let i = 0; i < fields.length; i++) {
console.log("Field " + i + ": " + fields[i]);
}
console.log("Button click registered to generate story.");
let output = (
"There was once a " + fields[0] + " who was very, very " + fields[6] + ", though " + fields[3] + " had little " + fields[11] + " make " + fields[2] + " so; for " + fields[3] + " was old, " + fields[12] + " poor, " + fields[12] + " lonely. " + fields[3] + " lived " + fields[10] + " a little bit of a cottage " + fields[12] + " earned a scant living by running errands " + fields[13] + " her neighbours, getting a bite here, a sup there, as reward " + fields[13] + " her services. So " + fields[3] + " made shift " + fields[11] + " get on, " + fields[12] + " always looked as spry " + fields[12] + " cheery as if " + fields[3] + " had not a want " + fields[10] + " the world. " +
"Now one summer evening, as " + fields[3] + " was " + fields[4] + ", full of smiles as ever, along the high road " + fields[11] + " " + fields[2] + " hovel, what should " + fields[3] + " see but a big black pot lying " + fields[10] + " the ditch! " +
"\"Goodness me!\" " + fields[3] + " cried, \"that would be just the very thing " + fields[13] + " me if I only had something " + fields[11] + " put " + fields[10] + " it! But I haven't! Now who could have left it " + fields[10] + " the ditch?\" " +
"And " + fields[3] + " looked about her expecting the owner would not be far off; but " + fields[3] + " could see nobody. " +
"\"Maybe there is a hole " + fields[10] + " it,\" " + fields[3] + " went on, \"" + fields[12] + " that's why it has been cast away. But it would do fine " + fields[11] + " put a flower " + fields[10] + " " + fields[13] + " my window; " + fields[8] + " I'll just take it home with me.\" " +
"" + fields[12] + " with that " + fields[3] + " lifted the lid " + fields[12] + " looked inside. \"Mercy me!\" " + fields[3] + " cried, fair amazed. \"If it isn't full of gold pieces. Here's luck!\" " +
"" + fields[12] + " " + fields[8] + " it was, brimful of great gold coins. " + fields[14] + ", at first " + fields[3] + " simply stood stock-still, wondering if " + fields[3] + " was standing on her head or her heels. Then " + fields[3] + " began saying: " +
"\"Lawks! But I do feel rich. I feel awful rich!\" " +
"After " + fields[3] + " had said this many times, " + fields[3] + " began " + fields[11] + " wonder how " + fields[3] + " was " + fields[11] + " get " + fields[2] + " treasure home. It was too heavy " + fields[13] + " her " + fields[11] + " carry, and " + fields[3] + " could see no better way than " + fields[11] + " tie the end of her shawl " + fields[11] + " it " + fields[12] + " drag it behind her like a go-cart. " +
"\"It will soon be dark,\" " + fields[3] + " said " + fields[11] + " " + fields[2] + " as " + fields[3] + " " + fields[4] + " along. \"So much the better! The neighbours will not see what I'm bringing home, " + fields[12] + " I shall have all the night " + fields[11] + " myself, " + fields[12] + " be able " + fields[11] + " think what I'll do! Mayhap I'll buy a gr" + fields[12] + " house " + fields[12] + " just sit by the fire with a cup o' tea " + fields[12] + " do no work at all like a queen. Or maybe I'll bury it at the garden foot " + fields[12] + " just keep a bit " + fields[10] + " the old china teapot on the chimney-piece. Or maybe—Goody! Goody! I feel that gr" + fields[12] + " I don't know myself.\" " +
"By this time " + fields[3] + " was a bit " + fields[7] + "of " + fields[5] + " such a heavy weight, and, stopping " + fields[11] + " rest a while, turned " + fields[11] + " look at " + fields[2] + " treasure. " +
"" + fields[12] + " lo! it wasn't a pot of gold at all! It was nothing but a lump of silver. " +
"She stared at it, " + fields[12] + " rubbed her eyes, " + fields[12] + " stared at it again. " +
"\"" + fields[15] + "! I never!\" " + fields[3] + " said at last. \"" + fields[12] + " me " + fields[5] + " it was a pot of gold! I must have been dreaming. But this is luck! Silver is far less trouble—easier " + fields[11] + " mind, " + fields[12] + " not " + fields[8] + " easy stolen. Them gold pieces would have been the death o' me, " + fields[12] + " with this great lump of silver—\" " +
"So " + fields[3] + " went off again planning what " + fields[3] + " would do, " + fields[12] + " feeling as rich as rich, until becoming a bit " + fields[7] + "again " + fields[3] + " stopped " + fields[11] + " rest " + fields[12] + " gave a look round " + fields[11] + " see if her treasure was safe; and " + fields[3] + " saw nothing but a great lump of iron! " +
"\"" + fields[14] + "! I never!\" says " + fields[3] + " again. \"" + fields[12] + " I mistaking it " + fields[13] + " silver! I must have been dreaming. But this is luck! It's real convenient. I can get penny pieces " + fields[13] + " old iron, " + fields[12] + " penny pieces are a deal handier " + fields[13] + " me than your gold " + fields[12] + " silver. Why! I should never have slept a wink " + fields[13] + " fear of being robbed. But a penny piece comes " + fields[10] + " useful, " + fields[12] + " I shall sell that iron " + fields[13] + " a lot " + fields[12] + " be real rich—rolling rich.\" " +
"So on " + fields[3] + " " + fields[4] + " full of plans as " + fields[11] + " how " + fields[3] + " would spend her penny pieces, till once more " + fields[3] + " stopped " + fields[11] + " rest " + fields[12] + " looked round " + fields[11] + " see her treasure was safe. " + fields[12] + " this time " + fields[3] + " saw nothing but a big stone. " +
"\"" + fields[15] + "! I never!\" " + fields[3] + " cried, full of smiles. \"" + fields[12] + " " + fields[11] + " think I mistook it " + fields[13] + " iron. I must have been dreaming. But here's luck indeed, " + fields[12] + " me wanting a stone terrible bad " + fields[11] + " stick open the gate. Eh my! but it's a change " + fields[13] + " the better! It's a fine thing " + fields[11] + " have good luck.\" " +
"So, all " + fields[10] + " a hurry " + fields[11] + " see how the stone would keep the gate open, " + fields[3] + " " + fields[4] + " off down the hill till " + fields[3] + " came " + fields[11] + " her own cottage. " + fields[3] + " unlatched the gate " + fields[12] + " then turned " + fields[11] + " unfasten her shawl from the stone which lay on the path behind her. Aye! It was a stone sure enough. There was plenty light " + fields[11] + " see it lying there, douce " + fields[12] + " peaceable as a stone should. " +
"So " + fields[3] + " bent over it " + fields[11] + " unfasten the shawl end, when—\"Oh my!\" All of a sudden it gave a jump, a squeal, " + fields[12] + " " + fields[10] + " one moment was as big as a haystack. Then it let down four great lanky legs " + fields[12] + " threw " + fields[9] + " two long ears, nourished a great long tail " + fields[12] + " romped off, kicking " + fields[12] + " squealing " + fields[12] + " whinnying " + fields[12] + " laughing like a naughty, mischievous boy! " +
"The old " + fields[0] + " stared after it till it was fairly " + fields[9] + " of sight, then " + fields[3] + " burst " + fields[9] + " laughing too. " +
"\"" + fields[14] + "!\" " + fields[3] + " chuckled, \"I am " + fields[10] + " luck! Quite the luckiest body hereabouts. Fancy my seeing the " + fields[1] + " all " + fields[11] + " myself; " + fields[12] + " making myself " + fields[8] + " free with it too! My goodness! I do feel that uplifted—that GRAND!\" " +
"So " + fields[3] + " went into " + fields[2] + " cottage " + fields[12] + " spent the evening " + fields[5] + " over " + fields[2] + " good luck."
);
console.log(output);
document.getElementById("output").innerHTML = output;
}
function generateFieldsArray() {
for(let i = 0; i < formFields.length - 2; i++) {
if(formFields[i].value === "") {
fields[i] = getRandomWord(i);
formFields[i].value = fields[i];
} else {
fields[i] = formFields[i].value;
}
}
}
function getRandomWord(index) {
switch(index) {
case 0:
case 1:
return nouns[getRandomInt(nouns)];
case 2:
case 3:
return pronouns[getRandomInt(pronouns)];
case 4:
case 5:
return verbs[getRandomInt(verbs)];
case 6:
case 7:
return adjectives[getRandomInt(adjectives)];
case 8:
case 9:
return adverbs[getRandomInt(adverbs)];
case 10:
case 11:
return prepositions[getRandomInt(prepositions)];
case 12:
case 13:
return conjunctions[getRandomInt(conjunctions)];
case 14:
case 15:
return interjections[getRandomInt(interjections)];
}
return "";
}
function getRandomInt(array) {
let min = 0;
let max = array.length;
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min) + min);
}
function clearAndSet() {
for(let i = 0; i < formFields.length - 2; i++) {
formFields[i].value = "";
fields[i] = "";
}
document.getElementById("output").innerHTML = ""
}