API / Core / Intl / Segmenter

Segmenter

Not supported in Firefox

t

RESCRIPT
type t

granularity

RESCRIPT
type granularity = [#grapheme | #sentence | #word]

options

RESCRIPT
type options = { localeMatcher?: Core__Intl__Common.localeMatcher, granularity?: granularity, }

pluralCategories

RESCRIPT
type pluralCategories = [ | #few | #many | #one | #other | #two | #zero ]

resolvedOptions

RESCRIPT
type resolvedOptions = { locale: string, granularity: granularity, }

supportedLocalesOptions

RESCRIPT
type supportedLocalesOptions = { localeMatcher: Core__Intl__Common.localeMatcher, }

make

RESCRIPT
let make: (~locales: array<string>=?, ~options: options=?) => t

supportedLocalesOf

RESCRIPT
let supportedLocalesOf: (array<string>, ~options: supportedLocalesOptions=?) => t

resolvedOptions

RESCRIPT
let resolvedOptions: t => resolvedOptions

segment

RESCRIPT
let segment: (t, string) => Core__Intl__Segments.t