I currently have this code:
private boolean checkWildcardFilter(String contentStripped, GuildTransformer guild) {
String words = contentStripped.toLowerCase();
List <String> badWordsList = replace(guild.getBadWordsWildcard());
System.out.println("UWords: " + words);
System.out.println("FWords: " + badWordsList);
return words.stream().anyMatch(badWordsList::equals);
}
In the example apple and hi are supposed to be filtered
What I want it to do, is check the sentence "I will go and eat a grandapple with my new hire.". It needs to find the words "apple" and "hi" no matter where is is in the sentence. If it finds it, it should filter
It's in Java, and the words are coming from a database:database entry
And it decodes to: (A few curse words)
["***", "***", "***", "***"]