Text & Paragraphs
word
Generate a string containing random single word.
words
Generate an array containing a specified amount of random words.
Optionally, a second boolean parameter can be supplied. When true
, a string will be returned instead of an array.
sentence
Generate a sentence containing a given amount of words. By default, 6
words is used.
Optionally, a second boolean parameter can be supplied. When false
, only sentences with the given amount of words will
be generated. By default, sentence
will deviate from the given amount by +/- 40%.
sentences
Generate an array containing a given amount of sentences. By default, 3
sentences are generated.
Optionally, a second boolean parameter can be supplied. When true
, a string will be returned instead of an array.
paragraph
Generate a paragraph of text, containing a given amount of sentences. By default, 3
sentences are generated.
Optionally, a second boolean parameter can be supplied. When false
, only sentences with the given amount of words will
be generated. By default, sentences will deviate from the default word length of 6 by +/- 40%.
paragraphs
Generate an array containing a given amount of paragraphs. By default, 3
paragraphs are generated.
Optionally, a second boolean parameter can be supplied. When true
, a string will be returned instead of an array.
text
Generate a random string of text. The first parameter represents the maximum number of characters the text should contain (by default, 200
).