Skip to content

Instantly share code, notes, and snippets.

@pdxmph
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdxmph/d8c076c58b79b7804d18 to your computer and use it in GitHub Desktop.
Save pdxmph/d8c076c58b79b7804d18 to your computer and use it in GitHub Desktop.
Sprint Animal Namerator
#!/usr/bin/ruby
require 'sentimental'
require 'sinatra'
require 'searchbing'
#sprint_letter = ARGV[0]
Sentimental.load_defaults
Sentimental.threshold = 0.5
analyzer = Sentimental.new
sentiment = ""
sentiment_count = 0
def make_a_name(letter)
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",
"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",
"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",
"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",
"womanly",
"wonderful",
"wooden",
"woozy",
"workable",
"worried",
"worthless",
"wrathful",
"wretched",
"wrong",
"wry",
"xenophobic",
"yellow",
"yielding",
"young",
"youthful",
"yummy",
"zombiefied",
"zealous",
"zany",
"zeroed"]
animals = ["abyssinian",
"adelie penguin",
"affenpinscher",
"afghan hound",
"african bush elephant",
"african civet",
"african clawed frog",
"african forest elephant",
"african palm civet",
"african penguin",
"african tree toad",
"african wild dog",
"ainu dog",
"airedale terrier",
"akbash",
"akita",
"alaskan malamute",
"albatross",
"aldabra giant tortoise",
"alligator",
"alpine dachsbracke",
"american bulldog",
"american cocker spaniel",
"american coonhound",
"american eskimo dog",
"american foxhound",
"american pit bull terrier",
"american staffordshire terrier",
"american water spaniel",
"anatolian shepherd dog",
"angelfish",
"ant",
"anteater",
"antelope",
"appenzeller dog",
"arctic fox",
"arctic hare",
"arctic wolf",
"armadillo",
"asian elephant",
"asian giant hornet",
"asian palm civet",
"asiatic black bear",
"australian cattle dog",
"australian kelpie dog",
"australian mist",
"australian shepherd",
"australian terrier",
"avocet",
"axolotl",
"aye aye",
"baboon",
"bactrian camel",
"badger",
"balinese",
"banded palm civet",
"bandicoot",
"barb",
"barn owl",
"barnacle",
"barracuda",
"basenji dog",
"basking shark",
"basset hound",
"bat",
"bavarian mountain hound",
"beagle",
"bear",
"bearded collie",
"bearded dragon",
"beaver",
"bedlington terrier",
"beetle",
"bengal tiger",
"bernese mountain dog",
"bichon frise",
"binturong",
"bird",
"birds of paradise",
"birman",
"bison",
"black bear",
"black rhinoceros",
"black russian terrier",
"black widow spider",
"bloodhound",
"blue lacy dog",
"blue whale",
"bluetick coonhound",
"bobcat",
"bolognese dog",
"bombay",
"bongo",
"bonobo",
"booby",
"border collie",
"border terrier",
"bornean orang-utan",
"borneo elephant",
"boston terrier",
"bottle nosed dolphin",
"boxer dog",
"boykin spaniel",
"brazilian terrier",
"brown bear",
"budgerigar",
"buffalo",
"bull mastiff",
"bull shark",
"bull terrier",
"bulldog",
"bullfrog",
"bumble bee",
"burmese",
"burrowing frog",
"butterfly",
"butterfly fish",
"caiman",
"caiman lizard",
"cairn terrier",
"camel",
"canaan dog",
"capybara",
"caracal",
"carolina dog",
"cassowary",
"cat",
"caterpillar",
"catfish",
"cavalier king charles spaniel",
"centipede",
"cesky fousek",
"chameleon",
"chamois",
"cheetah",
"chesapeake bay retriever",
"chicken",
"chihuahua",
"chimpanzee",
"chinchilla",
"chinese crested dog",
"chinook",
"chinstrap penguin",
"chipmunk",
"chow chow",
"cichlid",
"clouded leopard",
"clown fish",
"clumber spaniel",
"coati",
"cockroach",
"collared peccary",
"collie",
"common buzzard",
"common frog",
"common loon",
"common toad",
"coral",
"cottontop tamarin",
"cougar",
"cow",
"coyote",
"crab",
"crab-eating macaque",
"crane",
"crested penguin",
"crocodile",
"cross river gorilla",
"curly coated retriever",
"cuscus",
"cuttlefish",
"dachshund",
"dalmatian",
"darwin's frog",
"deer",
"desert tortoise",
"deutsche bracke",
"dhole",
"dingo",
"discus",
"doberman pinscher",
"dodo",
"dog",
"dogo argentino",
"dogue de bordeaux",
"dolphin",
"donkey",
"dormouse",
"dragonfly",
"drever",
"duck",
"dugong",
"dunker",
"dusky dolphin",
"dwarf crocodile",
"eagle",
"earwig",
"eastern gorilla",
"eastern lowland gorilla",
"echidna",
"edible frog",
"egyptian mau",
"electric eel",
"elephant",
"elephant seal",
"elephant shrew",
"emperor penguin",
"emperor tamarin",
"emu",
"english cocker spaniel",
"english shepherd",
"english springer spaniel",
"entlebucher mountain dog",
"epagneul pont audemer",
"eskimo dog",
"estrela mountain dog",
"falcon",
"fennec fox",
"ferret",
"field spaniel",
"fin whale",
"finnish spitz",
"fire-bellied toad",
"fish",
"fishing cat",
"flamingo",
"flat coat retriever",
"flounder",
"fly",
"flying squirrel",
"fossa",
"fox",
"fox terrier",
"french bulldog",
"frigatebird",
"frilled lizard",
"frog",
"fur seal",
"galapagos penguin",
"galapagos tortoise",
"gar",
"gecko",
"gentoo penguin",
"geoffroys tamarin",
"gerbil",
"german pinscher",
"german shepherd",
"gharial",
"giant african land snail",
"giant clam",
"giant panda bear",
"giant schnauzer",
"gibbon",
"gila monster",
"giraffe",
"glass lizard",
"glow worm",
"goat",
"golden lion tamarin",
"golden oriole",
"golden retriever",
"goose",
"gopher",
"gorilla",
"grasshopper",
"great dane",
"great white shark",
"greater swiss mountain dog",
"green bee-eater",
"greenland dog",
"grey mouse lemur",
"grey reef shark",
"grey seal",
"greyhound",
"grizzly bear",
"grouse",
"guinea fowl",
"guinea pig",
"guppy",
"hammerhead shark",
"hamster",
"hare",
"harrier",
"havanese",
"hedgehog",
"hercules beetle",
"hermit crab",
"heron",
"highland cattle",
"himalayan",
"hippopotamus",
"honey bee",
"horn shark",
"horned frog",
"horse",
"horseshoe crab",
"howler monkey",
"human",
"humboldt penguin",
"hummingbird",
"humpback whale",
"hyena",
"ibis",
"ibizan hound",
"iguana",
"impala",
"indian elephant",
"indian palm squirrel",
"indian rhinoceros",
"indian star tortoise",
"indochinese tiger",
"indri",
"insect",
"irish setter",
"irish wolfhound",
"jack russel",
"jackal",
"jaguar",
"japanese chin",
"japanese macaque",
"javan rhinoceros",
"javanese",
"jellyfish",
"kakapo",
"kangaroo",
"keel billed toucan",
"killer whale",
"king crab",
"king penguin",
"kingfisher",
"kiwi",
"koala",
"komodo dragon",
"kudu",
"labradoodle",
"labrador retriever",
"ladybird",
"leaf-tailed gecko",
"lemming",
"lemur",
"leopard",
"leopard cat",
"leopard seal",
"leopard tortoise",
"liger",
"lion",
"lionfish",
"little penguin",
"lizard",
"llama",
"lobster",
"long-eared owl",
"lynx",
"macaroni penguin",
"macaw",
"magellanic penguin",
"magpie",
"maine coon",
"malayan civet",
"malayan tiger",
"maltese",
"manatee",
"mandrill",
"manta ray",
"marine toad",
"markhor",
"marsh frog",
"masked palm civet",
"mastiff",
"mayfly",
"meerkat",
"millipede",
"minke whale",
"mole",
"molly",
"mongoose",
"mongrel",
"monitor lizard",
"monkey",
"monte iberia eleuth",
"moorhen",
"moose",
"moray eel",
"moth",
"mountain gorilla",
"mountain lion",
"mouse",
"mule",
"neanderthal",
"neapolitan mastiff",
"newfoundland",
"newt",
"nightingale",
"norfolk terrier",
"norwegian forest",
"numbat",
"nurse shark",
"o",
"ocelot",
"octopus",
"okapi",
"old english sheepdog",
"olm",
"opossum",
"orang-utan",
"ostrich",
"otter",
"oyster",
"pademelon",
"panther",
"parrot",
"patas monkey",
"peacock",
"pekingese",
"pelican",
"penguin",
"persian",
"pheasant",
"pied tamarin",
"pig",
"pika",
"pike",
"pink fairy armadillo",
"piranha",
"platypus",
"pointer",
"poison dart frog",
"polar bear",
"pond skater",
"poodle",
"pool frog",
"porcupine",
"possum",
"prawn",
"proboscis monkey",
"puffer fish",
"puffin",
"pug",
"puma",
"purple emperor",
"puss moth",
"pygmy hippopotamus",
"pygmy marmoset",
"quail",
"quetzal",
"quokka",
"quoll",
"rabbit",
"raccoon",
"raccoon dog",
"radiated tortoise",
"ragdoll",
"rat",
"rattlesnake",
"red knee tarantula",
"red panda",
"red wolf",
"red-handed tamarin",
"reindeer",
"rhinoceros",
"river dolphin",
"river turtle",
"robin",
"rock hyrax",
"rockhopper penguin",
"roseate spoonbill",
"rottweiler",
"royal penguin",
"russian blue",
"sabre-toothed tiger",
"saint bernard",
"salamander",
"sand lizard",
"saola",
"scorpion",
"scorpion fish",
"sea dragon",
"sea lion",
"sea otter",
"sea slug",
"sea squirt",
"sea turtle",
"sea urchin",
"seahorse",
"seal",
"serval",
"sheep",
"shih tzu",
"shrimp",
"siamese",
"siamese fighting fish",
"siberian",
"siberian husky",
"siberian tiger",
"silver dollar",
"skunk",
"sloth",
"slow worm",
"snail",
"snake",
"snapping turtle",
"snowshoe",
"snowy owl",
"somali",
"south china tiger",
"spadefoot toad",
"sparrow",
"spectacled bear",
"sperm whale",
"spider monkey",
"spiny dogfish",
"sponge",
"squid",
"squirrel",
"squirrel monkey",
"sri lankan elephant",
"staffordshire bull terrier",
"stag beetle",
"starfish",
"stellers sea cow",
"stick insect",
"stingray",
"stoat",
"striped rocket frog",
"sumatran elephant",
"sumatran orang-utan",
"sumatran rhinoceros",
"sumatran tiger",
"sun bear",
"swan",
"tang",
"tapir",
"tarsier",
"tasmanian devil",
"tawny owl",
"termite",
"tetra",
"thorny devil",
"tibetan mastiff",
"tiffany",
"tiger",
"tiger salamander",
"tiger shark",
"tortoise",
"toucan",
"tree frog",
"tropicbird",
"tuatara",
"turkey",
"turkish angora",
"uakari",
"uguisu",
"umbrellabird",
"vampire bat",
"vervet monkey",
"vulture",
"wallaby",
"walrus",
"warthog",
"wasp",
"water buffalo",
"water dragon",
"water vole",
"weasel",
"welsh corgi",
"west highland terrier",
"western gorilla",
"western lowland gorilla",
"whale shark",
"whippet",
"white faced capuchin",
"white rhinoceros",
"white tiger",
"wild boar",
"wildebeest",
"wolf",
"wolverine",
"wombat",
"woodlouse",
"woodpecker",
"woolly mammoth",
"woolly monkey",
"wrasse",
"x-ray tetra",
"yak",
"yellow-eyed penguin",
"yorkshire terrier",
"zebra",
"zebra shark",
"zebu",
"zonkey",
"zorse"]
analyzer = Sentimental.new
sprint_animals = animals.select { |animal| animal[0] == letter }
sprint_adjectives = adjectives.select { |adjective| adjective[0] == letter && (analyzer.get_sentiment adjective).to_s == "negative"}
animal = sprint_animals.sample
adjective = sprint_adjectives.sample
sprint_name = "#{adjective} #{animal}"
return sprint_name
end
def check_sentiment(sprint_name)
analyzer = Sentimental.new
sentiment = (analyzer.get_sentiment sprint_name).to_s
return sentiment
end
set :bind, '0.0.0.0'
get '/:sprint_letter' do
sprint_name = make_a_name(params[:sprint_letter])
bing_image = Bing.new('', 1, 'Image')
bing_results = bing_image.search(sprint_name)
img_url = bing_results[0][:Image][0][:MediaUrl]
"<h1>#{sprint_name}</h1> <br /><img src='#{img_url}' width='500' />"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment