Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

(silly) Re: Language Filter

by mirod (Canon)
on Jan 13, 2001 at 15:17 UTC ( #51588=note: print w/replies, xml ) Need Help??

in reply to Language Filter

I agree with you. The only problem, as already mentionned in the previous anwers is that regexps do a terrible job at matching curse words. They are inneficient and not accurate at all.

I guess the only efficient solution here is that curse words should be tagged as such, then a quick XML filter would get rid of then easily. The author could even provide for milder alternatives, so the filter could accuratelly replace the bad language with a nicer version.

<p>Go <curse level="very offensive" cats="sexual contorsionnism" alt=" +play with your toys">f**k yourself</curse> you <curse level="quite offensive" cats="body_part" alt="bad person +">a*sh**e</curse>!

Easy isn't it?

Seriously filters don't work, be they for URL's or for words, so please let's not go there. I haven't seen much cursing around here anyway so why bother?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://51588]
[choroba]: It should greatly simplify the parsing code, no flags or additional reading of the next buffer needed
[Corion]: choroba: Yeah, that's why I like that approach; it seems even quite obvious in retrospect to me, but many things are in hindsight ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2016-12-06 15:39 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (109 votes). Check out past polls.