A library for converting numbers to readable, pronounceable, spellable identifiers.
See http://arxiv.org/html/0901.4016.
Add this line to your application's Gemfile:
gem 'proquint'
And then execute:
$ bundle
Or install it yourself as:
$ gem install proquint
require 'proquint'
Proquint.encode(1) #=> "babad"
Proquint.encode(1234567890123456) #=> "babah-karij-gufap-rorab"
Proquint.encode(0x462d53c8abac0) #=> "babah-karij-gufap-rorab"
Proquint.encode(0x1234567890abcdef) #=> "damuh-jinum-nafor-suloz"
Proquint.decode("nobol-gonad") #=> [38951, 14913]
Proquint.words2num([38951, 14913]) #=> 2552707649
- Fork it ( https://github.com/[my-github-username]/proquint/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request