Skip to content

Commit eaf7ccc

Browse files
author
codehouseindia
authored
Merge pull request codehouseindia#406 from suvarnsingbhable/master
Create SpellChecker.py
2 parents a4ca39b + 656346f commit eaf7ccc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

SpellChecker.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# First install spellcheker
2+
from spellchecker import SpellChecker
3+
spell = SpellChecker()
4+
misspelled = spell.unknown(['parayss', 'paralese', 'parallyslis', 'paralys'])
5+
for word in misspelled:
6+
print(spell.correction(word))
7+
print(spell.candidates(word))

0 commit comments

Comments
 (0)