Skip to content

Commit 2900943

Browse files
author
Hariom Vyas
authored
Update spell_checker.py
Added the changes as requested
1 parent 330710a commit 2900943

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
from textblob import TextBlob # importing textblob library
22

3-
a = input("Enter the word to be checked:- ") # incorrect spelling
4-
print("original text: "+str(a)) #printing original text
3+
t = 1
4+
while t:
5+
a = input("Enter the word to be checked:- ") # incorrect spelling
6+
print("original text: "+str(a)) #printing original text
57

6-
b = TextBlob(a) #correcting the text
8+
b = TextBlob(a) #correcting the text
79

8-
# prints the corrected spelling
9-
print("corrected text: "+str(b.correct()))
10+
# prints the corrected spelling
11+
print("corrected text: "+str(b.correct()))
12+
t = int(input("Try Again? 1 : 0 "))

0 commit comments

Comments
 (0)