Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -1889,8 +1889,8 @@ def fix_subject_verb_agreement(sent: str) -> str:
|
|
| 1889 |
if not sent or not sent.strip():
|
| 1890 |
return sent
|
| 1891 |
|
| 1892 |
-
if re.search(r"\bdo(?:es|ing)?\s+so\b",
|
| 1893 |
-
return
|
| 1894 |
|
| 1895 |
sent = sent.strip()
|
| 1896 |
doc = nlp(sent)
|
|
|
|
| 1889 |
if not sent or not sent.strip():
|
| 1890 |
return sent
|
| 1891 |
|
| 1892 |
+
if re.search(r"\bdo(?:es|ing)?\s+so\b", sent, flags=re.I):
|
| 1893 |
+
return sent
|
| 1894 |
|
| 1895 |
sent = sent.strip()
|
| 1896 |
doc = nlp(sent)
|