def is_clustering_finished(terminals):
    """
    Given a list of leave nodes, return True if all of them
    only contain a single word, otherwise return False.
    """
    leaf_sizes = [len(node['vecs']) for node in terminals]
    if max(leaf_sizes) > 1:
        return False
    else:
        return True