def is_determiner_relation(token1, token2):
    """Return True if `token1` is the determiner of `token2`."""
    return (
        (token1.upos == "DET")
        and (token1.deprel in ["det", "det:predet"])
        and (token2.upos == "NOUN")
        and (token1.head == token2.id)
    )