Skip to content

Novis\Intl\Segmenter

Splits text into words or sentences, the way a language does. The methods take many strings and a locale tag, such as "ja", and split them all in one call.

Members

2 members.

MemberSignature
wordswords(array<string> $strings, string $locale): array<array<{ text: string, wordLike: bool }>>
sentencessentences(array<string> $strings, string $locale): array<array<string>>