def path_to_word_exists(
    token,
    replacements,
    dep_relation_list=["det", "conj", "amod", "nmod", "nsubj"],
):

    """Returns True if there is a path in the dependency tree from the
    token to any word in the list of existing replacements, but only following
    paths with labels in the list `dep_relation_list`.
    """

    connected_list = []
    while token.dep_ in dep_relation_list:
        A = token.head.i in replacements and token.dep_ in dep_relation_list
        connected_list.append(A)
        token = token.head
    return any(connected_list)