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 90c446e + 231a233 commit c7c0367Copy full SHA for c7c0367
pythainlp/khavee/core.py
@@ -190,6 +190,9 @@ def check_sara(self, word: str)-> str:
190
if 'ํ' in word:
191
sara = []
192
sara.append('อำ')
193
+ if 'เ' in word and 'ื' in word and 'อ' in word:
194
+ sara = []
195
+ sara.append('เอือ')
196
if sara == []:
197
return 'Cant find Sara in this word'
198
else:
pythainlp/khavee/example.py
@@ -16,7 +16,7 @@
16
# True
17
18
# การตรวจสอบคำสำผัสที่ผิด
19
-print('นํ้า กา',kv.is_sumpus('นํ้า','กา'))
+print('เพื่อน ล้วน',kv.is_sumpus('เพื่อน','ล้วน'))
20
# False
21
22
# การตรวจสอบคำ ครุ ลหุ
0 commit comments