Skip to Content
๐ŸŽฒ Welcome to RandBox - Powerful JavaScript Random Data Generation Library! Learn More
blogRandBox Module Tour (9/12): text โ€“ Natural Language Snippets

RandBox Module Tour (9/12): text โ€“ Natural Language Snippets

Overview

  • Units: syllable/word
  • Structures: sentence/paragraph
  • Emoji: emoji

Examples

import RandBox from 'randbox' const rb = new RandBox() const words = rb.word?.({ length: 5 }) const para = rb.paragraph?.({ sentences: 3 })

Links

  • Index: /en/docs/text/
  • Pages: /en/docs/text/word, /en/docs/text/paragraph, /en/docs/text/emoji

FAQ

  • Control sentence count in paragraph?
    • Use the sentences option.
  • Restrict word length or charset?
    • Configure options accordingly.
Last updated on: