Skip to content

Instantly share code, notes, and snippets.

@ayumi
Created April 5, 2012 03:29
Show Gist options
  • Save ayumi/2307738 to your computer and use it in GitHub Desktop.
Save ayumi/2307738 to your computer and use it in GitHub Desktop.
Random positive 3-word phrase generator (e.g. "Enjoyable Green Turtle")
module KawaiiPhrase
# Makes awesome random phrases such as "Enjoyable Green Turtle"
ADJ_1 = [
'epic',
'tasty',
'shiny',
'mega',
'ultra',
'hyper',
'strong',
'positive',
'happy',
'enjoyable',
'fun',
'dashing',
'splendid',
'uber',
'awesome',
'hipster',
'friendly'
]
ADJ_2 = [
'green',
'red',
'blue',
'yellow',
'orange',
'verdant',
'cerulean',
'mauve',
'chartreuse',
'white',
'black',
'silver',
'platinum',
'violet',
'cyan',
'veridian',
'lavender',
'fuchsia',
'speckled',
'spotted',
'striped',
'metallic'
]
NOUN = [
'turtle',
'ostrich',
'penguin',
'badger',
'platypus',
'squirrel',
'leopard',
'cat',
'dolphin',
'magikarp',
'lizard',
'grasshopper',
'frog',
'cheetah',
'wallaby',
'kangaroo',
'giraffe',
'koala',
'parrot',
'fox',
'tiger'
]
def self.new
"#{ADJ_1.sample} #{ADJ_2.sample} #{NOUN.sample}"
end
end
@marianposaceanu
Copy link

Just lovely ! :-)

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