<commit_before>
# 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.


## getting it

```
gem install rufus-mnemo
```

or add it to your `Gemfile`.


## usage

```ruby
#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')<commit_msg>Add link to https://github.com/jmettraux/munemo<commit_after>
# 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](https://github.com/jmettraux/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

```ruby
#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')
{'fraction_non_alphanumeric': 0.13047363717605004, 'fraction_numerical': 0.035746201966041107, 'mean_word_length': 4.863874345549738, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7258848', 'n_tokens_mistral': 494, 'n_tokens_neox': 442, 'n_words': 116}