Interface SegmenterOptions
interface SegmenterOptions {
granularity?: "grapheme" | "word" | "sentence";
localeMatcher?: "lookup" | "best fit";
}
granularity?: "grapheme" | "word" | "sentence";
localeMatcher?: "lookup" | "best fit";
}
Index
Properties
Properties
Optional
granularity
granularity?: "grapheme" | "word" | "sentence"
The type of input to be split
Optional
localeMatcher
localeMatcher ?: "lookup" | "best fit"
The locale matching algorithm to use. For information about this option, see Intl page.
An object with some or all properties of the
Intl.Segmenter
constructoroptions
parameter.MDN