replace
ARES System Manual: filter Text Filter Utilities
Flags format: Specify the subkey of
By default, the database includes one list of word replacements,
An owner can create a new list of words with a command such as
which can then be loaded with
Limitations: Currently,
filter replace <flags>
: Performs single-word substitutions, preserving capitalization as much as possible.
Flags format: Specify the subkey of
replace
within the filter
database section which contains an associative array of words to replace.
By default, the database includes one list of word replacements,
stanley
.
An owner can create a new list of words with a command such as
db filter.replace.honey {"you": "you, honey", "i": "i, darling", "him": "that sweet little boy"}
which can then be loaded with
filter replace honey
.
Limitations: Currently,
replace
can only alter single words, though the substitutions may be multiple words long. It treats apostrophes as punctuation, so words like 'don't' and 'can't' cannot be substituted.
replace
is a layer 0 (semantic) filter. It will be applied to the text before any filters of a higher layer.