Well said, dragonchild.

Before I go into makeing the matter even much worse I will start making it just a little more perilous. You said:

For example, you know these words:

m/f[1ciknu]{5}g/ m/p[1ein]{3}s/ #2 m/a[0hlos]{5}e/

these work very well in some cases, but will do more than they are supposed to do in others.
Take the obvious #2: so what's wrong with pines?
But you probably won't know the less obvious all the time.

Much more frightening than this is, once you started, your clients will likely want you to add bad words from Spanish, German, Yiddish, Portuguese, Russian, French, Finnish, Swedish, Polish and so on.
Once you do that, there are no good words remaining. Almost all everyday language words do mean something very rude an a number of languages...
there's no achieving the goal your task I'm afraid.

Cheerio, Sören


In reply to Re: Don't even bother. (was Re: dirty word filter module?) by Happy-the-monk
in thread dirty word filter module? by apprentice

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.