def extract_predicate_direction(predicate: str) -> tuple[str, bool]:
    """Extract predicate direction from string with enclosing arrows"""
    if "<-" in predicate:
        return predicate[2:-1], True
    else:
        return predicate[1:-2], False