rickhull / loremarkov

Legitimate text goes in, plausible gibberish comes out.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Legitimate text goes in, plausible gibberish comes out.


Languages

Language:Ruby 93.5%Language:Nix 6.5%