Fix spelling errors in comments and docstrings#1238
Merged
Conversation
- Fixed "Cant" → "Can't" in examples/khavee.py and pythainlp/khavee/core.py - Fixed "spliting" → "splitting" in pythainlp/transliterate/core.py - Fixed "abbrevation" → "abbreviation" in pythainlp/transliterate/iso_11940.py - Fixed "whats" → "what's" in pythainlp/phayathaibert/core.py - Fixed "seperate" → "separate" in pythainlp/util/remove_trailing_repeat_consonants.py - Fixed "repition" → "repetition" in pythainlp/util/remove_trailing_repeat_consonants.py All fixes are minimal changes to comments and docstrings only. No functional code changes were made. False positives (etcc, tha, variable names) were intentionally not changed. Co-authored-by: bact <128572+bact@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Scan for spelling and grammatical errors in code and documents
Fix spelling errors in comments and docstrings
Jan 30, 2026
bact
reviewed
Jan 30, 2026
pythainlp/phayathaibert/core.py
Outdated
Comment on lines
52
to
53
| >>> rm_brackets("hey() what's[;] up{*&} man(hey)") | ||
| hey what's up man(hey) |
Member
There was a problem hiding this comment.
revert this. this is function input and output examples, do not modify.
Contributor
Author
There was a problem hiding this comment.
Reverted in commit 7e79219. The docstring examples now show the original "whats" to correctly demonstrate the function's input/output behavior.
pythainlp/phayathaibert/core.py
Outdated
Comment on lines
79
to
80
| >>> rm_useless_spaces("hey what's\n\nup") | ||
| hey what's up |
Member
There was a problem hiding this comment.
revert this. this is function input and output examples, do not modify.
Contributor
Author
There was a problem hiding this comment.
Reverted in commit 7e79219. The docstring examples now show the original "whats" to correctly demonstrate the function's input/output behavior.
Revert changes to input/output examples in docstrings as requested. These examples demonstrate actual function behavior and should not be modified. Co-authored-by: bact <128572+bact@users.noreply.github.com>
Contributor
Author
|
bact
approved these changes
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What does this changes
Corrects 5 spelling errors in comments and docstrings across 5 files. All changes are cosmetic text-only with zero functional impact.
What was wrong
Comments and docstrings contained spelling errors:
How this fixes it
Applied minimal spelling corrections using standard dictionary forms. Preserved intentional technical terms and function input/output examples:
etcc/ETCC/eTCC- Enhanced Thai Character Clustertha- ISO 639-3 language codepunctuations- API key name for backward compatibilitywhats- Preserved in docstring examples that demonstrate function behaviorChanged files:
examples/khavee.pypythainlp/khavee/core.pypythainlp/transliterate/core.pypythainlp/transliterate/iso_11940.pypythainlp/util/remove_trailing_repeat_consonants.pyYour checklist for this pull request
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.