note 80730 deleted from function.str-replace by felipe
| From: | felipe@php.net | Date: | Sun, 23 Mar 2008 23:07:20 +0000 |
| Subject: | note 80730 deleted from function.str-replace by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137432@lists.php.net to get a copy of this message | ||
Note Submitter: paul at squirrel mail dot orrrrrrg
----
Thanks admin at sellchain dot com and thewolf at pixelcarnage dot com for your profanity filters.
What follows is one I wrote, different in that the target "bad" words are loaded/managed
externally and I wanted the ability to leave words alone such as "pass" and
"peacock", which would be corrupted by admin at sellchain dot com's algorithm.
thewolf's idea of using is_similar is clever, but I went with a regexp approach instead.
I'd be interested to see just how effective her/his more fuzzy approach would be compared to
this one. Anyway, my attempt can be found (too long to post here) in the code found at the
following link - open the tarball and see the function named "strip_profanities" in
functions.php therein.
http://squirrelmail.org/plugin_view.php?id=265