Skip to content

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
@sonarqubecloud
Copy link

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
@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.

3 participants