@check_for(Function)<EOL><INDENT>def check_capitalized(self, function, docstring):<DEDENT>
if docstring:<EOL><INDENT>first_word = ast.literal_eval(docstring).split()[<NUM_LIT:0>]<EOL>if first_word == first_word.upper():<EOL><INDENT>return<EOL><DEDENT>for char in first_word:<EOL><INDENT>if char not in string.ascii_letters and char != "<STR_LIT:'>":<EOL><INDENT>return<EOL><DEDENT><DEDENT>if first_word != first_word.capitalize():<EOL><INDENT>return violations.D403(first_word.capitalize(), first_word)<EOL><DEDENT><DEDENT>
D403: First word of the first line should be properly capitalized.

        The [first line of a] docstring is a phrase ending in a period.