@@ -293,7 +293,7 @@ def _c2_decomp(c2_char: str, seq_idx: int) -> str:
293293 return "" .join (_CODA .get (char , ["" , "" , "" ])[seq_idx ] for char in c2_char )
294294
295295
296- def th_pron_transliterate (text : str , mode : str = "ipa" ) -> str :
296+ def transliterate_wiktionary (text : str , mode : str = "ipa" ) -> str :
297297 """Transliterate Thai text using Wiktionary th-pron logic.
298298
299299 :param str text: Thai text input (single word or text fragment).
@@ -437,12 +437,7 @@ def get_word_dict(word: str) -> dict[str, str]:
437437 """
438438 return {
439439 "word" : word ,
440- "paiboon" : th_pron_transliterate (word , mode = "paiboon" ),
441- "royin" : th_pron_transliterate (word , mode = "royin" ),
442- "ipa" : th_pron_transliterate (word , mode = "ipa" ),
440+ "paiboon" : transliterate_wiktionary (word , mode = "paiboon" ),
441+ "royin" : transliterate_wiktionary (word , mode = "royin" ),
442+ "ipa" : transliterate_wiktionary (word , mode = "ipa" ),
443443 }
444-
445-
446- def transliterate_wiktionary (text : str , mode : str = "ipa" ) -> str :
447- """Backward-compatible alias for :func:`th_pron_transliterate`."""
448- return th_pron_transliterate (text , mode = mode )
0 commit comments