Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pythainlp.util.spell_words #817

Merged
merged 2 commits into from
Jul 14, 2023
Merged

Add pythainlp.util.spell_words #817

merged 2 commits into from
Jul 14, 2023

Conversation

wannaphong
Copy link
Member

This function made for spll Thai word that fellow Thai book.

>>> from pythainlp.util.spell_words import spell_word
>>> spell_word("เสือ")
['สอ', 'เอือ', 'เสือ']
>>> spell_word("เสือ")
['สอ', 'เอือ', 'เสือ']
>>> spell_word("เสื้อ")
['สอ', 'เอือ', 'ไม้โท', 'เสื้อ']
>>> spell_word("คน")
['คอ', 'นอ', 'คน']
>>> spell_word("คนดี")
['คอ', 'นอ', 'คน', 'ดอ', 'อี', 'ดี', 'คนดี']

@wannaphong wannaphong added this to the 4.1 milestone Jul 11, 2023
@wannaphong wannaphong marked this pull request as ready for review July 11, 2023 14:32
@coveralls
Copy link

coveralls commented Jul 11, 2023

Coverage Status

coverage: 91.585% (-0.03%) from 91.616% when pulling 4109d68 on add-spell_words into 2e7dc23 on dev.

@wannaphong wannaphong added the enhancement enhance functionalities label Jul 11, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jul 11, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@wannaphong wannaphong merged commit c2451ad into dev Jul 14, 2023
9 of 14 checks passed
@wannaphong wannaphong deleted the add-spell_words branch July 19, 2023 16:54
@wannaphong wannaphong mentioned this pull request Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhance functionalities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants