@Sentence()

New in 2.0

Generate sentences

TextSince 2.0.0

Parameters

NameTypeRequiredDefaultDescription
dictStringCustom value dictionary, multiple values separated by '|'
localeStringzh_CNInternationalized languages, currently only supporting Chinese (zh_CN) and English (en), default zh_CN

Usage

@Sentence()

Generate sentence (Chinese, 5-100 characters)

Example:
@Sentence()
Output:
好好学习
@Sentence(dict)

Generate sentence using specified dictionary

Example:
@Sentence(好好学习|天天向上)
Output:
天天向上
@Sentence(locale)

Generate sentence in specified locale

Example:
@Sentence(zh_CN)
Output:
好好学习
← Back to Function Reference