replace
func replace(match string) []stringaction:
name: replace
params:
- option1
- option2
...action:
name: replaceLearn how to create static suggestions for your rules.
func replace(match string) []stringreplace returns an array of user-provided replacements.
action:
name: replace
params:
- option1
- option2
...Rules that extend substitution or capitalization will automatically populate the params array, so you can simply provide the name:
action:
name: replace