Package host.anzo.core.service
Class ObsceneFilterService
java.lang.Object
host.anzo.core.service.ObsceneFilterService
- Since:
- 7/20/2021
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic class -
Method Summary
Modifier and TypeMethodDescriptionfilterWord(@NotNull String inputString) Replace all obscene words in text with censor symbolsbooleanisObsceneWord(String word)
-
Method Details
-
filterWord
Replace all obscene words in text with censor symbols- Parameters:
inputString- input text- Returns:
- censored text
-
isObsceneWord
- Parameters:
word- checked word- Returns:
trueif word contains obscene content,falseotherwise
-