$this->classification = 'gl';
} else if (Str::contains($this->raw, ['haha', 'hehe', 'hihi', 'kekw', 'lol', 'lul', 'xd'])) {
$this->classification = 'lol';
- } else if (Str::startsWith($this->raw, ['ahoi', 'hallo', 'hello', 'hi ', 'huhu']) || Str::endsWith($this->raw, ['hi', 'wave'])) {
+ } else if (Str::startsWith($this->raw, ['ahoi', 'hallo', 'hello', 'hi ', 'huhu']) || Str::endsWith($this->raw, ['hello', 'hi', 'wave'])) {
$this->classification = 'hi';
} else if (Str::contains($this->raw, ['pog', 'wow'])) {
$this->classification = 'pog';
$this->assertEquals('hi', TokenizedMessage::fromString('hi')->classify());
$this->assertEquals('hi', TokenizedMessage::fromString('hallo')->classify());
+ $this->assertEquals('hi', TokenizedMessage::fromString('osora9Hello')->classify());
$this->assertNotEquals('hi', TokenizedMessage::fromString('hier steht was')->classify());
$this->assertEquals('hype', TokenizedMessage::fromString('122 Hype!')->classify());