Options - alexzel/bad-words-next 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']

Defined in

index.ts:76


data

Optional data: Data

Dictionary data

Defined in

index.ts:50


maxCacheSize

Optional maxCacheSize: number

Max items to store in cache

Default Value

100

Defined in

index.ts:83


placeholder

Optional placeholder: string

Filter placeholder

Default Value

'***'

Defined in

index.ts:57


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:70


specialChars

Optional specialChars: RegExp

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

Default Value

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

Defined in

index.ts:64

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