Method | Description | |
---|---|---|
isBabble ( string $text ) : boolean | Returns if the text consists of repeating parts. | |
isBlack ( string $text ) : boolean | Returns if the given text contains blacklisted words. | |
isLinkSpam ( string $text ) : boolean | Returns if the text contains too many links. | |
isSpam ( string $text ) : boolean | Checks if the given text is spam. | |
setBlackList ( array $blackList ) : self | Sets word blacklist. | |
setIgnoreWords ( array $ignoreWords ) : self | Sets ignored word list. |
public isLinkSpam ( string $text ) : boolean | ||
$text | string | Checked text |
return | boolean |
public setBlackList ( array $blackList ) : self | ||
$blackList | array | Words blacklist |
return | self |
public setIgnoreWords ( array $ignoreWords ) : self | ||
$ignoreWords | array | Ignored words list |
return | self |