Skip to content

Commit 2e489da

Browse files
author
Hariom Vyas
authored
Create spell_checker.py
1 parent 63176e2 commit 2e489da

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from textblob import TextBlob # importing textblob library
2+
3+
a = input("Enter the word to be checked:- ") # incorrect spelling
4+
print("original text: "+str(a)) #printing original text
5+
6+
b = TextBlob(a) #correcting the text
7+
8+
# prints the corrected spelling
9+
print("corrected text: "+str(b.correct()))

0 commit comments

Comments
 (0)