Skip to content

Add get_words_spell_suggestion - #1157

Merged
wannaphong merged 1 commit into
devfrom
add-1075
Oct 20, 2025
Merged

Add get_words_spell_suggestion#1157
wannaphong merged 1 commit into
devfrom
add-1075

Conversation

@wannaphong

@wannaphong wannaphong commented Oct 17, 2025

Copy link
Copy Markdown
Member

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

@sonarqubecloud

Copy link
Copy Markdown

@coveralls

Copy link
Copy Markdown

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