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.
$ gem install loremarkov
$ destroy
The output will resemble this.
- As a library
- Via
destroy
executable
- Accepts input via filename or STDIN
- Also recognizes sample texts:
- lorem_ipsum
- epigenetics
- oslo_accords
- Provide a secondary parameter to control num_prefix_words
$ destroy # or destroy lorem_ipsum
$ destroy epigenetics
$ destroy oslo_accords 3
$ destroy ~/my_first_corpus.txt
$ man ls | destroy 12
- Based upon Kernighan & Pike's The Practice of Programming Chapter 3