Login   Register  
PHP Classes
elePHPant
Icontem

Curse Filter

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of James Wilson
Name: James Wilson <e-mail contact>
Packages: 1 Browse all classes by James Wilson Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 26
All time rank: 2729350 in United States United States
Week rank: 1467 Up168 in United States United States Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
This class can replace text with profanity words looking up a MySQL database.

It can process a text string by looking up its words in a MySQL database table which has profanity words.

The class can replace the found profane words with alternative non-profane words also retrieved from the MySQL database.

Alternatively it can replace the words with asterisks or grawlix symbol characters.

The class also provides means to add, retrieve, update or delete words from the profanity MySQL database table.

  Classes of James Wilson  >  Curse Filter  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Curse Filter
Base name: curse-filter
Description: Replace text with profanity words looking up MySQL
Version: -
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 509 users
All time rank: 4879
Week users: 1 user
Week rank: 2089 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
June 2011
Number 4
Using profane words is inappropriate for many sites. In some forums and other types of sites on which the users can freely submit their posts, it may happen that some users use profane words in the posts.

One solution to prevent that happens is to refuse posts with profane words. Another alternative is to accept all posts, but censor any profane words in a way that they do not look profane.

This class provides a clever implementation of that solution. It can lookup a MySQL database of known profane words and replace any words in the database by non-profane equivalent words, or even obfuscate the profane words by replacing some of their letters or even replace them by special symbols.

Manuel Lemos

  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file curse-filter.class.php Class Main class

Download all files: curse-filter.tar.gz curse-filter.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.