PHP Classes

Spam Filter: Classify spam text messages using a knowlegde base

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 3,273 All time: 1,066 This week: 673Up
Version License Categories
spamfilter 1.0GNU General Publi...Text processing, Content management


This class can automatically classify text messages to determine whether or not their are considered to be spam.

It can build a knowledge base of known text expressions that can be looked up later to evaluate a factor that expresses the probability of a given text to be spam.

This class could be used in Web mail applications or even in less obvious applications like forums and guest books, acting like an semi-automatic moderator.

Innovation Award
PHP Programming Innovation award nominee
May 2005
Number 3

Prize: One book of choice by O'Reilly
Determining whether a text in a message or in Web page is spam is a difficult task, as it requires a kind of contextual analysis that is not trivial to emulate in software.

This class provides a solution that can classify text and build a knowledge base of what should be or should not be considered spam based on information that may eventually be provided by a human user.

Since it processes text that can be presented in many formats, it could be used to classify and detect spam on many Internet services like e-mail, Web pages, forums, chat services, etc..

Manuel Lemos
Picture of Rafael Pinto
Name: Rafael Pinto <contact>
Classes: 4 packages by
Country: Brazil Brazil
Age: 42
All time rank: 26317 in Brazil Brazil
Week rank: 284 Down16 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file guestbook.php Example Guestbook Example with SpamFilter
Plain text file spamfilter.php Class SpamFilter Class
Accessible without login Plain text file spamfilterTest.php Test SpamFilter Test

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,066
This week:673Up
User Ratings User Comments (1)
 All time
not found the file data.
16 years ago (mohd shaik)