-
-
Save Bradleykingz/c2bb3486a86374f0f0f0f9d3011fd234 to your computer and use it in GitHub Desktop.
Alphabetized, removed all occurrences of 'list'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aardvark | |
Aardwolf | |
African Buffalo | |
African Elephant | |
African Leopard | |
Albatross | |
Alligator | |
Alpaca | |
Alpaca | |
American Buffalo (bison) | |
American Robin | |
Amphibian | |
Anaconda | |
Angelfish | |
Anglerfish | |
Ant | |
Anteater | |
Antelope | |
Antlion | |
Ape | |
Aphid | |
Arabian Leopard | |
Arctic Fox | |
Arctic Wolf | |
Armadillo | |
Arrow Crab | |
Asp | |
Ass (donkey) | |
Baboon | |
Badger | |
Bald Eagle | |
Bali Cattle | |
Bandicoot | |
Barnacle | |
Barracuda | |
Basilisk | |
Bass | |
Bat | |
Beaked Whale | |
Bear | |
Beaver | |
Bedbug | |
Bee | |
Beetle | |
Bird | |
Bison | |
Black Panther | |
Black Widow Spider | |
Blackbird | |
Blue Bird | |
Blue Jay | |
Blue Whale | |
Boa | |
Boar | |
Bobcat | |
Bobolink | |
Bonobo | |
Booby | |
Bovid | |
Box Jellyfish | |
Buffalo, African | |
Buffalo, American (bison) | |
Bug | |
Butterfly | |
Buzzard | |
Camel | |
Canid | |
Canidae | |
Cape Buffalo | |
Capybara | |
Cardinal | |
Caribou | |
Carp | |
Cat | |
Cat | |
Cat | |
Caterpillar | |
Catfish | |
Catshark | |
Cattle | |
Cattle | |
Cattle | |
Centipede | |
Cephalopod | |
Chameleon | |
Cheetah | |
Chickadee | |
Chicken | |
Chicken | |
Chicken Breeds | |
Chimpanzee | |
Chinchilla | |
Chipmunk | |
Cicada | |
Clam | |
Clownfish | |
Cobra | |
Cockroach | |
Cod | |
Common Household Pests | |
Common Names of Poisonous Animals | |
Condor | |
Constrictor | |
Coral | |
Cougar | |
Cow | |
Coyote | |
Crab | |
Crane | |
Crane Fly | |
Crawdad | |
Crayfish | |
Cricket | |
Crocodile | |
Crow | |
Cuckoo | |
Damselfly | |
Deer | |
Dingo | |
Dinosaur | |
Dog | |
Dog | |
Dog | |
Dolphin | |
Domestic Bactrian Camel | |
Domestic Canary | |
Domestic Dromedary Camel | |
Domestic Duck | |
Domestic Goat | |
Domestic Goose | |
Domestic Guineafowl | |
Domestic Hedgehog | |
Domestic Pig | |
Domestic Pigeon | |
Domestic Rabbit | |
Domestic Silkmoth | |
Domestic Silver Fox | |
Domestic Turkey | |
Donkey | |
Donkey | |
Donkey | |
Dormouse | |
Dove | |
Dragon | |
Dragonfly | |
Duck | |
Duck Breeds | |
Dung Beetle | |
Eagle | |
Earthworm | |
Earwig | |
Echidna | |
Eel | |
Egret | |
Elephant | |
Elephant Seal | |
Elk | |
Emu | |
English Pointer | |
Ermine | |
Falcon | |
Fancy Mouse | |
Fancy Rat | |
Fancy Rat Varieties | |
Felidae | |
Ferret | |
Ferret | |
Finch | |
Firefly | |
Fish | |
Flamingo | |
Flea | |
Fly | |
Flyingfish | |
Fowl | |
Fox | |
Frog | |
Fruit Bat | |
Galliform | |
Gamefowl | |
Gayal | |
Gazelle | |
Gecko | |
Gerbil | |
Giant Panda | |
Giant Squid | |
Gibbon | |
Gila Monster | |
Giraffe | |
Goat | |
Goat | |
Goldfish | |
Goldfish | |
Goose | |
Goose Breeds | |
Gopher | |
Gorilla | |
Grasshopper | |
Great Blue Heron | |
Great White Shark | |
Grizzly Bear | |
Ground Shark | |
Ground Sloth | |
Grouse | |
Guan | |
Guanaco | |
Guinea Pig | |
Guinea Pig | |
Guinea Pig | |
Guineafowl | |
Gull | |
Guppy | |
Guppy | |
Haddock | |
Halibut | |
Hammerhead Shark | |
Hamster | |
Hare | |
Harrier | |
Hawk | |
Hedgehog | |
Hermit Crab | |
Heron | |
Herring | |
Hippopotamus | |
Hookworm | |
Hornet | |
Horse | |
Horse | |
Horse | |
Hoverfly | |
Hummingbird | |
Humpback Whale | |
Hyena | |
Iguana | |
Impala | |
Irukandji Jellyfish | |
Jackal | |
Jaguar | |
Jay | |
Jellyfish | |
Junglefowl | |
Kangaroo | |
Kangaroo Mouse | |
Kangaroo Rat | |
Kingfisher | |
Kite | |
Kiwi | |
Koala | |
Koi | |
Koi | |
Komodo Dragon | |
Krill | |
Lab Rat | |
Ladybug | |
Lamprey | |
Land Snail | |
Landfowl | |
Lark | |
Leech | |
Lemming | |
Lemur | |
Leopard | |
Leopon | |
Limpet | |
Lion | |
Lizard | |
Llama | |
Llama | |
Lobster | |
Locust | |
Loon | |
Louse | |
Lungfish | |
Lynx | |
Macaw | |
Mackerel | |
Magpie | |
Mammal | |
Manatee | |
Mandrill | |
Manta Ray | |
Marlin | |
Marmoset | |
Marmot | |
Marsupial | |
Marten | |
Mastodon | |
Meadowlark | |
Meerkat | |
Mink | |
Minnow | |
Mite | |
Mockingbird | |
Mole | |
Mollusk | |
Mongoose | |
Monitor Lizard | |
Monkey | |
Moose | |
Mosquito | |
Moth | |
Mountain Goat | |
Mouse | |
Mule | |
Muskox | |
Narwhal | |
New World Quail | |
Newt | |
Nightingale | |
Ocelot | |
Octopus | |
Old World Quail | |
Opossum | |
Orangutan | |
Orca | |
Ostrich | |
Otter | |
Owl | |
Ox | |
Panda | |
Panther | |
Panthera Hybrid | |
Parakeet | |
Parrot | |
Parrotfish | |
Partridge | |
Peacock | |
Peafowl | |
Pelican | |
Penguin | |
Perch | |
Peregrine Falcon | |
Pheasant | |
Pig | |
Pig | |
Pigeon | |
Pigeon Breeds | |
Pike | |
Pilot Whale | |
Pinniped | |
Piranha | |
Planarian | |
Platypus | |
Polar Bear | |
Pony | |
Porcupine | |
Porpoise | |
Portuguese Man O' War | |
Possum | |
Prairie Dog | |
Prawn | |
Praying Mantis | |
Primate | |
Ptarmigan | |
Puffin | |
Puma | |
Python | |
Quail | |
Quelea | |
Quokka | |
Rabbit | |
Rabbit | |
Raccoon | |
Rainbow Trout | |
Rat | |
Rattlesnake | |
Raven | |
Ray (batoidea) | |
Ray (rajiformes) | |
Red Panda | |
Reindeer | |
Reptile | |
Rhinoceros | |
Right Whale | |
Ringneck Dove | |
Roadrunner | |
Rodent | |
Rook | |
Rooster | |
Roundworm | |
Saber-toothed Cat | |
Sailfish | |
Salamander | |
Salmon | |
Sawfish | |
Scale Insect | |
Scallop | |
Scorpion | |
Sea Lion | |
Sea Slug | |
Sea Snail | |
Seahorse | |
Shark | |
Sheep | |
Sheep | |
Sheep Breeds | |
Shrew | |
Shrimp | |
Siamese Fighting Fish | |
Silkworm | |
Silverfish | |
Skink | |
Skunk | |
Sloth | |
Slug | |
Smelt | |
Snail | |
Snake | |
Snipe | |
Snow Leopard | |
Society Finch | |
Sockeye Salmon | |
Sole | |
Sparrow | |
Sperm Whale | |
Spider | |
Spider Monkey | |
Spoonbill | |
Squid | |
Squirrel | |
Star-nosed Mole | |
Starfish | |
Steelhead Trout | |
Stingray | |
Stoat | |
Stork | |
Sturgeon | |
Sugar Glider | |
Swallow | |
Swan | |
Swift | |
Swordfish | |
Swordtail | |
Tahr | |
Takin | |
Tapir | |
Tarantula | |
Tarsier | |
Tasmanian Devil | |
Termite | |
Tern | |
Thrush | |
Tick | |
Tiger | |
Tiger Shark | |
Tiglon | |
Toad | |
Tortoise | |
Toucan | |
Trapdoor Spider | |
Tree Frog | |
Trout | |
Tuna | |
Turkey | |
Turkey Breeds | |
Turtle | |
Tyrannosaurus | |
Urial | |
Vampire Bat | |
Vampire Squid | |
Vicuna | |
Viper | |
Vole | |
Vulture | |
Wallaby | |
Walrus | |
Warbler | |
Wasp | |
Water Boa | |
Water Buffalo | |
Water Buffalo | |
Water Buffalo Breeds | |
Weasel | |
Whale | |
Whippet | |
Whitefish | |
Whooping Crane | |
Wildcat | |
Wildebeest | |
Wildfowl | |
Wolf | |
Wolverine | |
Wombat | |
Woodpecker | |
Worm | |
Wren | |
X-ray Fish | |
Xerinae | |
Yak | |
Yak | |
Yellow Perch | |
Zebra | |
Zebra Finch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'text' | |
require 'text/hyphen' | |
animals = open("animals.txt").read.split("\n").select{|w| w.split(" ").length == 1} | |
@ans = animals.collect{|a| [a,Text::Metaphone.double_metaphone(a)[0]]} | |
@en = Text::Hyphen.new(:left => 0, :right => 0) | |
def animalize_word word | |
parts = @en.visualize(word).split(/-/) | |
parts_with_phone = parts.collect{|p| [p,Text::Metaphone.double_metaphone(p)[0]]} | |
rhymed_parts = parts_with_phone.collect do |part| | |
@ans.select{|a| a[1] == part[1]} | |
end | |
replaceable_parts = [] | |
rhymed_parts.each_with_index do |part, i| | |
if !part.empty? | |
puts part.inspect | |
puts | |
replaceable_parts << [i, part.sample[0]] | |
end | |
end | |
results = [] | |
replaceable_parts.each do |index, part| | |
name = [] | |
parts.each_with_index do |word, i| | |
if i == index | |
name << part | |
else | |
name << word | |
end | |
end | |
results << name.join("") | |
end | |
return results | |
end | |
def generate_animal_name name | |
parts = name.split(/\s/) | |
part_options = {} | |
parts.each do |part| | |
part_options[part] = animalize_word(part) | |
end | |
output = [] | |
part_options.each do |word, animalizations| | |
animalizations.each do |animal| | |
result = [] | |
parts.each do |part| | |
if part == word | |
result << animal | |
else | |
result << part | |
end | |
end | |
output << result.join(" ") | |
end | |
end | |
output | |
end | |
puts generate_animal_name(ARGV[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment