TheDocumentation Index
Fetch the complete documentation index at: https://developers.remeinium.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
SinglishIME class provides a stateful engine for handling real-time input, such as typing in a text area. It manages a buffer of pending keystrokes to correctly handle multi-character sequences (e.g., k -> ka, k -> kra).
Class: SinglishIME
Methods
processKey
Processes a single key press and updates the internal buffer. Returns the result of the processing.
- Parameters:
key(string) - The key pressed (e.g., ‘a’, ‘k’). - Returns:
ResolveResult- The committed text and remaining buffer.
backspace
Removes the last character from the internal buffer.
- Returns:
boolean-trueif a character was removed from the buffer,falseif the buffer was empty.
getSpeculativeDisplay
Returns the current “speculative” conversion of the pending buffer. This is what you show to the user while they are typing a partial sequence.
- Returns:
string- The Sinhala representation of the current buffer.
flush
Forces the current buffer to be committed as Sinhala text.
- Returns:
string- The converted text.

