Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Language Filter

by zencrypt (Initiate)
on Jan 13, 2001 at 09:34 UTC ( #51563=note: print w/replies, xml ) Need Help??

in reply to Language Filter

I agree, but i think there should be an option in one's preferences to turn filtering on or off, perhaps even allow different users to choose their own filtered words, and what they would like them to be replaced with (F-word with F***, or F!!!, or !!!, or F!CK, etc..).. just another $.02 :)

Replies are listed 'Best First'.
Re: Re: Language Filter
by lemming (Priest) on Jan 13, 2001 at 12:42 UTC

    Well, I would say let each user make their own filter. Start off with simple regex s/\sf[u*][c*]k\s/[censored]/i if you want to just get that first bad word on each line. Build from there until satisfied.

    Another thought that this would allow is you could censor whatever you wanted. Maybe I spaz out whenever I see the terms "mission statement", "paradigm", or "win-win" mentioned.

    Now the question is, should we make the filters public knowledge so that the more knowledgeable monks could suggest improvements? This would have the benefit of the regexes being clean enough to not swamp the server with useless spinning. Of course that might increase the amount of harsh language to get by most regexes. I think tone is a lot more important than the use of "restricted" language.

      There is a good solution, make sensitive people type in their own personal list of bad words. If enough sites make them do that, after a while laziness will crush any sense of "bad-word-ness" that exists in society.

      On a more serious note, you likely wanted "\b" rather than "\s" at the beginning and no \s at the end either. Your way used on "go f**k yourself you f**ker" yields "go[censored]yourself you f**ker", which isn't likely to be the result you want.

      Worse, people like me will delight in finding new variations that get by your current filters. Like pr0n and fsck and "fock cucker" or even "Kcuf!". L33t speak became a real benefit to society when it helped AOLers get around useless filters.

      Oh yeah, I won't even get into the problem of regex dealing with the difference between embedded sequences vs. prefixes and suffixes and grammatical declension. "Skys[censored]per".

      Filtering is a Tar-Baby. It looks easy to beat-up but every attack you make just gets you in deeper. And, now that I've made that analogy, I might start calling you Brer-lemming just to be mean. =)

      Finally; If you want to see cussing, start censoring people.

      $you = new YOU;
      honk() if $you->love(perl)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://51563]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2018-06-20 14:52 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.