public function normalize(array $tokens) { return array_map(function ($token) { return PorterStemmer::Stem(strtolower($token)); }, $tokens); }