Class ProfanityLoader

java.lang.Object
com.skava.ratingandreviews.model.ProfanityLoader

public final class ProfanityLoader extends Object

Class ProfanityLoader

This class is used to load profanity words based on locale.

Author:
Infosys Equinox
  • Method Details

    • loadProfanityWordsByUrl

      public static org.ahocorasick.trie.Trie loadProfanityWordsByUrl(String collectionPropertyDomain, String locale, String profanitywordsConfig, String cloudFrontDomain) throws IOException
      Parameters:
      collectionPropertyDomain - collectionPropertyDomain
      locale - locale
      profanitywordsConfig - profanitywordsConfig
      Returns:
      trie
      Throws:
      IOException - IOException