Optional
emptyInstantiate filter with no blocklist
Optional
exclude
Optional
list
Instantiate filter with custom list
Optional
placeCharacter used to replace profane words.
Optional
regex
Regular expression used to sanitize words before comparing them to blocklist.
Optional
replaceRegular expression used to replace profane words with placeHolder.
Optional
splitRegular expression used to split a string into words.
Constructor options for Filter class.