LoremIpsum

object LoremIpsum extends LoremIpsumBase
Companion
class
class Object
trait Matchable
class Any

Type members

Inherited types

type Sentence = List[String]
Inherited from
LoremIpsumBase

Value members

Concrete methods

def apply(corpus: Vector[String]): LoremIpsum

Inherited 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

Inherited from
LoremIpsumBase

Concrete fields

val corpus: Vector[String]

Inherited fields

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