Class Jyxo_SpamFilter
Walks through the given text and computes individual words counts. If more than 3/4 words repeat the text is considered to be spam.
Category:
Jyxo
Package: Jyxo_SpamFilter
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Roman Řáha
Located at SpamFilter.php
Package: Jyxo_SpamFilter
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Roman Řáha
Located at SpamFilter.php
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
integer
|
LINK_MAX_COUNT
|
10 |
#
Maximal number of links in the text. |
integer
|
LINK_SHORT_MAX_COUNT
|
3 |
#
Maximal number of links in a short text. |
float
|
LINK_MAX_RATIO
|
0.05 |
#
Ratio of links number to the total words number in the text. |
integer
|
LINK_WORDS_MIN_COUNT
|
30 |
#
Minimal words count where the links ratio is computed. |