Skip to main content

📦 @bntk/transliteration

transliterate()

function transliterate(text, options): string;

Defined in: transliterate.ts:98

Transliterates text between Bangla and Latin scripts using various modes.

Parameters

ParameterTypeDescription
textstringThe input text to transliterate
optionsTransliterationOptionsConfiguration options with desired mode

Returns

string

The transliterated text

Modes

  • avro

    Most popular phonetic typing system for Bangla

    transliterate("amar sOnar bangla", { mode: "avro" }); // → "আমার সোনার বাংলা"
    transliterate("jIbon", { mode: "avro" }); // → "জীবন"
  • orva

    Reverse transliteration from Bangla to Latin script (beta)

    transliterate("আমার সোনার বাংলা", { mode: "orva" }); // → "amar sOnar bangla"
    transliterate("জীবন", { mode: "orva" }); // → "jIbon"
  • banglish

    Informal phonetic system matching common texting patterns (not yet implemented)

    transliterate("amar shonar bangla", { mode: "banglish" }); // → "আমার সোনার বাংলা"
    transliterate("jibon", { mode: "banglish" }); // → "জীবন"
  • lishbang

    English-speaker friendly system with systematic mappings (not yet implemented)

    transliterate("ইট ইজ নট গুড।", { mode: "lishbang" }); // → "It is not good."
    transliterate("মাই নেইম ইজ আপন।", { mode: "lishbang" }); // → "My name is Apon."