Project

moo_ebooks

0.0
No release in over 3 years
Low commit activity in last 3 years
A minimalistic, markov chain based, library to feed ebook accounts.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.6
~> 0.54.0
~> 0.16.1
~> 0.9.12

Runtime

 Project Readme

Moo ebooks: A minimalistic ebook library

Build Status

Gem Version GitHub Release Date

Maintainability Test Coverage

Inline docs

Description

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.

Installation

Add gem 'moo_ebooks', '~> 1.0' to you gemfile and then run bundle install

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

Versioning

This gem follows Semantic Versioning 2.0.0!

Donations

Patreon KoFi

Social Media

Follow me on Twitter, if you're brave enough.

Twitter Follow

License

MIT

Copyright 2013 ©️ Jaiden Mispy

Copyright 2018 ©️ Maxine Michalski

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request