UNPKG

glin-profanity

Version:

Glin-Profanity is a lightweight and efficient npm package designed to detect and filter profane language in text inputs across multiple languages. Whether you’re building a chat application, a comment section, or any platform where user-generated content

14 lines (11 loc) 519 B
import { P as ProfanityCheckerConfig, a as ProfanityCheckResult } from './types-BuKh9tvV.js'; import { C as CheckProfanityResult } from './types-B9c_ik4k.js'; declare const useProfanityChecker: (config?: ProfanityCheckerConfig) => { result: CheckProfanityResult; checkText: (text: string) => ProfanityCheckResult; checkTextAsync: (text: string) => Promise<ProfanityCheckResult>; reset: () => void; isDirty: boolean; isWordProfane: (word: string) => boolean; }; export { useProfanityChecker };