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) • 521 B
text/typescript
import { P as ProfanityCheckerConfig, a as ProfanityCheckResult } from './types-DI8nzwWc.cjs';
import { C as CheckProfanityResult } from './types-B9c_ik4k.cjs';
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 };