PHP Classes

Profanity Filter: Determine if a text contains many obscene words

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 764 All time: 4,427 This week: 61Up
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

  Files folder image Files (2)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:764
This week:0
All time:4,427
This week:61Up
User Comments (1)