Skip to content

Conversation

wannaphong
Copy link
Member

@wannaphong wannaphong commented Oct 17, 2025

What does this changes

Add get_words_spell_suggestion

The get_words_spell_suggestion function is designed to retrieve spelling suggestions for one or more input Thai words.

>>> from pythainlp.spell import get_words_spell_suggestion
>>> get_words_spell_suggestion("คมดี")
['คนดีผีคุ้ม', 'มีดคอม้า', 'คดี', 'มีดสองคม', 'มูลคดี']
>>> get_words_spell_suggestion(["คมดี","มะนา"])
[['คนดีผีคุ้ม', 'มีดคอม้า', 'คดี', 'มีดสองคม', 'มูลคดี'], ['มานะ', 'ละมาน', 'มาทนะ', 'มานทะลุน', 'รำมะนา']]

Fixes #1075

Your checklist for this pull request

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

Copy link

@coveralls
Copy link

Coverage Status

coverage: 52.236% (-0.5%) from 52.759%
when pulling d9b1677 on add-1075
into 999e2a6 on dev.

@wannaphong wannaphong merged commit 959a166 into dev Oct 20, 2025
33 of 43 checks passed
@wannaphong wannaphong deleted the add-1075 branch October 20, 2025 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TODO] Add Words Spelling Correction using Char2Vec

2 participants