Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.37 KB

README.md

File metadata and controls

46 lines (36 loc) · 1.37 KB

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