@Sentence()

New in 2.0

Generate sentences

Text InformationSince 2.0.0

Parameters

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

Usage

@Sentence(arg0)

Generate sentence using specified dictionary

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

Generate sentence in specified locale

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

Generate sentence (Chinese, 5-100 characters)

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