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.
- Use the
- Restrict word length or charset?
- Configure options accordingly.
Last updated on: