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

PyThaiNLP / pythainlp / 20908908159 / 1
54%
dev: 65%

Build:
Build:
LAST BUILD BRANCH: copilot/add-qwen3-0-6b-model
DEFAULT BRANCH: dev
Ran 12 Jan 2026 05:23AM UTC
Files 190
Run time 5s
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

12 Jan 2026 05:20AM UTC coverage: 53.705%. First build
20908908159.1

Pull #1175

github

Copilot
Add complete_soundex_similarity function for phonetic similarity calculation

Implemented the similarity calculation formula from Tapsai et al. (2020) paper:
- Character-wise comparison: S(X,Y) = Sum(sim(c_xi, c_yi)) / max(len(X), len(Y))
- Binary matching: sim = 1 if characters match, else 0
- Normalized by maximum length of the two codes

Features:
- Follows Equation (1) from Section 3.3 (page 55) of the paper
- Compares codes position-by-position (not by syllable blocks)
- Returns float between 0.0 (no match) and 1.0 (perfect match)
- Handles edge cases: empty strings, different lengths

Testing:
- Added comprehensive unit tests for various scenarios
- Perfect match returns 1.0
- Tone-only differences show ~0.83 similarity (5/6 matches)
- Multi-syllable words correctly compared character-by-character
- All tests passing

Examples verified:
- Perfect match: ก้าน vs ก้าน = 1.0
- Tone difference: คข7M2- vs คข7M0- = 0.8333 (5/6)
- Multi-syllable: ปุญญา vs บุญญา = 0.75
- Different words: ทราย vs ก้าน = 0.4286

Exported complete_soundex_similarity in pythainlp.soundex module.

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

4457 of 8299 relevant lines covered (53.71%)

0.54 hits per line

Source Files on job 20908908159.1
  • Tree
  • List 190
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20908908159
  • 5f96a390 on github
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