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

PyThaiNLP / pythainlp / 20775507077
53%
dev: 53%

Build:
Build:
LAST BUILD BRANCH: copilot/add-profanity-detection-thai
DEFAULT BRANCH: dev
Ran 07 Jan 2026 08:44AM UTC
Jobs 1
Files 189
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

07 Jan 2026 08:38AM UTC coverage: 53.267% (+0.8%) from 52.461%
20775507077

Pull #1175

github

Copilot
Refactor process_syllable to reduce complexity

Extracted 10 helper methods from process_syllable to reduce cyclomatic complexity:
- _process_leading_vowel: Extract and process leading vowel
- _process_initial_consonant: Process initial consonant and cluster
- _detect_cluster: Detect if ร/ล/ว is a cluster
- _map_leading_vowel_code: Map leading vowel to codes
- _scan_vowels_tones_finals: Scan remaining characters
- _process_vowel_char: Process individual vowel character
- _process_final_consonant: Process final consonant
- _check_special_format: Check format type
- _apply_implicit_vowel: Apply implicit vowel defaults
- _adjust_ส_mapping: Special adjustments for ส
- _format_output: Format final output

The main process_syllable method now orchestrates these helpers, making it much more readable and maintainable. All tests pass.

Co-authored-by: bact <128572+bact@users.noreply.github.com>
Pull Request #1175: Add Complete Soundex for Thai Words Similarity Analysis

173 of 200 new or added lines in 3 files covered. (86.5%)

6 existing lines in 1 file now uncovered.

4305 of 8082 relevant lines covered (53.27%)

0.53 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
27
86.22
pythainlp/soundex/complete_soundex.py

Uncovered Existing Lines

Lines Coverage ∆ File
6
91.45
-2.56% pythainlp/generate/core.py
Jobs
ID Job ID Ran Files Coverage
1 20775507077.1 07 Jan 2026 08:44AM UTC 189
53.27
GitHub Action Run
Source Files on build 20775507077
  • Tree
  • List 189
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1175
  • PR Base - dev (#20675466936)
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