项目作者: rickhull

项目描述 :
Legitimate text goes in, plausible gibberish comes out.
高级语言: Ruby
项目地址: git://github.com/rickhull/loremarkov.git
创建时间: 2010-07-08T05:06:21Z
项目社区:https://github.com/rickhull/loremarkov

开源协议:

下载


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

  1. $ gem install loremarkov

Lorem ipsum

  1. $ 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

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

Inspiration

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