def METHOD_NAME(self, text):
    """
    Check if text is offensive using string matcher and classifier.
    """
    if text == '':
        return False
    if (
        hasattr(self, 'offensive_string_matcher')
        and text in self.offensive_string_matcher
    ):
        return True
    if hasattr(self, 'offensive_classifier') and text in self.offensive_classifier:
        return True
    return False