Update main.py
Browse files
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 =
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|