Interface SegmenterOptions

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

MDN

interface SegmenterOptions {
    granularity?: "grapheme" | "word" | "sentence";
    localeMatcher?: "lookup" | "best fit";
}

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.