Moo ebooks: A minimalistic ebook library
Moo ebooks is a fork from the unmaintained Twitter ebooks and reduced it to a library.
The original project was a framework to handle ebook accounts on Twitter, where this library concentrates on the language modeling and text creation part.
That means that data gathering needs to be done externally, but it also allows more freedom of what platforms to connect.
If you want features, like nice bots, you have to implement it yourself. Literally all interactions with social media accounts have to be done externally.
gem 'moo_ebooks', '~> 1.0' to you gemfile and then run
or simply run
gem install moo_ebooks
Example usage code
Say, for example, we have a json file full of statuses in 'statuses.json'. These statuses are arranged so that there is an array of strings with the key ':statuses'. The following code will read that file in, create a model based off of it and print out a randomly generated status based off of them.
require 'moo_ebooks' Model = Ebooks::Model.from_json(File.read('statuses.json')) Model.update
This gem follows Semantic Versioning 2.0.0!
Follow me on Twitter, if you're brave enough.
- Fork it
- 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