Skip to content

Commit c7c0367

Browse files
authored
Merge pull request #799 from kangkengkhadev/dev
fig เอือน อวน
2 parents 90c446e + 231a233 commit c7c0367

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pythainlp/khavee/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ def check_sara(self, word: str)-> str:
190190
if 'ํ' in word:
191191
sara = []
192192
sara.append('อำ')
193+
if 'เ' in word and 'ื' in word and 'อ' in word:
194+
sara = []
195+
sara.append('เอือ')
193196
if sara == []:
194197
return 'Cant find Sara in this word'
195198
else:

pythainlp/khavee/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# True
1717

1818
# การตรวจสอบคำสำผัสที่ผิด
19-
print('นํ้า กา',kv.is_sumpus('นํ้า','กา'))
19+
print('เพื่อน ล้วน',kv.is_sumpus('เพื่อน','ล้วน'))
2020
# False
2121

2222
# การตรวจสอบคำ ครุ ลหุ

0 commit comments

Comments
 (0)