Class ObsceneFilterService

java.lang.Object
host.anzo.core.service.ObsceneFilterService

public class ObsceneFilterService extends Object
Since:
7/20/2021
  • Method Details

    • filterWord

      public String filterWord(@NotNull @NotNull String inputString)
      Replace all obscene words in text with censor symbols
      Parameters:
      inputString - input text
      Returns:
      censored text
    • isObsceneWord

      public boolean isObsceneWord(String word)
      Parameters:
      word - checked word
      Returns:
      true if word contains obscene content, false otherwise