+ return false;
+ }
+
+ public function hasTokenThatEndsWith($text) {
+ foreach ($this->tokens as $token) {
+ if (Str::endsWith($token, $text)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public function hasTokenThatStartsOrEndsWith($text) {
+ foreach ($this->tokens as $token) {
+ if (Str::startsWith($token, $text) || Str::endsWith($token, $text)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public function hasTokenThatStartsWith($text) {
+ foreach ($this->tokens as $token) {
+ if (Str::startsWith($token, $text)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public function isLong() {
+ return strlen($this->emoteless_raw) > 20;
+ }
+
+ public function isShort() {
+ return strlen($this->emoteless_raw) < 15;
+ }
+
+ public function isVeryLong() {
+ return strlen($this->emoteless_raw) > 40;
+ }
+
+ public function startsOrEndsWith($text) {
+ return $this->startsWith($text) || $this->endsWith($text);
+ }
+
+ public function startsOrEndsWithEmotelessToken($text) {
+ return $this->startsWithEmotelessToken($text) || $this->endsWithEmotelessToken($text);
+ }
+
+ public function startsOrEndsWithRaw($text) {
+ return $this->startsWithRaw($text) || $this->endsWithRaw($text);
+ }
+
+ public function startsOrEndsWithToken($text) {
+ return $this->startsWithToken($text) || $this->endsWithToken($text);
+ }
+
+ public function startsWith($text) {
+ return Str::startsWith($this->text, $text);
+ }
+
+ public function startsWithEmoteless($text) {
+ return Str::startsWith($this->emoteless, $text);
+ }
+
+ public function startsWithEmotelessToken($text) {
+ return isset($this->emoteless_tokens[0]) && $this->emoteless_tokens[0] == $text;
+ }
+
+ public function startsWithRaw($text) {
+ return Str::startsWith($this->raw, $text);
+ }
+
+ public function startsWithToken($text) {
+ return isset($this->tokens[0]) && $this->tokens[0] == $text;
+ }
+
+
+ public function isSpammy() {
+ if ($this->startsWith('!')) {