Skip to content

Fix crashing and wrong-exception output bugs - #1548

Merged
bact merged 4 commits into
PyThaiNLP:mainfrom
bact:fix-crashing-output-bugs
Oct 6, 2026
Merged

bact merged 4 commits into
PyThaiNLP:mainfrom
bact:fix-crashing-output-bugs

Conversation

@bact

@bact bact commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

What do these changes do

  • sound_syllable, thaiword_to_time, convert_years, bleu_score, puan, WunsenTransliterate, check_klon and nighit no longer crash or raise the wrong exception
  • Add characterization, regression and adversarial tests
  • Remove the 11 fixed items from the ROADMAP; log nighit-w1-prefix

What was wrong

How this fixes it

Fixes #...

Your checklist for this pull request

  • Passed code styles and structures
  • Passed code linting checks and unit test

- sound_syllable, thaiword_to_time, convert_years, bleu_score, puan, WunsenTransliterate, check_klon and nighit no longer crash or raise the wrong exception
- Add characterization, regression and adversarial tests
- Remove the 11 fixed items from the ROADMAP; log nighit-w1-prefix

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact bact added the bug bugs in the library label Oct 6, 2026
@coveralls

coveralls commented Oct 6, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 72.615% (+0.01%) from 72.601% — bact:fix-crashing-output-bugs into PyThaiNLP:main

bact and others added 3 commits October 6, 2026 23:13
Add pinning tests for nighit bare "ํ" and the nighit error message,
and for the stale WunsenTransliterate model after a failed ThapSap
creation. Log them and the docstring/doctest mismatches found in
the docstring review in the ROADMAP. Set the PR number in the
CHANGELOG.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Start the summary of a multi-line docstring on the second line
(pydocstyle D213), as Codacy requires. Make docstrings consistent:
imperative summary, ordered fields, parallel wording, shared terms,
lines within 79 characters, no backslash continuations. Record the
style in AGENTS.md and set pydocstyle to ignore D212. Add :raises:
fields to the touched bug-fix functions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Compact AGENTS.md and drop checkboxes

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

@bact
bact merged commit 99c8913 into PyThaiNLP:main Oct 6, 2026
28 of 29 checks passed
@bact
bact deleted the fix-crashing-output-bugs branch October 6, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug bugs in the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants