We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check_marttra() method in pythainlp.khavee.KhaveeVerifier does not properly handel "กร" as a final consonant.
check_marttra()
pythainlp.khavee.KhaveeVerifier
check_marttra("จักร") returns "กก"
check_marttra("จักร") returns "กน"
See a run in PR #967 at https://github.com/PyThaiNLP/pythainlp/actions/runs/11641064036/job/32419112079?pr=967
from pythainlp.khavee import KhaveeVerifier kv = KhaveeVerifier() kv.check_marttra("จักร")
5.0.4
All of these following test cases at
pythainlp/tests/test_khavee.py
Line 16 in 0c970fd
self.assertEqual(kv.check_marttra("ขำ"), "กม") self.assertEqual(kv.check_marttra("รมย์"), "กม") self.assertEqual(kv.check_marttra("ทัย"), "เกย") self.assertEqual(kv.check_marttra("ไทย"), "เกย") self.assertEqual(kv.check_marttra("ไกล"), "เกย") self.assertEqual(kv.check_marttra("ใกล้"), "เกย") self.assertEqual(kv.check_marttra("จักร"), "กก") self.assertEqual(kv.check_marttra("โยชน์"), "กด") self.assertEqual(kv.check_marttra("ยนต์"), "กน") self.assertEqual(kv.check_marttra("กรรณ"), "กน")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
check_marttra()
method inpythainlp.khavee.KhaveeVerifier
does not properly handel "กร" as a final consonant.Expected results
check_marttra("จักร") returns "กก"
Current results
check_marttra("จักร") returns "กน"
See a run in PR #967 at https://github.com/PyThaiNLP/pythainlp/actions/runs/11641064036/job/32419112079?pr=967
Steps to reproduce
PyThaiNLP version
5.0.4
More cases
All of these following test cases at
pythainlp/tests/test_khavee.py
Line 16 in 0c970fd
The text was updated successfully, but these errors were encountered: