Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,8 +67,6 @@ def capitalize_sentences_and_nouns(text):
|
|
| 67 |
|
| 68 |
return ' '.join(corrected_text)
|
| 69 |
|
| 70 |
-
# Function to force capitalization of the first letter of every sentence
|
| 71 |
-
# Function to force capitalization of the first letter of every sentence and add missing full stops
|
| 72 |
# Function to force capitalization of the first letter of every sentence and ensure full stops
|
| 73 |
def force_first_letter_capital(text):
|
| 74 |
sentences = re.split(r'(?<=\w[.!?])\s+', text) # Split based on sentence-ending punctuation
|
|
|
|
| 67 |
|
| 68 |
return ' '.join(corrected_text)
|
| 69 |
|
|
|
|
|
|
|
| 70 |
# Function to force capitalization of the first letter of every sentence and ensure full stops
|
| 71 |
def force_first_letter_capital(text):
|
| 72 |
sentences = re.split(r'(?<=\w[.!?])\s+', text) # Split based on sentence-ending punctuation
|