Apidog Docs
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ ζ—₯本θͺž
HomeLearning CenterSupport CenterAPI References
HomeLearning CenterSupport CenterAPI References
Discord Community
Slack Community
X / Twitter
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ ζ—₯本θͺž
  1. Learning Center
  • Back to home
  • Dynamic values Modules
  • Airline
  • Animal
  • Color
  • Commerce
  • Company
  • Database
  • Datatype
  • Date
  • Finance
  • Food
  • Git
  • Hacker
  • Helpers
  • Image
  • Internet
  • Location
  • Lorem
  • Music
  • Number
  • Person
  • Phone
  • Science
  • String
  • System
  • Vehicle
  • Word
  1. Learning Center

Lorem

Module to generate random texts and words.
Overview
Generate dummy content using traditional faux-Latin lorem ipsum (in other locales to en, alternative words may be used).
In order of increasing size you can generate a single {{$lorem.word}}, multiple {{$lorem.words}}, a {{$lorem.sentence}}, multiple {{$lorem.sentences}}, {{$lorem.lines}} separated by newlines, one {{$lorem.paragraph}}, or multiple {{$lorem.paragraphs}}.
The generic {{$lorem.text}} method can be used to generate some text between one sentence and multiple paragraphs, while {{$lorem.slug}} generates an URL-friendly hyphenated string.

lines#

Generates the given number lines of lorem separated by '\n'.
Parameters
NameTypeDefaultDescription
maxnumberThe maximum number of lines to generate.
minnumberThe minimum number of lines to generate.
Returns: string
Examples

paragraph#

Generates a paragraph with the given number of sentences.
Parameters
NameTypeDefaultDescription
maxnumberThe maximum number of sentences to generate.
minnumberThe minimum number of sentences to generate.
Returns: string
Examples

paragraphs#

Generates the given number of paragraphs.
Parameters
NameTypeDefaultDescription
maxnumberThe maximum number of paragraphs to generate.
minnumberThe minimum number of paragraphs to generate.
separatorstring'\n'The separator to use.
Returns: string
Examples

sentence#

Generates a space separated list of words beginning with a capital letter and ending with a period.
Parameters
NameTypeDefaultDescription
maxnumberThe maximum number of words to generate.
minnumberThe minimum number of words to generate.
Returns: string
Examples

sentences#

Generates the given number of sentences.
Parameters
NameTypeDefaultDescription
maxnumberThe maximum number of sentences to generate.
minnumberThe minimum number of sentences to generate.
separatorstring'\n'The separator to add between sentences.
Returns: string
Examples

slug#

Generates a slugified text consisting of the given number of hyphen separated words.
Parameters
NameTypeDefaultDescription
maxnumberThe maximum number of words to generate.
minnumberThe minimum number of words to generate.
Returns: string
Examples

text#

Generates a random text based on a random lorem method.
Returns: string
Examples

word#

Generates a word of a specified length.
Parameters
NameTypeDefaultDescription
lengthnumber | { min: number; max: number; }1The expected length of the word.
maxnumberThe maximum number of word to generate.
minnumberThe minimum number of word to generate.
strategy'fail' | 'closest' | 'shortest' | 'longest' | 'any-length''any-length'The strategy to apply when no words with a matching length are found. Available error handling strategies:- fail: Throws an error if no words with the given length are found.- shortest: Returns any of the shortest words.- closest: Returns any of the words closest to the given length.- longest: Returns any of the longest words.- any-length: Returns a word with any length.
Returns: string
Examples

words#

Generates a space separated list of words.
Parameters
NameTypeDefaultDescription
maxnumberThe maximum number of words to generate.
minnumberThe minimum number of words to generate.
Returns: string
Examples
Modified atΒ 2024-09-02 03:13:26
Previous
Location
Next
Music
Built with