Skip to content

Instantly share code, notes, and snippets.

@atduskgreg
Created June 20, 2016 23:40
  • Star 94 You must be signed in to star a gist
  • Fork 30 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save atduskgreg/3cf8ef48cb0d29cf151bedad81553a54 to your computer and use it in GitHub Desktop.
Canidae
Felidae
Cat
Cattle
Dog
Donkey
Goat
Guinea pig
Horse
Pig
Rabbit
Fancy rat varieties
laboratory rat strains
Sheep breeds
Water buffalo breeds
Chicken breeds
Duck breeds
Goose breeds
Pigeon breeds
Turkey breeds
Aardvark
Aardwolf
African buffalo
African elephant
African leopard
Albatross
Alligator
Alpaca
American buffalo (bison)
American robin
Amphibian
list
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
Bandicoot
Barnacle
Barracuda
Basilisk
Bass
Bat
Beaked whale
Bear
list
Beaver
Bedbug
Bee
Beetle
Bird
list
Bison
Blackbird
Black panther
Black widow spider
Blue bird
Blue jay
Blue whale
Boa
Boar
Bobcat
Bobolink
Bonobo
Booby
Box jellyfish
Bovid
Buffalo, African
Buffalo, American (bison)
Bug
Butterfly
Buzzard
Camel
Canid
Cape buffalo
Capybara
Cardinal
Caribou
Carp
Cat
list
Catshark
Caterpillar
Catfish
Cattle
list
Centipede
Cephalopod
Chameleon
Cheetah
Chickadee
Chicken
list
Chimpanzee
Chinchilla
Chipmunk
Clam
Clownfish
Cobra
Cockroach
Cod
Condor
Constrictor
Coral
Cougar
Cow
Coyote
Crab
Crane
Crane fly
Crawdad
Crayfish
Cricket
Crocodile
Crow
Cuckoo
Cicada
Damselfly
Deer
Dingo
Dinosaur
list
Dog
list
Dolphin
Donkey
list
Dormouse
Dove
Dragonfly
Dragon
Duck
list
Dung beetle
Eagle
Earthworm
Earwig
Echidna
Eel
Egret
Elephant
Elephant seal
Elk
Emu
English pointer
Ermine
Falcon
Ferret
Finch
Firefly
Fish
Flamingo
Flea
Fly
Flyingfish
Fowl
Fox
Frog
Fruit bat
Gamefowl
list
Galliform
list
Gazelle
Gecko
Gerbil
Giant panda
Giant squid
Gibbon
Gila monster
Giraffe
Goat
list
Goldfish
Goose
list
Gopher
Gorilla
Grasshopper
Great blue heron
Great white shark
Grizzly bear
Ground shark
Ground sloth
Grouse
Guan
list
Guanaco
Guineafowl
list
Guinea pig
list
Gull
Guppy
Haddock
Halibut
Hammerhead shark
Hamster
Hare
Harrier
Hawk
Hedgehog
Hermit crab
Heron
Herring
Hippopotamus
Hookworm
Hornet
Horse
list
Hoverfly
Hummingbird
Humpback whale
Hyena
Iguana
Impala
Irukandji jellyfish
Jackal
Jaguar
Jay
Jellyfish
Junglefowl
Kangaroo
Kangaroo mouse
Kangaroo rat
Kingfisher
Kite
Kiwi
Koala
Koi
Komodo dragon
Krill
Ladybug
Lamprey
Landfowl
Land snail
Lark
Leech
Lemming
Lemur
Leopard
Leopon
Limpet
Lion
Lizard
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
Newt
New World quail
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
Pigeon
list
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
list
Raccoon
Rainbow trout
Rat
Rattlesnake
Raven
Ray (Batoidea)
Ray (Rajiformes)
Red panda
Reindeer
Reptile
Rhinoceros
Right whale
Roadrunner
Rodent
Rook
Rooster
Roundworm
Saber-toothed cat
Sailfish
Salamander
Salmon
Sawfish
Scale insect
Scallop
Scorpion
Seahorse
Sea lion
Sea slug
Sea snail
Shark
list
Sheep
list
Shrew
Shrimp
Silkworm
Silverfish
Skink
Skunk
Sloth
Slug
Smelt
Snail
Snake
list
Snipe
Snow leopard
Sockeye salmon
Sole
Sparrow
Sperm whale
Spider
Spider monkey
Spoonbill
Squid
Squirrel
Starfish
Star-nosed mole
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
list
Turtle
Tyrannosaurus
Urial
Vampire bat
Vampire squid
Vicuna
Viper
Vole
Vulture
Wallaby
Walrus
Wasp
Warbler
Water Boa
Water buffalo
Weasel
Whale
Whippet
Whitefish
Whooping crane
Wildcat
Wildebeest
Wildfowl
Wolf
Wolverine
Wombat
Woodpecker
Worm
Wren
Xerinae
X-ray fish
Yak
Yellow perch
Zebra
Zebra finch
Animals by number of neurons
Animals by size
Common household pests
Common names of poisonous animals
Alpaca
Bali cattle
Cat
Cattle
Chicken
Dog
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
Fancy mouse
Fancy rat
Lab rat
Ferret
Gayal
Goldfish
Guinea pig
Guppy
Horse
Koi
Llama
Ringneck dove
Sheep
Siamese fighting fish
Society finch
Yak
Water buffalo
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])
@jessekunze
Copy link

Why's the list have "list" littered around it? Regardless, thank you!

@Dhhhdss
Copy link

Dhhhdss commented Feb 2, 2022

Ty

@Toyirov
Copy link

Toyirov commented Feb 9, 2022

Hello 👋

@Time-2004
Copy link

Canidae
Felidae
Cat
Cattle
Dog
Donkey
Goat
Guinea pig
Horse
Pig
Rabbit
Fancy rat varieties
laboratory rat strains
Sheep breeds
Water buffalo breeds
Chicken breeds
Duck breeds
Goose breeds
Pigeon breeds
Turkey breeds
Aardvark
Aardwolf
African buffalo
African elephant
African leopard
Albatross
Alligator
Alpaca
American buffalo (bison)
American robin
Amphibian
list
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
Bandicoot
Barnacle
Barracuda
Basilisk
Bass
Bat
Beaked whale
Bear
list
Beaver
Bedbug
Bee
Beetle
Bird
list
Bison
Blackbird
Black panther
Black widow spider
Blue bird
Blue jay
Blue whale
Boa
Boar
Bobcat
Bobolink
Bonobo
Booby
Box jellyfish
Bovid
Buffalo, African
Buffalo, American (bison)
Bug
Butterfly
Buzzard
Camel
Canid
Cape buffalo
Capybara
Cardinal
Caribou
Carp
Cat
list
Catshark
Caterpillar
Catfish
Cattle
list
Centipede
Cephalopod
Chameleon
Cheetah
Chickadee
Chicken
list
Chimpanzee
Chinchilla
Chipmunk
Clam
Clownfish
Cobra
Cockroach
Cod
Condor
Constrictor
Coral
Cougar
Cow
Coyote
Crab
Crane
Crane fly
Crawdad
Crayfish
Cricket
Crocodile
Crow
Cuckoo
Cicada
Damselfly
Deer
Dingo
Dinosaur
list
Dog
list
Dolphin
Donkey
list
Dormouse
Dove
Dragonfly
Dragon
Duck
list
Dung beetle
Eagle
Earthworm
Earwig
Echidna
Eel
Egret
Elephant
Elephant seal
Elk
Emu
English pointer
Ermine
Falcon
Ferret
Finch
Firefly
Fish
Flamingo
Flea
Fly
Flyingfish
Fowl
Fox
Frog
Fruit bat
Gamefowl
list
Galliform
list
Gazelle
Gecko
Gerbil
Giant panda
Giant squid
Gibbon
Gila monster
Giraffe
Goat
list
Goldfish
Goose
list
Gopher
Gorilla
Grasshopper
Great blue heron
Great white shark
Grizzly bear
Ground shark
Ground sloth
Grouse
Guan
list
Guanaco
Guineafowl
list
Guinea pig
list
Gull
Guppy
Haddock
Halibut
Hammerhead shark
Hamster
Hare
Harrier
Hawk
Hedgehog
Hermit crab
Heron
Herring
Hippopotamus
Hookworm
Hornet
Horse
list
Hoverfly
Hummingbird
Humpback whale
Hyena
Iguana
Impala
Irukandji jellyfish
Jackal
Jaguar
Jay
Jellyfish
Junglefowl
Kangaroo
Kangaroo mouse
Kangaroo rat
Kingfisher
Kite
Kiwi
Koala
Koi
Komodo dragon
Krill
Ladybug
Lamprey
Landfowl
Land snail
Lark
Leech
Lemming
Lemur
Leopard
Leopon
Limpet
Lion
Lizard
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
Newt
New World quail
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
Pigeon
list
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
list
Raccoon
Rainbow trout
Rat
Rattlesnake
Raven
Ray (Batoidea)
Ray (Rajiformes)
Red panda
Reindeer
Reptile
Rhinoceros
Right whale
Roadrunner
Rodent
Rook
Rooster
Roundworm
Saber-toothed cat
Sailfish
Salamander
Salmon
Sawfish
Scale insect
Scallop
Scorpion
Seahorse
Sea lion
Sea slug
Sea snail
Shark
list
Sheep
list
Shrew
Shrimp
Silkworm
Silverfish
Skink
Skunk
Sloth
Slug
Smelt
Snail
Snake
list
Snipe
Snow leopard
Sockeye salmon
Sole
Sparrow
Sperm whale
Spider
Spider monkey
Spoonbill
Squid
Squirrel
Starfish
Star-nosed mole
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
list
Turtle
Tyrannosaurus
Urial
Vampire bat
Vampire squid
Vicuna
Viper
Vole
Vulture
Wallaby
Walrus
Wasp
Warbler
Water Boa
Water buffalo
Weasel
Whale
Whippet
Whitefish
Whooping crane
Wildcat
Wildebeest
Wildfowl
Wolf
Wolverine
Wombat
Woodpecker
Worm
Wren
Xerinae
X-ray fish
Yak
Yellow perch
Zebra
Zebra finch
Animals by number of neurons
Animals by size
Common household pests
Common names of poisonous animals
Alpaca
Bali cattle
Cat
Cattle
Chicken
Dog
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
Fancy mouse
Fancy rat
Lab rat
Ferret
Gayal
Goldfish
Guinea pig
Guppy
Horse
Koi
Llama
Ringneck dove
Sheep
Siamese fighting fish
Society finch
Yak
Water buffalo

@Time-2004
Copy link

Canidae
Felidae
Cat
Cattle
Dog
Donkey
Goat
Guinea pig
Horse
Pig
Rabbit
Fancy rat varieties
laboratory rat strains
Sheep breeds
Water buffalo breeds
Chicken breeds
Duck breeds
Goose breeds
Pigeon breeds
Turkey breeds
Aardvark
Aardwolf
African buffalo
African elephant
African leopard
Albatross
Alligator
Alpaca
American buffalo (bison)
American robin
Amphibian
list
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
Bandicoot
Barnacle
Barracuda
Basilisk
Bass
Bat
Beaked whale
Bear
list
Beaver
Bedbug
Bee
Beetle
Bird
list
Bison
Blackbird
Black panther
Black widow spider
Blue bird
Blue jay
Blue whale
Boa
Boar
Bobcat
Bobolink
Bonobo
Booby
Box jellyfish
Bovid
Buffalo, African
Buffalo, American (bison)
Bug
Butterfly
Buzzard
Camel
Canid
Cape buffalo
Capybara
Cardinal
Caribou
Carp
Cat
list
Catshark
Caterpillar
Catfish
Cattle
list
Centipede
Cephalopod
Chameleon
Cheetah
Chickadee
Chicken
list
Chimpanzee
Chinchilla
Chipmunk
Clam
Clownfish
Cobra
Cockroach
Cod
Condor
Constrictor
Coral
Cougar
Cow
Coyote
Crab
Crane
Crane fly
Crawdad
Crayfish
Cricket
Crocodile
Crow
Cuckoo
Cicada
Damselfly
Deer
Dingo
Dinosaur
list
Dog
list
Dolphin
Donkey
list
Dormouse
Dove
Dragonfly
Dragon
Duck
list
Dung beetle
Eagle
Earthworm
Earwig
Echidna
Eel
Egret
Elephant
Elephant seal
Elk
Emu
English pointer
Ermine
Falcon
Ferret
Finch
Firefly
Fish
Flamingo
Flea
Fly
Flyingfish
Fowl
Fox
Frog
Fruit bat
Gamefowl
list
Galliform
list
Gazelle
Gecko
Gerbil
Giant panda
Giant squid
Gibbon
Gila monster
Giraffe
Goat
list
Goldfish
Goose
list
Gopher
Gorilla
Grasshopper
Great blue heron
Great white shark
Grizzly bear
Ground shark
Ground sloth
Grouse
Guan
list
Guanaco
Guineafowl
list
Guinea pig
list
Gull
Guppy
Haddock
Halibut
Hammerhead shark
Hamster
Hare
Harrier
Hawk
Hedgehog
Hermit crab
Heron
Herring
Hippopotamus
Hookworm
Hornet
Horse
list
Hoverfly
Hummingbird
Humpback whale
Hyena
Iguana
Impala
Irukandji jellyfish
Jackal
Jaguar
Jay
Jellyfish
Junglefowl
Kangaroo
Kangaroo mouse
Kangaroo rat
Kingfisher
Kite
Kiwi
Koala
Koi
Komodo dragon
Krill
Ladybug
Lamprey
Landfowl
Land snail
Lark
Leech
Lemming
Lemur
Leopard
Leopon
Limpet
Lion
Lizard
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
Newt
New World quail
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
Pigeon
list
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
list
Raccoon
Rainbow trout
Rat
Rattlesnake
Raven
Ray (Batoidea)
Ray (Rajiformes)
Red panda
Reindeer
Reptile
Rhinoceros
Right whale
Roadrunner
Rodent
Rook
Rooster
Roundworm
Saber-toothed cat
Sailfish
Salamander
Salmon
Sawfish
Scale insect
Scallop
Scorpion
Seahorse
Sea lion
Sea slug
Sea snail
Shark
list
Sheep
list
Shrew
Shrimp
Silkworm
Silverfish
Skink
Skunk
Sloth
Slug
Smelt
Snail
Snake
list
Snipe
Snow leopard
Sockeye salmon
Sole
Sparrow
Sperm whale
Spider
Spider monkey
Spoonbill
Squid
Squirrel
Starfish
Star-nosed mole
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
list
Turtle
Tyrannosaurus
Urial
Vampire bat
Vampire squid
Vicuna
Viper
Vole
Vulture
Wallaby
Walrus
Wasp
Warbler
Water Boa
Water buffalo
Weasel
Whale
Whippet
Whitefish
Whooping crane
Wildcat
Wildebeest
Wildfowl
Wolf
Wolverine
Wombat
Woodpecker
Worm
Wren
Xerinae
X-ray fish
Yak
Yellow perch
Zebra
Zebra finch
Animals by number of neurons
Animals by size
Common household pests
Common names of poisonous animals
Alpaca
Bali cattle
Cat
Cattle
Chicken
Dog
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
Fancy mouse
Fancy rat
Lab rat
Ferret
Gayal
Goldfish
Guinea pig
Guppy
Horse
Koi
Llama
Ringneck dove
Sheep
Siamese fighting fish
Society finch
Yak
Water buffalo

@Time-2004
Copy link

Yes

@Time-2004
Copy link

@Time-2004
Copy link

Hello

@Time-2004
Copy link

Wow

@AngadGautam
Copy link

thankssssssssssss!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@HengSaMean
Copy link

Hi

@Oluwar-Teemee
Copy link

Waw

@kunaljha76
Copy link

Where's the download button?

@lakoza-fuck
Copy link

Hi

@Kushaew
Copy link

Kushaew commented Mar 19, 2023

Hallo

@shekhar2005
Copy link

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])

@GeneralKing-01
Copy link

By Josh's bot support

@Nickelza
Copy link

Here is the cleaned up list (added a few other animals)

Aardvark
Aardwolf
African buffalo
African elephant
African leopard
African Tree Pangolin
Albatross
Alligator
Alpaca
American robin
Anaconda
Angel Fish
Angelfish
Anglerfish
Ant
Anteater
Antelope
Antlion
Ape
Aphid
Arab horse
Arabian leopard
Archer Fish
Arctic Fox
Arctic Wolf
Armadillo
Arrow crab
Asian Elephant
Asp
Atlantic Puffin
Aye-Aye
Baboon
Badger
Bald eagle
Bandicoot
Bangle Tiger
Barnacle
Barracuda
Basilisk
Bass
Basset Hound
Bat
Beaked whale
Bear
Bearded Dragon
Beaver
Bedbug
Bee
Beetle
Beluga Whale
Big-horned sheep
Billy goat
Bird
Bird of paradise
Bison
Black Bear
Black Fly
Black Footed Rhino
Black panther
Black Rhino
Black widow spider
Blackbird
Blowfish
Blue bird
Blue jay
Blue whale
Boa
Boar
Bob-Cat
Bobcat
Bobolink
Bonobo
Booby
Border Collie
Bornean Orang-utan
Bottle-Nose dolphin
Bovid
Box jellyfish
Boxer dog
Brown Bear
Buck
Budgie
Buffalo
Bug
Bull
Bull frog
Bull Mastiff
Butterfly
Buzzard
Caiman lizard
Camel
Canary
Cape buffalo
Capybara
Cardinal
Caribou
Carp
Cat
Caterpillar
Catfish
Catshark
Cattle
Centipede
Cephalopod
Chameleon
Cheetah
Chickadee
Chicken
Chihuahua
Chimpanzee
Chinchilla
Chipmunk
Chupacabra
Cicada
Clam
Clown Fish
Clownfish
Cobra
Cockatiel
Cockatoo
Cocker Spaniel
Cockroach
Cod
Coho
Common Dolphin
Common seal
Condor
Constrictor
Coral
Corn Snake
Cougar
Cow
Coyote
Crab
Crane
Crane fly
Crawdad
Crawfish
Cray fish
Crayfish
Cricket
Crocodile
Crow
Cuckoo
Cuckoo bird
Cuttle fish
Dacshund
Dalmation
Damsel fly
Damselfly
Dart Frog
Deer
Devi Fish (Giant Sting ray)
Diamond back rattler
Dik-dik
Dingo
Dinosaur
Doberman Pinscher
Dodo bird
Dog
Dolly Varden
Dolphin
Donkey
Door mouse
Dormouse
Dove
Draft horse
Dragon
Dragonfly
Drake
Du-gong
Duck
Duckbill Platypus
Dung beetle
Eagle
Earthworm
Earwig
Echidna
Eclectus
Eel
Egret
Elephant
Elephant seal
Elk
Emu
English pointer
Ermine
Erne
Eurasian Lynx
Falcon
Ferret
Finch
Firefly
Fish
Flamingo
Flatworm
Flea
Fly
Flyingfish
Fowl
Fox
Fresh Water Crocodile
Frog
Fruit bat
Galapagos Land Iguana
Galapagos Tortoise
Galliform
Gamefowl
Gazelle
Gecko
Gerbil
Giant Anteater
Giant panda
Giant squid
Gibbon
Gila monster
Giraffe
Gnat
Goat
Goldfish
Goose
Gopher
Gorilla
Grasshopper
Great blue heron
Great white shark
Green fly
Green poison dart frog
Green Sea Turtle
Grey Whale
Grizzly bear
Ground shark
Ground sloth
Groundhog
Grouse
Guan
Guanaco
Guinea pig
Guineafowl
Gull
Guppy
Haddock
Halibut
Hammerhead shark
Hamster
Hare
Harrier
Hawk
Hedgehog
Hermit crab
Heron
Herring
Hippopotamus
Hookworm
Hornet
Horse
Hoverfly
Hummingbird
Humpback whale
Hyena
Hyrax
Iguana
Iguanodon
Impala
Inchworm
Insect
Irrawaddy Dolphin
Irukandji jellyfish
Jackal
Jackrabbit
Jaguar
Jay
Jellyfish
June bug
Junglefowl
Kangaroo
Kangaroo mouse
Kangaroo rat
Killer Whale
King Cobra
Kingfisher
Kite
Kiwi
Koala
Koi
Komodo dragon
Kookaburra
Krill
Ladybug
Lama
Lamb
Lamprey
Lancelet
Land snail
Lark
Leatherback sea turtle
Leech
Lemming
Lemur
Leopard
Leopon
Lice
Limpet
Lion
Lionfish
Lizard
Llama
Lobster
Locust
Loon
Louse
Lungfish
Lynx
Macaw
Mackerel
Magpie
Man-Of-War
Manatee
Mandrill
Manta ray
Mantis
Marlin
Marmoset
Marmot
Marsupials
Mastodon
Meadowlark
Meerkat
Mink
Minnow
Mite
Mockingbird
Mole
Mollusk
Mollusks
Monarch Butterfly
Mongoose
Monitor lizard
Monkey
Moose
Mosquito
Moth
Mountain goat
Mountain Lion
Mouse
Mule
Muskox
Muskrat
Naked Mole Rat
Narwhal
Nautilus
Newt
Nightingale
Ocelot
Octopus
Opossum
Orangutan
Orca
Osprey
Ostrich
Otter
Owl
Ox
Panda
Panther
Panthera hybrid
Parakeet
Parrot
Parrotfish
Partridge
Peacock
Peafowl
Pelican
Penguin
Perch
Peregrine falcon
Pheasant
Pig
Pigeon
Pike
Pilot whale
Pinniped
Piranha
Planarian
Platypus
Polar bear
Pony
Porcupine
Porpoise
Possum
Prairie dog
Prawn
Praying mantis
Ptarmigan
Puffin
Puma
Python
Quail
Quelea
Quetzal
Quokka
Rabbit
Raccoon
Rainbow trout
Rat
Rattlesnake
Raven
Ray
Red panda
Reindeer
Reptile
Rhino
Rhinoceros
Right whale
Ringworm
Roadrunner
Robin
Rodent
Rook
Rooster
Roundworm
Saber-toothed cat
Sailfish
Salamander
Salmon
Salt water alligator
Sandpiper
Sawfish
Scallop
Scorpion
Sea anemone
Sea lion
Sea slug
Sea snail
Sea urchin
Seahorse
Seal
Shark
Sheep
Shrew
Shrimp
Siberian Husky
Siberian Tiger
Skink
Skunk
Skunks
Slender Loris
Sloth
Sloth bear
Slug
Slugs
Smelt
Snail
Snails
Snake
Snipe
Snow Fox
Snow Hare
Snow leopard
Sockeye salmon
Sole
Somali Wild Ass
Sparrow
Spectacled Bear
Sperm whale
Spider
Spider monkey
Sponge
Spoonbill
Squid
Squirrel
Star-nosed mole
Starfish
Steelhead trout
Stingray
Stoat
Stork
Sturgeon
Sugar glider
Swallow
Swan
Swift
Swordfish
Swordtail
Tadpole
Tahr
Takin
Tamarin
Tapeworm
Tapir
Tarantula
Tarpan
Tarsier
Tasmanian devil
Tazmanian devil
Tazmanian tiger
Termite
Tern
Terrapin
Thrush
Tick
Tiger
Tiger shark
Tiglon
Toad
Tortoise
Toucan
Trapdoor spider
Tree frog
Trout
Tuna
Turkey
Turtle
Tyrannosaurus
Uakari
Umbrella bird
Urchin
Urial
Urutu
Vampire bat
Vampire squid
Velociraptor
Velvet worm
Vervet
Vicuna
Viper
Viper Fish
Vole
Vulture
Wallaby
Walrus
Warbler
Warthog
Wasp
Water buffalo
Water Dragons
Weasel
Weevil
Whale
Whale Shark
Whippet
White Rhino
White tailed dear
Whitefish
Whooper
Whooping crane
Widow Spider
Wildcat
Wildebeest
Wolf
Wolf Spider
Wolverine
Wombat
Woodchuck
Woodpecker
Wren
X-ray fish
Xerinae
Yak
Yellow Bellied Marmot
Yellow belly sapsucker
Yellow finned tuna
Yellow perch
Yeti
Yorkshire terrier
Zander
Zebra
Zebra Dove
Zebra finch
Zebu
Zorilla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment