Skip to content
forked from Jcampos95/hello

Hello is a Ruby interface to a collection of the word “hello” in many languages and dialects.

Notifications You must be signed in to change notification settings

pritesh848/hello

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello

Hello is a Ruby interface to a collection of the word “hello” in many languages and dialects.

I wrote it for Flickr-style messages after users sign in to a web application:

>> Hello.random
=> "Wushiwushi"

By default, the word you get is time-neutral and religious-neutral. It is intended to be directed at one person of any gender or any age. The “hello” may be formal or informal.

Expand the list of "hello"s by gender:

Hello.random(:gender => :male)
Hello.random(:gender => :female)

Expand the list of "hello"s by time of day:

Hello.random(:time => :morning)
Hello.random(:time => :afternoon)
Hello.random(:time => :evening)

Or combine them:

Hello.random(:time => :morning, :gender => :female)

Adjustments to the list are… welcome.

@Croaky

About

Hello is a Ruby interface to a collection of the word “hello” in many languages and dialects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%