content.lorem

Generates Lorem Ipsum placeholder text in various units (words, sentences, paragraphs). Lorem Ipsum is the standard dummy text used in the printing and typesetting industry since the 1500s. This schema provides a deterministic way to generate realistic-looking placeholder content for testing and simulation purposes.

Keywords

unitoptional

Specifies the unit of text to generate. Must be one of: word, sentence (default), or paragraph. This determines the structure and length of the generated text.

countoptional

Specifies how many units to generate. Must be a positive integer between 1 and 100 (inclusive). Default is 1. For example, with unit: "word" and count: 5, five words will be generated.

Behavior

The schema generates Lorem Ipsum text from a pool of 100+ classic Latin words. The output format depends on the selected unit:

  • word: Generates individual words from the Lorem Ipsum word pool
    • Words are lowercase
    • Multiple words are separated by spaces
    • Each word is randomly selected from the pool
  • sentence (default): Generates complete sentences with proper formatting
    • Each sentence contains 8-15 randomly selected words
    • First word is capitalized
    • Sentence ends with a period (.)
    • Multiple sentences are separated by spaces
  • paragraph: Generates full paragraphs with multiple sentences
    • Each paragraph contains 3-6 sentences
    • Sentences are separated by spaces
    • Proper capitalization and punctuation throughout

Additional characteristics:

  • Generation is deterministic based on the simulation seed
  • Uses authentic Lorem Ipsum vocabulary
  • No consecutive spaces or formatting issues
  • Values are not guaranteed to be unique
  • Invalid unit or count values return an error

Examples

Default (1 sentence):

{
  "type": "content.lorem"
}

Example output:

  • Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod.

Single word:

{
  "type": "content.lorem",
  "unit": "word",
  "count": 1
}

Example outputs:

  • lorem
  • ipsum
  • dolor

Multiple words:

{
  "type": "content.lorem",
  "unit": "word",
  "count": 5
}

Example output:

  • lorem ipsum dolor sit amet

Multiple sentences:

{
  "type": "content.lorem",
  "unit": "sentence",
  "count": 2
}

Example output:

  • Lorem ipsum dolor sit amet consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.

Single paragraph:

{
  "type": "content.lorem",
  "unit": "paragraph",
  "count": 1
}

Example output:

  • Lorem ipsum dolor sit amet consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam quis nostrud exercitation.

Multiple paragraphs:

{
  "type": "content.lorem",
  "unit": "paragraph",
  "count": 2
}

Example output:

  • Lorem ipsum dolor sit amet consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore. Magna aliqua enim ad minim. Quis nostrud exercitation ullamco laboris nisi ut aliquip. Ex ea commodo consequat duis aute irure.

In an entity definition for blog posts:

{
  "entities": {
    "blogPost": {
      "fields": {
        "title": {
          "type": "content.lorem",
          "unit": "word",
          "count": 5
        },
        "excerpt": {
          "type": "content.lorem",
          "unit": "sentence",
          "count": 2
        },
        "body": {
          "type": "content.lorem",
          "unit": "paragraph",
          "count": 3
        },
        "author": {
          "type": "person.name"
        }
      }
    }
  }
}

Notes

This schema is ideal for generating placeholder content during development and testing. The Lorem Ipsum text is intentionally meaningless, making it clear that the content is temporary and should be replaced with real content in production.

The deterministic nature of the schema ensures that the same seed will always produce the same Lorem Ipsum text, which is useful for reproducible testing scenarios. However, different calls will produce varied text based on the RNG state progression.

For realistic-looking content in UI mockups, use the sentence or paragraph units. For titles, headings, or short labels, use the word unit with a small count. The word pool contains over 100 authentic Latin words from the classical Lorem Ipsum text.

Common use cases include:

  • Blog post titles and content
  • Product descriptions
  • User comments and reviews
  • Email message bodies
  • News article headlines and text
  • Social media posts
  • Documentation examples