+ return false;
+ }
+
+ public function hasTokenThatStartsWith($text) {
+ foreach ($this->tokens as $token) {
+ if (Str::startsWith($token, $text)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public function startsOrEndsWith($text) {
+ return $this->startsWith($text) || $this->endsWith($text);
+ }
+
+ public function startsOrEndsWithRaw($text) {
+ return $this->startsWithRaw($text) || $this->endsWithRaw($text);
+ }
+
+ public function startsWith($text) {
+ return Str::startsWith($this->text, $text);
+ }
+
+ public function startsWithRaw($text) {
+ return Str::startsWith($this->raw, $text);
+ }
+
+
+ public function isSpammy() {
+ if ($this->startsWith('!')) {