Re-include helper function to capitalize sentences
This commit is contained in:
parent
60ff680e3c
commit
e6d6f082e4
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user