Build Status Gem Version Code Climate Dependency Status Security Status

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

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