koreanLenientDictionary top-level property

ProfanityDictionary koreanLenientDictionary
final

Cached bundled dictionary containing both strict and lenient entries.

Pass this value to KoreanProfanityFilter.dictionary with ProfanityTier.lenient as the minimum tier. Set choseongSearch on the filter separately when initial-consonant matching is wanted.

Implementation

final ProfanityDictionary koreanLenientDictionary =
    createBundledProfanityDictionary(
  entries: <DictionaryEntry>[
    ...bundledStrictEntries(),
    ...entriesFromGenerated(
      generatedLenientSubstringWords,
      ProfanityTier.lenient,
      MatchMode.substring,
    ),
    ...entriesFromGenerated(
      generatedLenientAsciiWordWords,
      ProfanityTier.lenient,
      MatchMode.asciiWord,
    ),
    ...entriesFromGenerated(
      generatedLenientLiteralWords,
      ProfanityTier.lenient,
      MatchMode.literal,
    ),
  ],
  allowEntries: bundledAllowEntries(),
  choseongEntries: <DictionaryEntry>[
    ...bundledStrictChoseongEntries(),
    ...entriesFromGenerated(
      generatedLenientChoseongWords,
      ProfanityTier.lenient,
      MatchMode.choseong,
    ),
  ],
);