We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a116136 + f906d15 commit 90c446eCopy full SHA for 90c446e
pythainlp/khavee/core.py
@@ -184,10 +184,12 @@ def check_sara(self, word: str)-> str:
184
sara.append('ออ')
185
186
# incase บ่
187
- if 'บ่' in word:
+ if 'บ่' == word:
188
sara = []
189
190
-
+ if 'ํ' in word:
191
+ sara = []
192
+ sara.append('อำ')
193
if sara == []:
194
return 'Cant find Sara in this word'
195
else:
pythainlp/khavee/example.py
@@ -16,12 +16,13 @@
16
# True
17
18
# การตรวจสอบคำสำผัสที่ผิด
19
-print('สรร ขวาน',kv.is_sumpus('สรร','ขวาน'))
+print('นํ้า กา',kv.is_sumpus('นํ้า','กา'))
20
# False
21
22
# การตรวจสอบคำ ครุ ลหุ
23
print('สรร',kv.check_karu_lahu('สรร'))
24
#karu
25
+
26
27
print('ชิชะ',kv.check_karu_lahu('ชิชะ'))
28
# lahu
0 commit comments