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