Interface Segmenter

interface Segmenter {
    resolvedOptions(): ResolvedSegmenterOptions;
    segment(input: string): Segments;
}

Methods

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

    Parameters

    • input: string

      The text to be segmented as a string.

    Returns Segments

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