def __replace_repeat(sentence):
<EOL>repeat_dict = {}<EOL>if sentence is not None:<EOL><INDENT>while sentence.find('<STR_LIT>') != -<NUM_LIT:1>:<EOL><INDENT>begin_index = sentence.find('<STR_LIT>')<EOL>start_index = begin_index + <NUM_LIT:15><EOL>end_index = sentence.find('<STR_LIT:]>')<EOL>if sentence.find('<STR_LIT>') is not None:<EOL><INDENT>sub_list = sentence[start_index:end_index].split('<STR_LIT:U+002C>')<EOL>choice = sub_list[<NUM_LIT:0>]<EOL>repeat_text = sub_list[<NUM_LIT:1>]<EOL>repeat_dict[choice] = repeat_text<EOL>sentence = sentence.replace(sentence[begin_index:end_index + <NUM_LIT:1>], '<STR_LIT>', <NUM_LIT:1>)<EOL><DEDENT><DEDENT>while sentence.find('<STR_LIT>') != -<NUM_LIT:1>:<EOL><INDENT>if sentence.find('<STR_LIT>') is not None:<EOL><INDENT>repeat_begin_index = sentence.find('<STR_LIT>')<EOL>repeat_start_index = repeat_begin_index + <NUM_LIT:8><EOL>repeat_end_index = sentence.find('<STR_LIT:]>', repeat_start_index)<EOL>repeat_index = sentence[repeat_start_index:repeat_end_index]<EOL>if repeat_index in repeat_dict:<EOL><INDENT>sentence = sentence.replace(sentence[repeat_begin_index:repeat_end_index + <NUM_LIT:1>],<EOL>str(repeat_dict[repeat_index]))<EOL><DEDENT><DEDENT><DEDENT>if sentence.find('<STR_LIT>') == -<NUM_LIT:1>:<EOL><INDENT>return sentence<EOL><DEDENT>return sentence<EOL><DEDENT>else:<EOL><INDENT>return sentence<EOL><DEDENT>
Allows the use of repeating random-elements such as in the 'Ten green bottles' type sentences.

:param sentence: