def check(self, key, value):
key = key.lower().strip()<EOL>try:<EOL><INDENT>key = key.decode("<STR_LIT:utf-8>")<EOL><DEDENT>except UnicodeEncodeError:<EOL><INDENT>pass<EOL><DEDENT>key = self._remove_accents(key)<EOL>if self.keyword in key.split():<EOL><INDENT>self.value = value<EOL>return True<EOL><DEDENT>return False<EOL>
Check whether `key` matchs the :attr:`keyword`. If so, set the
:attr:`value` to `value`.

Args:
    key (str): Key which will be matched with :attr:`keyword`.
    value (str): Value which will be assigned to :attr:`value` if keys
                 matches.

Returns:
    True/False: Whether the key matched :attr:`keyword`.