korean_profanity_lenient library
Optional strict-plus-lenient dictionary for Korean profanity filtering.
Import this library when context-sensitive lenient terms or bundled choseong patterns are needed. It also exports the complete strict API.
Classes
- KoreanProfanityFilter
- An immutable, synchronous Korean profanity filter.
- ProfanityDictionary
- Immutable configuration for profanity, allowlist, and choseong entries.
- ProfanityMatch
- An immutable accepted occurrence mapped to the original input.
Enums
- ProfanityTier
- The severity threshold assigned to a profanity dictionary entry.
Constants
- dictionaryVersion → const String
- Version of the bundled dictionary data.
Properties
- koreanLenientDictionary → ProfanityDictionary
-
Cached bundled dictionary containing both strict and lenient entries.
final