Skip to content

Commit

Permalink
Merge pull request #799 from kangkengkhadev/dev
Browse files Browse the repository at this point in the history
fig เอือน อวน
  • Loading branch information
wannaphong committed May 21, 2023
2 parents 90c446e + 231a233 commit c7c0367
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pythainlp/khavee/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ def check_sara(self, word: str)-> str:
if 'ํ' in word:
sara = []
sara.append('อำ')
if 'เ' in word and 'ื' in word and 'อ' in word:
sara = []
sara.append('เอือ')
if sara == []:
return 'Cant find Sara in this word'
else:
Expand Down
2 changes: 1 addition & 1 deletion pythainlp/khavee/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# True

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

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

0 comments on commit c7c0367

Please sign in to comment.