Interface SegmenterOptions

An object with some or all properties of the Intl.Segmenter constructor options parameter.

MDN

Hierarchy

  • SegmenterOptions

Properties

granularity?: "grapheme" | "word" | "sentence"

The type of input to be split

localeMatcher?: "lookup" | "best fit"

The locale matching algorithm to use. For information about this option, see Intl page.