Skip to content

Instantly share code, notes, and snippets.

@lucianghinda
Created April 11, 2017 13:15
Show Gist options
  • Save lucianghinda/d2865b1b5294924e33a750f14b602546 to your computer and use it in GitHub Desktop.
Save lucianghinda/d2865b1b5294924e33a750f14b602546 to your computer and use it in GitHub Desktop.
attributes = ["new", "reimagined", "innovative", "special", "simplified", "focused"]
seeds_one = ["buy", "choose", "help", "assist them in", "create", "control", "merge", "ease", "deliver", "arrange"]
seeds_two = ["foods", "clothes", "virtual", "arrange", "map", "online", "path", "choice", "talk", "items", "visits", "duration", "cart", "move", "view", "deliver", "package", "access"]
seeds_simple_operator = ["and", "or"]
seeds_join_operator = ["and", "or", "in context of", "to help with", "to solve"]
(1..30).each do |no|
idea_type = "A #{attributes.sample} service"
idea_type = "A #{attributes.sample} mobile app" if no % 4 == 0
idea_type = "A #{attributes.sample} portal" if no % 5 == 0
idea_target = "for customers to" if no.even?
idea_target = "for employees to" if no.odd?
idea_target = "for employees to" if no.even? && (no % 10 == 0)
idea_target = "for bussiness owners to" if no.odd? && ([7, 9].include?((no % 10)))
sample1 = [1,2].sample
sample2 = rand(3).to_i+1
operator1 = seeds_simple_operator.sample
operator2 = seeds_join_operator.sample
body_start = seeds_one.sample(sample1).join(" #{operator1} ")
body_end = seeds_one.sample(sample2).join(" #{operator2} ")
puts "#{no}. #{idea_type} #{idea_target} #{body_start} #{body_end}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment