def METHOD_NAME(directory, path):
    """Return whether the given file is a 'pltp' of a 'pl'."""
    parsers = get_parsers()
    ext = splitext(basename(path))[1]
    ext = '.pl' if not ext else ext
    if ext in parsers:
        return parsers[ext]['type']
    raise UnknownExtension(path, join(directory.name, path))