NestJS profanity filter (English + Nepali) with custom dictionaries
npm install nepali-english-profanity-filterNestJS profanity filter with English + Nepali support and custom dictionaries.
@Module({
imports: [
ProfanityModule.forRoot({
locales: ["en", "ne"],
customWords: {
en: ["fooBadWord"],
ne: ["नेपालीशब्द"]
},
maskChar: "*",
preserveFirstLast: true
}),
],
})
export class AppModule {}