• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PyThaiNLP / pythainlp / 20750414203
53%

Build:
DEFAULT BRANCH: dev
Ran 06 Jan 2026 01:58PM UTC
Jobs 1
Files 188
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Jan 2026 01:54PM UTC coverage: 52.897% (+0.1%) from 52.763%
20750414203

push

github

web-flow
Fix check_marttra() Thai final consonant classification (#1173)

* Initial plan

* Fix check_marttra function to handle Thai final consonants correctly

- Fixed handle_karun_sound_silence to correctly remove only silent consonants marked by ์
- Fixed handling of ำ at the end to return กม (not กา)
- Fixed handling of consonant clusters with ร (e.g., กร, ขร, คร) in compound words
- Fixed handling of words with ไ/ใ vowels to distinguish true final consonants ย/ล from vowel components
- Fixed typo in consonant list (", ณ" -> "ณ")
- Uncommented all previously failing test cases

Co-authored-by: wannaphong <8536487+wannaphong@users.noreply.github.com>

* Address code review feedback

- Remove duplicate ล from กน consonant list (already classified as เกย on line 282)
- Use imported thai_consonants constant instead of duplicating the string
- Improves code maintainability and eliminates redundancy

Co-authored-by: wannaphong <8536487+wannaphong@users.noreply.github.com>

* Optimize helper function by moving to class method

- Moved has_true_final_yl from inline function to class method _has_true_final_yl
- Avoids recreating function object on every check_marttra call
- Improves performance and code organization

Co-authored-by: wannaphong <8536487+wannaphong@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: wannaphong <8536487+wannaphong@users.noreply.github.com>

22 of 23 new or added lines in 1 file covered. (95.65%)

1 existing line in 1 file now uncovered.

4209 of 7957 relevant lines covered (52.9%)

0.53 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
58.31
3.26% pythainlp/khavee/core.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
58.31
3.26% pythainlp/khavee/core.py
Jobs
ID Job ID Ran Files Coverage
1 20750414203.1 06 Jan 2026 01:58PM UTC 188
52.9
GitHub Action Run
Source Files on build 20750414203
  • Tree
  • List 188
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 41ed2c82 on github
  • Prev Build on dev (#20750393121)
  • Next Build on dev (#20775317113)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc