mcbopomofoweb
    Preparing search index...

    The main language model.

    Implements

    Index

    Constructors

    Methods

    • Adds user phrases.

      Parameters

      • key: string

        The key.

      • phrase: string

        The phrase.

      Returns void

    • Sets the string converter.

      Parameters

      • Optionalconverter: (input: string) => undefined | string

      Returns void

    • Sets the string converter.

      Parameters

      • Optionalconverter: (input: string) => undefined | string

      Returns void

    • Sets the excluded phrases.

      Parameters

      • map: Map<string, string[]>

      Returns void

    • Sets the string converter.

      Parameters

      • Optionalconverter: (input: string) => undefined | string

      Returns void

    • Parameters

      • callback: (key: string, phrase: string) => void

      Returns void

    • Parameters

      • callback: (map: Map<string, string[]>) => void

      Returns void

    • Sets the user phrases.

      Parameters

      • input: string | Map<string, string[]>

      Returns void

    • Converts to an absolute-order key if needed.

      Parameters

      • key: string

        a key that KeyHandler uses

      Returns string

      an absolute-order key if it's not a punctuation key.