File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,13 @@ def nectec_to_ipa(pronunciation: str) -> str:
125
125
"d" :"d" ,
126
126
"f" :"f" ,
127
127
"h" :"h" ,
128
- "j" :"y" ,
128
+ # The conversion of j depends on its position in the syllable.
129
+ # But, unfortunately, the current implementation cannot handle both cases.
130
+ # To remove confusions without changing the behavior and breaking existing codes,
131
+ # it is suggested that the first key-value mapping of j be simply commented out,
132
+ # as it would be overridden by the second one and thus never take effect from the beginning.
133
+ # See #846 for a more detailed discussion: https://github.com/PyThaiNLP/pythainlp/issues/846
134
+ # "j":"y",
129
135
"k" :"k" ,
130
136
"kʰ" :"kh" ,
131
137
"l" :"l" ,
@@ -198,7 +204,7 @@ def ipa_to_rtgs(ipa: str) -> str:
198
204
Docs: https://en.wikipedia.org/wiki/Help:IPA/Thai
199
205
200
206
:param str ipa: IPA phoneme
201
- :return: The RTGS that is converted
207
+ :return: The RTGS that is converted, according to rules listed in the Wikipedia page
202
208
:rtype: str
203
209
204
210
:Example:
You can’t perform that action at this time.
0 commit comments