public function normalize(array $tokens) { foreach ($tokens as $k => $token) { $tokens[$k] = stemword($token, $this->lang, $this->charset); } return $tokens; }