A small, fast swear filter for Java. It sees through leetspeak, look-alike letters, spacing and stretched letters
(sh1t, fuck, f.u.c.k, fuuuck) and leaves innocent words like class and Scunthorpe alone.
repositories { maven("https://jitpack.io") }
dependencies { implementation("com.github.forka42:bleep:v0.1.0") }Bleep bleep = Bleep.standard();
bleep.clean("what the f.u.c.k"); // "what the #######"
bleep.contains("sh1t happens"); // trueCustomise it with Bleep.builder(): mild, add, allow, replacement and maskWholeWords.
MIT licensed.