Options - alexzel/bad-words-next GitHub Wiki

Interface: Options

Constructor options

Table of contents

Properties

Properties

confusables

Optional confusables: string[]

List of dictionary ids to apply transformations from confusables npm package

Default Value

['en', 'es', 'de', 'ru_lat']

Defined in

index.ts:93


data

Optional data: Data

Dictionary data

Defined in

index.ts:60


exclusions

Optional exclusions: string[]

The list of exclusions

Defined in

index.ts:105


maxCacheSize

Optional maxCacheSize: number

Max items to store in the internal cache

Default Value

100

Defined in

index.ts:100


placeholder

Optional placeholder: string

Filter placeholder

Default Value

'***'

Defined in

index.ts:67


placeholderMode

Optional placeholderMode: PlaceholderMode

Placeholder mode to either replace with or repeat the placeholder

Default Value

'replace'

Defined in

index.ts:74


spaceChars

Optional spaceChars: string[]

Pseudo space chars, a list of values for _ symbol replacement in a dictionary word string

Default Value

['', '.', '-', ';', '|']

Defined in

index.ts:87


specialChars

Optional specialChars: RegExp

Special chars to allow on start and/or end of a word

Default Value

/\d|[!@#$%^&*()[\];:'",.?\-_=+~`|]|a|(?:the)|(?:el)|(?:la)/

Defined in

index.ts:81

⚠️ **GitHub.com Fallback** ⚠️