The main language model.

Implements

Constructors

Methods

  • Sets the string converter.

    Parameters

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

          • input: string

          Returns undefined | string

    Returns void

  • Sets the string converter.

    Parameters

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

          • input: string

          Returns undefined | string

    Returns void

  • Sets the string converter.

    Parameters

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

          • input: string

          Returns undefined | string

    Returns void

  • Parameters

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

          • key: string
          • phrase: string

          Returns void

    Returns void

  • Parameters

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

          • map: Map<string, string[]>

          Returns void

    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.