PHP Classes

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 enough user ratingsTotal: 764 All time: 4,425 This week: 61Up
Version License PHP version Categories
profanity-filter 0.1GNU General Publi...5.0PHP 5, Text processing


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: 272958 in Canada Canada
Week rank: 228 Up4 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:0
All time:4,425
This week:61Up
User Comments (1)