@Word()

New in 2.0

Generate words

TextSince 2.0.0

Parameters

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

Usage

@Word()

Generate word (Chinese)

Example:
@Word()
Output:
弯弯曲曲千家万户
@Word(dict)

Generate word using specified dictionary

Example:
@Word(开开心心|快快乐乐|红红火火)
Output:
开开心心快快乐乐
@Word(locale)

Generate word in specified locale

Example:
@Word(en)
Output:
alongdesigner
← Back to Function Reference