(filter_text, current_word)
return str(filter_text).lower().startswith(
            str(current_word).lower())
Check if current_word matches filter_text.
Check if current_word matches filter_text.
Check if current_word matches filter_text .
def check_can_complete(filter_text, current_word):
        """Check if current_word matches filter_text."""
        if not filter_text:
            return True

        if not current_word:
            return True

        return str(filter_text).lower().startswith(
            str(current_word).lower())
def check_can_complete ( filter_text , current_word ) : if not filter_text : return True if not current_word : return True return str ( filter_text ) . lower ( ) . startswith ( str ( current_word ) . lower ( ) )