Function Repository Resource:

LatinizedText

Source Notebook

Generate dummy text of Latin words in the style of Lorem Ipsum

Contributed by: Katja Della Libera

ResourceFunction["LatinizedText"][n]

returns a Latin dummy text of length n units.

Details and Options

ResourceFunction["LatinizedText"] uses the resource data object Lorem Ipsum to generate a dummy text modeled on Latin.
The following options are available:
"Unit""Word"determines the unit in which n is given.
"GenerateNew"Falsewhether to generate all text new or only text going beyond the classic Lorem Ipsum's length.
The option "Unit" defaults to "Word", and can instead be set to "Character", "Sentence" or "Paragraph".
By default, for the first 10 paragraphs (respectively, 155 sentences, 960 words or 6465 characters), ResourceFunction["LatinizedText"] is determinisitic. For longer text, the remainder is generated randomly by recombining the existing words, following the distribution of sentence and paragraph length. With "GenerateNew"True, all text is generated.

Examples

Basic Examples (2) 

Get 50 words of the classic Lorem Ipsum text:

In[1]:=
ResourceFunction["LatinizedText"][50]
Out[1]=

Generate new text instead:

In[2]:=
ResourceFunction["LatinizedText"][50, "GenerateNew" -> True]
Out[2]=

Options (2) 

Unit (1) 

Change the unit of n:

In[3]:=
ResourceFunction["LatinizedText"][5, "Unit" -> "Sentence", "GenerateNew" -> True]
Out[3]=

GenerateNew (1) 

When "GenerateNew"False, the 10 paragraphs of the classic Lorem Ipsum text are given before generating new text:

In[4]:=
ResourceFunction["LatinizedText"][11, "Unit" -> "Paragraph"]
Out[4]=

Version History

  • 1.0.0 – 20 April 2020

Related Resources

License Information