This gem provides methods for turning integer into easier to remember 'words' and vice-versa.
The module Rufus::Mnemo has all the explanation.
2016 note: I'm now using munemo instead of this rufus-mnemo, it's a bit different but simpler.
gem install rufus-mnemo
or add it to your Gemfile
.
#require 'rubygems'
require 'rufus/mnemo'
p Rufus::Mnemo.from_integer(125704)
p Rufus::Mnemo.from_i(125704)
p Rufus::Mnemo.to_s(125704)
# => 'karasu'
p Rufus::Mnemo.to_integer('karasu')
p Rufus::Mnemo.to_i('karasu')
p Rufus::Mnemo.from_s('karasu')
# => 125704
They are prefixed with the "wi" syllable (Thanks Stephan Wehner).
p Rufus::Mnemo.from_integer(-173866)
p Rufus::Mnemo.to_s(-173866)
# => 'winamote'
- PHP: https://github.com/aleksblendwerk/mnemo by Alexander Seltenreich
- C99: https://github.com/flon-io/mnemo a rework/evolution of rufus-mnemo but in C
- Objective-C: https://github.com/jfreyre/JFEMnemo by Jerome Freyre
None.
On the rufus-ruby list:
http://groups.google.com/group/rufus-ruby
On freenode.net, the #ruote channel
https://github.com/jmettraux/rufus-mnemo/issues
https://github.com/jmettraux/rufus-mnemo
John Mettraux, jmettraux@gmail.com, http://lambda.io/jmettraux
MIT