For me, at least, the issues I raised have less to do with morality than practicality (sorry to all you upvoters who thought I was making a grand anti-censorship speech :-) Parsing the English language is an extremely difficult task to automate, regardless of your motive or objective.

Unless you are using key words that are unlikely to be used in conversation unrelated to what you're trying to capture, you'll end up with bogus results unless you can also analyze and interpret context. Even humans don't do so well at that -- hence the use of "magic words" like "mayday" or "I am declaring an emergency" instead of "help" in situations where it really matters.

Trying to code this sort of understanding into a perl regex without resorting to predefined magic words would be quite a trick. Automating action based on anything a perl regex could identify simply won't do you much good in the long run.


In reply to Re: Re: Re: Robust Anti-Swear script by Cubes
in thread Robust Anti-Swear script by Azhrarn

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.