dancroak / hello

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

This URL has Read+Write access

Jason Morrison (author)
Sat Nov 14 22:04:19 -0800 2009
dancroak (committer)
Mon Nov 16 15:10:26 -0800 2009
hello /
name age message
file .gitignore Tue Apr 07 15:37:16 -0700 2009 starting actual Hello Ruby interface [dancroak]
file README.textile Wed Apr 08 17:48:03 -0700 2009 updating README to look better on github [dancroak]
file Rakefile Tue Apr 07 18:27:42 -0700 2009 making this sucker a gem [dancroak]
directory data/ Wed Apr 08 17:36:20 -0700 2009 renamed agnostic to inoffensive [dancroak]
file hello.gemspec Mon Nov 16 15:10:26 -0800 2009 Updated gemspec to reflect renaming agnostic to... [Jason Morrison]
directory lib/ Wed Apr 08 17:36:20 -0700 2009 renamed agnostic to inoffensive [dancroak]
directory spec/ Wed Apr 08 17:40:33 -0700 2009 adding spec for multiple options [dancroak]
README.textile

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