For some reason all of my profanity scores are returning 0.3 (which I think is exactly the default threshold?). I know the filters are being hit, and both are enabled in the admin, but I can still make horribly obvious profane comments and have them pass. The spam filters still catch spam-like posts, however. From what I can tell this only happens on comment forms (advanced_forum forum posts and regular node comments). No custom hooks interfering with the CRUD process.
Could there be something that I'm doing wrong? When I manually add a swear word to the blacklist, the profanity filter DOES kick in for that particular word. Otherwise, it just kicks back a 0.3 score and says "Hey this looks pretty solid! Despite him dropping 46 F-bombs!"
Straight out of watchdog:
Ham: FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK
Data:
post_body = 'FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK'
author_name = 'KevinM'
author_mail = 'kabojnk@gmail.com'
author_id = '147'
author_ip = '192.168.1.128'
session_id = ''
checks = 'spam,profanity'
strictness = 'strict'
Result:
spam = 1
profanity = 0.3
session_id = '120725d96669d43f2c'
Comments
Comment #1
SelrahcD CreditAttribution: SelrahcD commentedI have the same issue here. Did you come up with a solution ?
Comment #2
sunI quickly tested this myself, and I'm getting a proper profanity response:
(log message shortened to relevant details)
Do you still experience this issue?
Comment #3
Rob230 CreditAttribution: Rob230 commentedI am seeing exactly this issue. Are we required to manually add every swear word to the blacklist? I expected Mollom to detect profanity in the same way it does spam.
profanityScore is always 0.3.
Comment #4
Rob230 CreditAttribution: Rob230 commentedCan someone explain how the profanity filter is supposed to work? I have had the following profanity scores:
0.0: Jesus Christ you are such a bastard dick
0.0: dick
0.0: Bastard
0.0: Cunts.
0.0: Jesus Christ
0.3: dickhead
0.3: SHIT SHIT SHIT SHIT SHIT
0.3: FUCK
0.3: Motherfucker
0.3: NIGGER
0.51: SHITTING FUCK
0.51: fucking
0.6: Jesus Christ you are such a bastard dickhead
0.72: This is fucked.
This is on strict. Everything except the last 4 got through, so not very useful as a profanity filter. What is the logic behind it? It seems more than one swear word seems to add up to a higher profanity score?
Comment #5
Rob230 CreditAttribution: Rob230 commentedIt seems that the threshold is hardcoded to 0.5 which in my experience is quite hard to get above:
It actually ignores the 'strictness' setting. That's for spam only. It would have been nice if we could choose how strict to be on profanity.
Comment #6
sunHm. That's interesting. I'll try to get an answer for how the profanity score actually works from Mollom backend engineers.
It's not really clear to me as well. I was told to simply check for a score above 0.5. We'll figure it out. :)
Comment #7
Nick_vh