LoremIpsumBase

LoremIpsum paragraph generator

LoremIpsum paragraph generator

class Object
trait Matchable
class Any

Type members

Types

type Sentence = List[String]

Value members

Abstract methods

def corpus: Vector[String]

Concrete methods

def generate(wordCount: Int, alwaysStartWithLorem: Boolean, truncate: Boolean, sentencesBased: Boolean, randomize: Boolean): List[Paragraph]

Generate paragraphs of lorem ipsum

Generate paragraphs of lorem ipsum

Value Params
alwaysStartWithLorem

Shall the first paragraph starts with Lorem Ipsum ? default is false because of performance penalty

randomize

Randomize paragraphs or sentences initial order

sentencesBased

Regenerate paragraph from sentences extracted from the corpus, a little bit slower.

truncate

Shall we generate strictly the requested number of words all round it to last sentence/paragraph size ?

wordCount

How many words all generated paragraph must contains

Returns

The list of generated paragraphs

Concrete fields

lazy val paragraphs: Vector[(Paragraph, Int)]
lazy val sentences: Vector[(Sentence, Int)]