module TriGenerate

Constants

S_ADJECTIVE
S_ANIMAL
S_BIRD
S_CELEBRITY
S_CITY
S_COLOR
S_COMPANY
S_COUNTRY
S_EMOTION_GOOD
S_FISH
S_FOOD
S_HOPPY
S_JOB
S_LANDMARK
S_MOVIE
S_NAME
S_NEWS
S_NUMBER
S_PRONOUN
S_SPORT
S_TIME
S_TRANSPORT
S_TVSHOW

Public Class Methods

fullname() click to toggle source
# File lib/tri_generate.rb, line 163
def TriGenerate::fullname    
    middle = [" II", " III", ", Jr.", ", Sr."]
    if (rand(100)<80)
             S_NAME[rand(S_NAME.length)] + " " + S_NAME[rand(S_NAME.length)]          
    else
        if (rand(100)<50)
            S_NAME[rand(S_NAME.length)] + " " + S_NAME[rand(S_NAME.length)][0].upcase + ". " + S_NAME[rand(S_NAME.length)]  
        else
            S_NAME[rand(S_NAME.length)] + " " + S_NAME[rand(S_NAME.length)] + middle[rand(middle.length)] 
        end
    end    
end
name() click to toggle source
# File lib/tri_generate.rb, line 159
def TriGenerate::name    
    S_NAME[rand(S_NAME.length)]
end
sentence() click to toggle source
# File lib/tri_generate.rb, line 176
def TriGenerate::sentence
    case rand(57)
    when 0
        "My #{S_PRONOUN[rand(S_PRONOUN.length)]} love to see the #{S_ANIMAL[rand(S_ANIMAL.length)]} in the local zoo."
    when 1
        "Our #{S_PRONOUN[rand(S_PRONOUN.length)]} love to see the #{S_ANIMAL[rand(S_ANIMAL.length)]} in the local zoo."    
    when 2
        "#{S_NAME[rand(S_NAME.length)]}'s #{S_PRONOUN[rand(S_PRONOUN.length)]} do not like the local zoo because it has the #{S_ANIMAL[rand(S_ANIMAL.length)]}."
    when 3
        "My #{S_PRONOUN[rand(S_PRONOUN.length)]} love to see the #{S_FISH[rand(S_FISH.length)]} in the local aquarium."
    when 4
        "Our #{S_PRONOUN[rand(S_PRONOUN.length)]} love to see the #{S_FISH[rand(S_FISH.length)]} in the local aquarium."    
    when 5
        "#{S_NAME[rand(S_NAME.length)]}'s #{S_PRONOUN[rand(S_PRONOUN.length)]} do not like the local aquarium because it has the #{S_FISH[rand(S_FISH.length)]}."  
    when 6
        "#{S_EMOTION_GOOD[rand(S_EMOTION_GOOD.length)]} I just meet #{S_CELEBRITY[rand(S_CELEBRITY.length)]}."
    when 7
        "#{S_EMOTION_GOOD[rand(S_EMOTION_GOOD.length)]} My #{S_PRONOUN[rand(S_PRONOUN.length)]} just take a selfie picture with #{S_CELEBRITY[rand(S_CELEBRITY.length)]}."
    when 8      
        "#{S_EMOTION_GOOD[rand(S_EMOTION_GOOD.length)]} #{S_CELEBRITY[rand(S_CELEBRITY.length)]} adds 'friend' with our #{S_PRONOUN[rand(S_PRONOUN.length)]} on Facbook."   
    when 9      
        "Should I watch #{S_SPORT[rand(S_SPORT.length)]} or #{S_SPORT[rand(S_SPORT.length)]} match on TV?"   
    when 10      
        "Should I by tickets for #{S_SPORT[rand(S_SPORT.length)]} or #{S_SPORT[rand(S_SPORT.length)]} match this weekend?"   
    when 11      
        "Should I become a #{S_SPORT[rand(S_SPORT.length)]} or #{S_SPORT[rand(S_SPORT.length)]} fan of my town team?"   
    when 12
        "I usually like #{S_HOPPY[rand(S_HOPPY.length)]} with my leisure time."
    when 13
        "When I have freetime, I love to #{S_HOPPY[rand(S_HOPPY.length)]} with my #{S_PRONOUN[rand(S_PRONOUN.length)]}."
    when 14
        "Is not a good idea to speend time #{S_HOPPY[rand(S_HOPPY.length)]} with #{S_NAME[rand(S_NAME.length)]}'s #{S_PRONOUN[rand(S_PRONOUN.length)]}."
    when 15
        "I just wonder if #{S_CELEBRITY[rand(S_CELEBRITY.length)]} loves #{S_HOPPY[rand(S_HOPPY.length)]} like me?"
    when 16
        "I dont think #{S_CELEBRITY[rand(S_CELEBRITY.length)]} likes #{S_HOPPY[rand(S_HOPPY.length)]}."
    when 17
        "People say that #{S_HOPPY[rand(S_HOPPY.length)]} is the only hoppy of #{S_CELEBRITY[rand(S_CELEBRITY.length)]}."
    when 18
        "Finally, #{S_CITY[rand(S_CITY.length)]}, home sweet home!"
    when 19
        "Me and my #{S_PRONOUN[rand(S_PRONOUN.length)]} will visit #{S_CITY[rand(S_CITY.length)]} next #{S_NUMBER[rand(S_NUMBER.length)]} #{S_TIME[rand(S_TIME.length)]}."
    when 20
        "Next #{S_NUMBER[rand(S_NUMBER.length)]} #{S_TIME[rand(S_TIME.length)]}, I will move back to #{S_CITY[rand(S_CITY.length)]}."
    when 21
        "I am going to transit at #{S_CITY[rand(S_CITY.length)]}'s airport for a few hours."
    when 22
        "My #{S_PRONOUN[rand(S_PRONOUN.length)]} think the #{S_LANDMARK[rand(S_LANDMARK.length)]} belongs to #{S_COUNTRY[rand(S_COUNTRY.length)]}"
    when 23
        "Is it true that #{S_LANDMARK[rand(S_LANDMARK.length)]} is resided at #{S_COUNTRY[rand(S_COUNTRY.length)]}."
    when 24
        "The air tickets flying to #{S_LANDMARK[rand(S_LANDMARK.length)]} will be sky high in next #{S_NUMBER[rand(S_NUMBER.length)]} #{S_TIME[rand(S_TIME.length)]}."
    when 25
        "I used to be a #{S_JOB[rand(S_JOB.length)]} before becoming a #{S_JOB[rand(S_JOB.length)]}."
    when 26
        "#{S_NUMBER[rand(S_NUMBER.length)].capitalize} #{S_TIME[rand(S_TIME.length)]} ago, I still was a #{S_JOB[rand(S_JOB.length)]}."
    when 27
        "Becoming a #{S_JOB[rand(S_JOB.length)]} is one of my childish dreams!"
    when 28
        "My son wants a #{S_FISH[rand(S_FISH.length)]} fish pet while his sister demands a #{S_ANIMAL[rand(S_ANIMAL.length)]}!"
    when 29
        "Would you like a #{S_BIRD[rand(S_BIRD.length)]} bird or a #{S_FISH[rand(S_FISH.length)]} fish for your birthday gift?"
    when 30
        "My #{S_PRONOUN[rand(S_PRONOUN.length)]} just found a brand new #{S_BIRD[rand(S_BIRD.length)]} bird in #{S_CITY[rand(S_CITY.length)]}."
    when 31
        "According to the #{S_NEWS[rand(S_NEWS.length)]} news channel, #{S_COMPANY[rand(S_COMPANY.length)]} will expand its business to #{S_COUNTRY[rand(S_COUNTRY.length)]}."
    when 32  
        "There are alot of rumors about the #{S_COMPANY[rand(S_COMPANY.length)]} corp will accquired the #{S_COUNTRY[rand(S_COUNTRY.length)]} within #{S_NUMBER[rand(S_NUMBER.length)]} #{S_TIME[rand(S_TIME.length)]}."
    when 33
        "Wait a minute! Is it true that the #{S_COMPANY[rand(S_COMPANY.length)]} coorp is hiring alot of #{S_JOB[rand(S_JOB.length)]} positions?!?!"
    when 34
        "I am trying to apply a job in the #{S_COMPANY[rand(S_COMPANY.length)]} company in #{S_CITY[rand(S_CITY.length)]} city." 
    when 35
        "Have you ever try the #{S_FOOD[rand(S_FOOD.length)]} food in #{S_CITY[rand(S_CITY.length)]} city yet?"
    when 36
        "I have heard my #{S_PRONOUN[rand(S_PRONOUN.length)]} said something good about the #{S_FOOD[rand(S_FOOD.length)]} food."
    when 37
        "Somebody say that the #{S_FOOD[rand(S_FOOD.length)]} deli is came from #{S_COUNTRY[rand(S_COUNTRY.length)]}."
    when 38
        "I love to make the #{S_FOOD[rand(S_FOOD.length)]} for my #{S_PRONOUN[rand(S_PRONOUN.length)]}."
    when 40
        "#{S_COLOR[rand(S_COLOR.length)].capitalize} is a #{S_ADJECTIVE[rand(S_ADJECTIVE.length)]} color."
    when 41
        "Althought #{S_COLOR[rand(S_COLOR.length)]} is a #{S_ADJECTIVE[rand(S_ADJECTIVE.length)]}, its not my favorite."
    when 42
        "I love that #{S_COLOR[rand(S_COLOR.length)]} car, but I buy the #{S_COLOR[rand(S_COLOR.length)]}."
    when 43
        "I am not really fond of the #{S_TVSHOW[rand(S_TVSHOW.length)]} show, but my #{S_PRONOUN[rand(S_PRONOUN.length)]} are."
    when 44
        "Hurry up guys! the #{S_TVSHOW[rand(S_TVSHOW.length)]} show will be on in any minutes."
    when 45
        "Its been awhile from the last season of the #{S_TVSHOW[rand(S_TVSHOW.length)]} show."
    when 46
        "We are expecting the realease of the #{S_TVSHOW[rand(S_TVSHOW.length)]} show will be next #{S_NUMBER[rand(S_NUMBER.length)]} #{S_TIME[rand(S_TIME.length)]}."
    when 47
        "It is hard to understand why all of my #{S_PRONOUN[rand(S_PRONOUN.length)]} can watch the #{S_MOVIE[rand(S_MOVIE.length)]} many times."
    when 48
        "The main actress of the #{S_MOVIE[rand(S_MOVIE.length)]} is so #{S_ADJECTIVE[rand(S_ADJECTIVE.length)]}."
    when 49 
        "The #{S_MOVIE[rand(S_MOVIE.length)]} movie is indeed a good one."
    when 50
        "Should I turn this $@$*@ #{S_TVSHOW[rand(S_TVSHOW.length)]} show off to watch the #{S_MOVIE[rand(S_MOVIE.length)]} movie."
    when 51
        "We love to use #{S_TRANSPORT[rand(S_TRANSPORT.length)]} around the #{S_CITY[rand(S_CITY.length)]} city."
    when 52
        "Now I know why #{S_CELEBRITY[rand(S_CELEBRITY.length)]} never uses freaking #{S_TRANSPORT[rand(S_TRANSPORT.length)]} any more."
    when 53
        "My favorite movie of all time is the #{S_MOVIE[rand(S_MOVIE.length)]}."
    when 54
        "After watched the #{S_MOVIE[rand(S_MOVIE.length)]} movie many times, I still dont know the story!"
    when 55 
        "I would rather buy the ticket for the #{S_MOVIE[rand(S_MOVIE.length)]} or the #{S_MOVIE[rand(S_MOVIE.length)]}?"
    when 56
        "One of my #{S_PRONOUN[rand(S_PRONOUN.length)]} suggests that I should download the #{S_MOVIE[rand(S_MOVIE.length)]} movie right away." 
    else
        "When I was little I had a car door slammed shut on my hand. I still remember it quite vividly."
    end
end