nosegm
This commit is contained in:
@@ -17,7 +17,7 @@ def check_stopwords(text, stopwords):
|
||||
bool: True if any stopword is found in the text, False otherwise.
|
||||
"""
|
||||
# Normalize the text by converting it to lower case and splitting into words
|
||||
words = text.lower().split()
|
||||
words = text.replace(' ', '').lower().split()
|
||||
|
||||
# Iterate through each word and check for stopwords
|
||||
for word in words:
|
||||
|
Reference in New Issue
Block a user