def as_plural(result_key):
<EOL>if result_key.endswith('<STR_LIT:y>'):<EOL><INDENT>return re.sub("<STR_LIT>", "<STR_LIT>", result_key)<EOL><DEDENT>elif result_key.endswith('<STR_LIT:address>'):<EOL><INDENT>return result_key + '<STR_LIT>'<EOL><DEDENT>elif result_key.endswith('<STR_LIT>'):<EOL><INDENT>return re.sub("<STR_LIT>", "<STR_LIT>", result_key)<EOL><DEDENT>elif not result_key.endswith('<STR_LIT:s>'):<EOL><INDENT>return result_key + '<STR_LIT:s>'<EOL><DEDENT>else:<EOL><INDENT>return result_key<EOL><DEDENT>
Given a result key, return in the plural form.