import re


def check_for_title(line):
    """
    Check the current line for whether it reveals the title of a new entry.
    :param srtr line: the line to check
    :return: tuple (the entry title, the entry type) or (None, None)
    """

    re_title = re.compile(
        '^(?P<title>.+) \\((?P<type>EPHEMERA OBJECT|SPELL|INCANTATION|OBJECT OF POWER|CONJURATION|INVOCATION|ENCHANTMENT|RITUAL|CHARACTER SECRETS|HOUSE SECRETS|FORTE ABILITY)\\)$')
    m = re_title.match(line)
    if m:
        return m.group('title'), m.group('type')
    return None, None