Profanity Filter: Determine if a text contains many obscene words

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 758 This week: 1All time: 4,412 This week: 182Up
Version License PHP version Categories
profanity-filter 0.1GNU General Publi...5.0PHP 5, Text processing
Description Author

This class can be used to determine if a text string contains too many obscene words, based on ratings of each word, frequency of use, etc.

It parses a given text and checks if it uses words that are part of an obscene words list. It can also look for variants of the words and plural forms of the listed English words. This list can be modified, the ratings for each word changed, etc.

The class returns a score number that may be used by applications to take decisions on whether the text is tolerable for the intended use.

Picture of Mike Block
Name: Mike Block <contact>
Classes: 1 package by
Country: Canada Canada
Age: ???
All time rank: 269958 in Canada Canada
Week rank: 185 Up3 in Canada Canada Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Test Example of Script
Plain text file profanity_filter.php Class Main Class

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:4,412
This week:182Up
User Comments (1)
For more information send a message to info at phpclasses dot org.