def METHOD_NAME(text, stats):
    offensive = False
    stats['total'] += 1
    if opt['safety'] == 'string_matcher' or opt['safety'] == 'all':
        bad_words = offensive_string_matcher.contains_offensive_language(text)
        if bad_words:
            stats['string_offensive'] += 1
            offensive = True
            stats['bad_words'].append(bad_words)
    if opt['safety'] == 'classifier' or opt['safety'] == 'all':
        if text in offensive_classifier:
            stats['classifier_offensive'] += 1
            offensive = True
    if offensive:
        stats['total_offensive'] += 1