import re


def check_text(line):
    """ Compares a line to see if there are any blacklisted words"""
    is_okay = True

    blacklist = ["CHAPTER", "Part", "Section"]

    rgx_check = re.search('([A-Z])\. +(\w+)', line)

    if rgx_check is not None:
        is_okay = False

    if line == "":
        is_okay = False
    else:
        for word in blacklist:
            if word in line:
                is_okay = False
        if "REPEALED" in line:
            is_okay = True

    return is_okay