def __replace_capitalise(sentence):
if sentence is not None:<EOL><INDENT>while sentence.find('<STR_LIT>') != -<NUM_LIT:1>:<EOL><INDENT>cap_index = _sentence.find('<STR_LIT>')<EOL>part1 = sentence[:cap_index]<EOL>part2 = sentence[cap_index + <NUM_LIT:12>:cap_index + <NUM_LIT>]<EOL>part3 = sentence[cap_index + <NUM_LIT>:]<EOL>if part2 in "<STR_LIT>":<EOL><INDENT>sentence = part1 + part2.capitalize() + part3<EOL><DEDENT>else:<EOL><INDENT>sentence = part1 + part2 + part3<EOL><DEDENT><DEDENT>if sentence.find('<STR_LIT>') == -<NUM_LIT:1>:<EOL><INDENT>return sentence<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return sentence<EOL><DEDENT>
here we replace all instances of #CAPITALISE and cap the next word.
    ############

    #NOTE:  Buggy as hell, as it doesn't account for words that are already
    #capitalized
    ############

    :param _sentence: