Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
crawdog
· 6y ago · 0 comments
You could build a bloom filter with the profane words, then check your tokens for the page against that filter.
Comments
[–]
teraflop
6y ago
That would make sense if your list of expletives was too large to fit in memory, which would be... impressive, to say the least.
[–]
GordonS
6y ago
I'm Scottish, and I'll say it's definitely possible :p
[–]
Keyframe
6y ago
if profanities were single words only. What if they weren’t? You’d have to have a giant list of permutations and build a huge-ass bloom filter. Still doable though, but then spelling errors (or not)...