The entire endeavor is fraught with peril, young disciple. Here's but a small taste of what thou shalt encounter if thou continuest upon thy quest:
- Define what a "dirty word" is. The easy ones are, well, easy. But, what about "breast"? You going to block all recipes with "Add two chicken breasts"?
- Once you have that list, how are you going to match your candidate text against it? What about linebreaks? Whitespace? Punctuation (especially hypens and periods)?
- Unicode is most definitely not your friend here.
- Once you find a "dirty word", what are you going to do with it? What about the surrounding text?
Additionally, there was a meditation about a month ago that cited a study demonstrating that people decipher words based on three things - the first letter, the last letter, and the set of letters in the middle. For example, you know these words:
Yet, I can guarantee there is no filter for them.
An even worse problem, which is that profanity is context, not content, is demonstrated by the following examples:
- Flock you!
- Fsck you!
- You piece of pus-dripping goathair!
Not a single "dirty word", yet their context is more offensive than most dirty words. (Arabs have refined swearing into an artform, you pus-dripping son of a motherless flea-bitten camel! *grins*)
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.