Hiq is a simple Haiku generator for Ruby. It allows you to generate haikus with 5 - 7 - 5 composition.
The Haikus are generated from premade lines which in turn were generated by RNN learning from the following Haiku collection
Add this line to your application's Gemfile:
gem 'hiq'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hiq
> puts Hiq.haiku('root', 'beer')
root of my joy fade
the sad facade of beer torn
tears flow in the rain
> haiku mug moment
the lines of mug
A spark of moment above
Valentine's Day
Bug reports and pull requests are welcome on GitHub at https://github.com/TarasJan/hiq.