/** * Stem and then look up the word * @param string $token */ public function stem($token) { if (in_array($token, $this->whiteList)) { return $token; } return $this->spell->suggest($this->stemmer->stem($token))[0]; }
/** * Stem and then look up the word * @param string $token */ public function stem($token) { return $this->spell->suggest($this->stemmer->stem($token))[0]; }