Optional
emptyInstantiate filter with no blocklist
Optional
excludeOptional
listInstantiate filter with custom list
Optional
placeCharacter used to replace profane words.
Optional
regexRegular 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.