def embeddedness(target_list, compared_list):
    """
    Measure the embedddedness of one list within another; embeddedness of A in B = #(A int B)/#A
    :param target_list: The target list
    :param compared_list: The list to be compared with
    :return: Embeddedness score
    """
    intersection = [e for e in target_list if e in compared_list]
    return len(intersection)/len(target_list)