diff --git a/chatops/python/validate_report.py b/chatops/python/validate_report.py index 5e24150..110f656 100644 --- a/chatops/python/validate_report.py +++ b/chatops/python/validate_report.py @@ -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.