public function isSpam(string $text) : bool
{
// Blacklisting first
if ($this->isBlack($text)) {
return true;
}
// Link count check
if ($this->isLinkSpam($text)) {
return true;
}
// Words repeat check
if ($this->isBabble($text)) {
return true;
}
return false;
}