oflakne26 commited on
Commit
e44ac21
1 Parent(s): 63c8a4b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -1
main.py CHANGED
@@ -108,7 +108,13 @@ async def check_word(data: WordCheckData) -> Dict[str, Any]:
108
 
109
  words_in_string = re.findall(r'\b\w+\b', input_string)
110
 
111
- found = any(word_in_string in all_forms for word_in_string in words_in_string)
 
 
 
 
 
 
112
 
113
  result = {
114
  "found": found
 
108
 
109
  words_in_string = re.findall(r'\b\w+\b', input_string)
110
 
111
+ found = False
112
+
113
+ for form in all_forms:
114
+ for word_in_string in words_in_string:
115
+ if form in word_in_string:
116
+ found = True
117
+ break
118
 
119
  result = {
120
  "found": found