def METHOD_NAME(self, word, word_before_cursor):
    """Match the word and word before cursor.
    :param word: The input text broken into word tokens.
    :param word_before_cursor: The current word before the cursor, \
        which might be one or more blank spaces.
    :return: True if matched.
    """
    if self.ignore_case:
        word = word.lower()
    return word.startswith(word_before_cursor)