Options - alexzel/bad-words-next GitHub Wiki
Constructor options
• Optional
confusables: string
[]
List of dictionary ids to apply transformations from confusables npm package
Default Value
['en', 'es', 'de', 'ru_lat']
• Optional
data: Data
Dictionary data
• Optional
exclusions: string
[]
The list of exclusions
• Optional
maxCacheSize: number
Max items to store in the internal cache
Default Value
100
• Optional
placeholder: string
Filter placeholder
Default Value
'***'
• Optional
placeholderMode: PlaceholderMode
Placeholder mode to either replace with or repeat the placeholder
Default Value
'replace'
• Optional
spaceChars: string
[]
Pseudo space chars, a list of values for _
symbol replacement in a dictionary word string
Default Value
['', '.', '-', ';', '|']
• Optional
specialChars: RegExp
Special chars to allow on start and/or end of a word
Default Value
/\d|[!@#$%^&*()[\];:'",.?\-_=+~`|]|a|(?:the)|(?:el)|(?:la)/