Text goes in, markov gibberish comes out


Keywords
docco, lorem, lorem-ipsum, markov, markov-chain, markov-chains, markov-text, rocco, ruby
License
LGPL-3.0
Install
gem install loremarkov -v 0.2.1.1

Documentation

CI Status Gem Version Code Climate

Introduction

Need to generate text in a hurry? This is the tool for you! With several sample texts built in, you can generate plausible sounding passages at the push of a button.

Install

$ gem install loremarkov

Lorem ipsum

$ destroy

The output will resemble this.

Usage

bin/destroy

  • Accepts input via filename or STDIN
  • Also recognizes sample texts:
    • lorem_ipsum
    • epigenetics
    • oslo_accords
  • Provide a secondary parameter to control num_prefix_words

Examples

$ destroy # or destroy lorem_ipsum
$ destroy epigenetics
$ destroy oslo_accords 3
$ destroy ~/my_first_corpus.txt
$ man ls | destroy 12

Inspiration

  • Based upon Kernighan & Pike's The Practice of Programming Chapter 3