Adds user phrases.
The key.
The phrase.
Converts a macro.
Retrieves an array of Unigram objects for the specified key.
The string key to look up unigrams for
An array of Unigram objects matching the key
Whether Unigrams exist for the specified key.
The string key to look up unigrams for
Whether Unigrams exist for the key
Sets the string converter.
Optional
converter: (input: string) => undefined | stringSets the string converter.
Optional
converter: (input: string) => undefined | stringSets the string converter.
Optional
converter: (input: string) => undefined | stringSets the excluded phrases.
Sets the string converter.
Optional
converter: (input: string) => undefined | stringSets a callback to be invoked when the excluded phrases collection changes.
A function that will be called when the excluded phrases change. The function receives a Map where keys are phrases and values are arrays of strings representing the excluded phrases.
Sets a callback function to be invoked whenever the user phrases change.
A function that receives a Map of phrases. The Map contains string keys mapped to arrays of strings (representing the phrases).
void
Sets the user phrases.
Static
maybeConverts to an absolute-order key if needed.
a key that KeyHandler uses
an absolute-order key if it's not a punctuation key.
The main language model.