NeoFaker.Lorem (neo_faker v0.11.0)
View SourceFunctions for generating random text using a Lorem Ipsum generator.
This module provides utilities to generate random text, such as paragraphs, sentences, and words.
Summary
Functions
Generates a random paragraph.
Returns a random Lorem Ipsum paragraph. If an option is provided, the paragraph is sourced from a specific text.
Options
The accepted options are:
:text
- Specifies the text source.
Values for option :text
can be:
:lorem
- A standard Lorem Ipsum text (default).:meditations
- A meditation text by Marcus Aurelius.
Examples
iex> NeoFaker.Lorem.paragraph()
"Suspendisse ac justo venenatis, tincidunt sapien nec, accumsan augue. Vestibulum urna
risus, egestas ut ultrices non, aliquet eget massa. Mauris id diam eget augue sagittis
convallis sit amet nec diam. Morbi ut blandit est, et placerat neque."
iex> NeoFaker.Lorem.paragraph(text: :meditations)
"Do the things external which fall upon thee distract thee? Give thyself time to learn
something new and good, and cease to be whirled around. But then thou must also avoid being
carried about the other way. For those too are triflers who have wearied themselves in life
by their activity, and yet have no object to which to direct every movement, and, in a word,
all their thoughts."
Generates a random sentence.
This function behaves the same way as paragraph/1
. See paragraph/1
for more details.
Generates a random word.
This function behaves the same way as paragraph/1
. See paragraph/1
for more details.