def context_to_rgb(self, str):
matches = []<EOL>for clr in context:<EOL><INDENT>tags = context[clr]<EOL>for tag in tags:<EOL><INDENT>if tag.startswith(str)or str.startswith(tag):<EOL><INDENT>matches.append(clr)<EOL>break<EOL><DEDENT><DEDENT><DEDENT>matches = [color(name) for name in matches]<EOL>return matches<EOL>
Returns the colors that have the given word in their context.

        For example, the word "anger" appears
        in black, orange and red contexts,
        so the list will contain those three colors.