UNPKG

prompt-bouncer

Version:

A lightweight, customizable content moderation library for AI applications. Filters profanity, explicit content, and inappropriate prompts for text-to-image generation.

38 lines 1.31 kB
import { DetectionCategory } from "./types"; /** * Built-in detection categories with curated word lists */ export declare const DETECTION_CATEGORIES: Record<string, DetectionCategory>; /** * Get all keywords from all categories */ export declare const getAllKeywords: () => string[]; /** * Get keywords by category */ export declare const getKeywordsByCategory: (categoryName: string) => string[]; /** * Additional international and variant profanity patterns */ export declare const ADDITIONAL_VARIANTS: string[]; /** * Get all keywords from all categories including variants */ export declare const getAllKeywordsWithVariants: () => string[]; /** * Get categories by severity level */ export declare const getCategoriesBySeverity: (severity: "none" | "low" | "medium" | "high") => string[]; /** * Get categories up to a maximum severity level (inclusive) */ export declare const getCategoriesUpToSeverity: (maxSeverity: "none" | "low" | "medium" | "high") => string[]; /** * Get all keywords for categories with specific severity levels */ export declare const getKeywordsBySeverityLevels: (severityLevels: ("none" | "low" | "medium" | "high")[]) => string[]; /** * Get all category names */ export declare const getCategoryNames: () => string[]; //# sourceMappingURL=wordLists.d.ts.map