*/ public function tokenize(string $text) : array { return preg_split(self::SENTENCE_REGEX, $text, -1, PREG_SPLIT_NO_EMPTY) ?: []; } /** * Return the string representation of the object. * * @internal * * @return string */ public function __toString() : string { return 'Sentence'; } }