ts-package-starter - v2.0.5
    Preparing search index...

    Interface WadeGilesSegment

    Represents a single segment of the conversion result.

    interface WadeGilesSegment {
        alternatives?: string[];
        original: string;
        pinyin: string;
        tone?: number;
        wadeGiles: string;
    }
    Index
    alternatives?: string[]

    Alternative Wade-Giles readings for polyphones (when polyphoneMode is 'all').

    original: string

    The original Chinese character(s).

    pinyin: string

    The pinyin representation.

    tone?: number

    The tone number (1-5), if applicable.

    wadeGiles: string

    The Wade-Giles romanization. When urlSafe is enabled this is normalized the same way as WadeGilesResult.text (lowercase, no apostrophes, ü → u), so a slug can be assembled from the segments directly.