0.03
No commit activity in last 3 years
No release in over 3 years
Turning (large) integers into japanese sounding words and vice versa
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

rufus-mnemo

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.

getting it

gem install rufus-mnemo

or add it to your Gemfile.

usage

#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

about negative integers

They are prefixed with the "wi" syllable (Thanks Stephan Wehner).

p Rufus::Mnemo.from_integer(-173866)
p Rufus::Mnemo.to_s(-173866)
  # => 'winamote'

ports in other languages

dependencies

None.

mailing list

On the rufus-ruby list:

http://groups.google.com/group/rufus-ruby

IRC

On freenode.net, the #ruote channel

issue tracker

https://github.com/jmettraux/rufus-mnemo/issues

source

https://github.com/jmettraux/rufus-mnemo

author

John Mettraux, jmettraux@gmail.com, http://lambda.io/jmettraux

license

MIT