def contains_npmi_metric(metrics):
    """Checks if the csv file contains a metric that matches the plugin requirements.

    Args:
        metrics: The metrics in the header of the csv.

    Returns:
        Whether the header contains a metric that can be used by the plugin.
    """
    for metric in metrics:
        if metric.startswith("nPMI@") or metric.startswith("nPMI_diff@"):
            return True
    return False