config->getStopWords(); } public function isStopWord(string $word): bool { return in_array($word, $this->config->getStopWords(), true); } }