UNPKG

@devshubham/clean-speech-hindi

Version:

Small Utility node package manager for checking profanity (hindi and English).It supports functionality like detecting bad words , adding if any and also to remove them.

14 lines (13 loc) 515 B
interface BadWordsDictionary { [key: string]: number; } declare const profanity: { maskBadWords: (message: string, maskWith?: string) => string; isMessageDirty: (message: string) => boolean; addWords: (wordList: string | string[]) => BadWordsDictionary; removeWords: (wordList: string | string[]) => BadWordsDictionary; countBadWords: (message: string) => number; getListOfBadWords: (message: string) => string[]; isSpecificWordBad: (word: string) => boolean; }; export = profanity;