@Sentence()
New in 2.0Generate sentences
TextSince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| dict | String | — | — | Custom value dictionary, multiple values separated by '|' |
| locale | String | — | zh_CN | Internationalized 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:
好好学习