Re-include helper function to capitalize sentences

This commit is contained in:
Peter Mosmans 2017-08-20 19:26:46 -07:00
parent 60ff680e3c
commit e6d6f082e4

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.