Generate pseudopronounceable random words based on bigram frequency distributions
It's a gem, sooo...
From the command line:
andrey generate # => genespha
From your code:
Andrey::Word.generate(length: 5) # => 'gatiz'
Want to customize the Markov model to make the words sound different? (Y U NO LIKE ENGLISH?) Make a new language file, and generate the probability map via:
andrey analyze /path/to/klingon-opera.txt
For Andrey Markov. And also because And-rey is "rand()" in pig-latin.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request