0.0
No commit activity in last 3 years
No release in over 3 years
a bring-your-own-training-text lorem ipsum generator.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0
>= 0
 Project Readme

Simplelorem

Build Status

a bring-your-own-training-text lorem ipsum generator. It's simple and easy to use, and fast.

Installation

Add this line to your application's Gemfile:

gem 'simplelorem'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simplelorem

Usage

Generate a new instance, takes in training text.

sentence_count = 2

training_text = "Y Combinator., raising a round, Series A, cash flow, scalability, uber for X, next big thing., Steve Jobs, MVP, TechCruch!, hacker, code, big data, hackernews, designernews, sublime text, code artisan, ruby on rails, AWS, digitalocean."

generator = Simplelorem::Generator.new(training_text))
generator.generate(sentence_count)

> Sublime text hacker uber for X cash flow code artisan. Y combinator code sublime text raising a round uber for X Series A ruby on rails next big thing.
  • Training text is expected to be tokenized by commas. It will automatically prune extra whitespace and punctuation.

  • The generator will then take care of punctuation, capitlization, and delimeters like commas and semicolons at runtime.

  • Sentence length is random from 6 to 22 words.