Re-include helper function to capitalize sentences

This commit is contained in:
Peter Mosmans
2017-08-20 19:26:46 -07:00
parent 072c24659f
commit ce8a0cdfca

View File

@@ -279,6 +279,13 @@ def abbreviations(word, **kwargs):
return word.upper()
def capitalize(sentence):
"""
Return capitalized version of @sentence
"""
return titlecase(sentence, callback=abbreviations)
def is_capitalized(line):
"""
Checks whether all words in @line start with a capital.