SegmentData

sealed external interface SegmentData(source)

Properties

Link copied to clipboard
abstract var index: Int

The code unit index in the original input string at which the segment begins.

Link copied to clipboard
abstract var input: String

The complete input string that was segmented.

Link copied to clipboard
abstract var isWordLike: Boolean?

A boolean value only if granularity is "word"; otherwise, undefined. If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.

Link copied to clipboard
abstract var segment: String

A string containing the segment extracted from the original input string.