/** * Segments the given string to its various part of speech components * * @param string $str The string to segment * @return array Segments parts of the given string */ public static function segment($str) { $segmenter = new TinySegmenter(); return $segmenter->segment($str); }