Segmenter

open external class Segmenter(locales: UnicodeBCP47LocaleIdentifier = definedExternally, options: SegmenterOptions = definedExternally)(source)

Constructors

Link copied to clipboard
constructor(locales: Locale, options: SegmenterOptions = definedExternally)
constructor(locales: ReadonlyArray<UnicodeBCP47LocaleIdentifier>, options: SegmenterOptions = definedExternally)
constructor(locales: ReadonlyArray<Locale>, options: SegmenterOptions = definedExternally)
constructor(locales: UnicodeBCP47LocaleIdentifier = definedExternally, options: SegmenterOptions = definedExternally)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun segment(input: String): Segments

Returns Segments object containing the segments of the input string, using the segmenter's locale and granularity.