goog.text.LoremIpsum |
Picks a random starting chain.
|
code » | ||
![]()
Generates the chains and starts values required for sentence generation.
Arguments:
|
code » | ||
Generates a single lorem ipsum paragraph, of random length.
|
code » | ||
![]()
Calculates the mean and standard deviation of the lengths of paragraphs
(in sentences) in a sample text.
Arguments:
|
code » | ||
Generates a single sentence, of random length.
|
code » | ||
![]()
Calculates the mean and standard deviation of the lengths of sentences
(in words) in a sample text.
Arguments:
|
code » | ||
![]()
Calculates the mean and standard deviation of sentence and paragraph lengths.
Arguments:
|
code » | ||
![]()
Sets the generator to use a given selection of words for generating
sentences with.
Arguments:
|
code » |
Chains of three words that appear in the sample text
Maps a pair of word-lengths to a third word-length and an optional
piece of trailing punctuation (for example, a period, comma, etc.).
|
Code » | |
![]()
Dictionary of words.
|
Code » | |
![]()
Averange paragraph length in sentences.
|
Code » | |
![]()
Sigma (sqrt of variance) for the paragraph length in sentences.
|
Code » | |
![]()
Sample that the generated text is based on .
|
Code » | |
![]()
Averange sentence length in words.
|
Code » | |
![]()
Sigma (sqrt of variance) for the sentence length in words.
|
Code » | |
![]()
Pairs of word-lengths that can appear at the beginning of sentences.
|
Code » | |
Words that can be used in the generated output.
Maps a word-length to a list of words of that length.
|
Code » |
Returns the length of an array. Written as a function so it can be used
as a function parameter.
|
code » | ||
Find the number in the list of values that is closest to the target.
|
code » | ||
Gets info about a word used as part of the lorem ipsum algorithm.
|
code » | ||
Returns the text is not empty or just whitespace.
|
code » | ||
![]()
Picks a random element of the array.
Arguments:
Returns: *
An element from the array.
|
code » | ||
![]()
Generates a random number for a normal distribution with the specified
mean and sigma.
|
code » | ||
Splits a piece of text into paragraphs.
|
code » | ||
Splits a piece of text into sentences.
|
code » | ||
Splits a piece of text into words..
|
code » |
![]()
Delimiters that end sentences.
|
Code » | |
![]()
Delimiters that end words.
|
Code » | |
![]()
Dictionary of words for lorem ipsum.
|
Code » | |
![]()
Constant used for
#randomNormal_ .
|
Code » | |
![]()
A sample to use for generating the distribution of word and sentence lengths
in lorem ipsum.
|
Code » | |
![]()
Regular expression for spliting a text into sentences.
|
Code » | |
![]()
Regular expression for spliting text into words.
|
Code » |