Thai and Lao/Isan romanization
Readable Thai transliteration for real-world text.
`thairom` turns Thai script into learner-friendly romanization tuned for lyrics, common phrases, flashcards, and colloquial speech.
น้ำตา
nam dta
สบายดีไหม
sabai dee mai
อยู่ด้วยกัน
yoo duay gan
Demo
Try known examples
sabai dee mai
Examples
Preference-driven output
Comparison
Baseline output next to thairom
Thai
PyThaiNLP royin
PyThaiNLP thai2rom
thairom
น้ำตา
namta
namta
nam dta
สบายดีไหม
spaitimai
sabaidimai
sabai dee mai
ตอนนี้
tonni
tonni
tawnnee
ที่นี่
thini
thini
tee nee
เจ็ด
chet
chet
jed
ครอบครัว
khnopknua
khropkhrua
kropkrua
คนไทย
khntai
khonthai
khontai
คิดถึงเธอ
khittuengthoe
khitthuengthoe
kit tueng ter
Install
Use it from Python
pip install thairom
from thairom import romanize
print(romanize("น้ำตา")) # nam dta
print(romanize("สบายดีไหม")) # sabai dee mai
print(romanize("ฮักเจ้าหลาย", lang="lo")) # hak jao laai
Coverage
Built for the messy middle
- Thai words and short phrases
- Lao/Isan text written in Thai script
- Lyrics and colloquial phrases
- Regression-tested personal spelling preferences
License
MIT licensed
`thairom` is released under the MIT License. You can use, modify, and distribute it in personal, commercial, or open-source projects as long as the copyright and license notice are included.