public function isSpellchecked() { $fuzzySpellingTypes = [SpellcheckerInterface::SPELLING_TYPE_FUZZY, SpellcheckerInterface::SPELLING_TYPE_MOST_FUZZY]; return in_array($this->spellingType, $fuzzySpellingTypes); }