Skip to content

Commit cf79a0c

Browse files
committed
Fix check_marttra function to handle 'กร' as a final consonant correctly
Fixes #966 Fixes the `check_marttra` function to handle "กร" as a final consonant correctly. * Modifies the `check_marttra` function in `pythainlp/khavee/core.py` to return "กก" for words ending with "กร". * Updates the test case for `check_marttra("จักร")` in `tests/core/test_khavee.py` to expect "กก". * Resolves the issue affecting other test cases in `tests/core/test_khavee.py` such as "ขำ", "รมย์", "ทัย", "ไทย", "ไกล", "ใกล้", "โยชน์", "ยนต์", and "กรรณ". --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/PyThaiNLP/pythainlp/issues/966?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent 42acd10 commit cf79a0c

File tree

2 files changed

+667
-667
lines changed

2 files changed

+667
-667
lines changed

0 commit comments

Comments
 (0)