The core module provides stateless functions for converting Singlish strings to Sinhala.Documentation 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.
Functions
convertSinglishToSinhala
Main conversion function. Converts a given Singlish string into Sinhala Unicode text.
Parameters
text(string): The input Singlish text.options(ConversionOptions, optional): Configuration for conversion.
Returns
string: The converted Sinhala text.
convertLastWord
Converts only the last word in a string, preserving the prefix. Useful for simple input handling where only the current word should be processed.
Parameters
text(string): The input text containing multiple words.options(ConversionOptions, optional): Configuration.
Returns
string: The text with only the last word converted.
isSinhalaChar
Checks if a single character is within the Sinhala Unicode block.
Parameters
char(string): The character to check.
Returns
boolean:trueif the character is Sinhala.
containsSinhala
Checks if a string contains any Sinhala characters.
Parameters
text(string): The input string.
Returns
boolean:trueif at least one character is Sinhala.

