Glenn Jones's Blog

Silly-id ruby gem for generating locale-aware random names

I’ve created the gem silly-id to generate random names in a heroku-like manner, based on your locale. I’ve forked it from an existing heroku-like name generator called haikunator, and I’ve extended it to select the nouns and adjectives based on your locale.

To change the locale used, set your appropriate locale using I18n.locale=.

For the first release, English and Dutch are supported, as those are the use-cases I needed to support myself.

If you’d like to contribute, or have a look at the code, have a look at silly-id on Github. The gem itself is hosted on RubyGems: silly-id.

comments powered by Disqus