def normalize_reference_name(name):
    """
    Simplify potentially variable ways to write out a reference name
    by lowercasing it and replacing all dashes and spaces with underscores.

    Parameters
    ----------
    name : str

    Returns
    -------
    str
    """
    return name.strip().lower().replace("-", "_").replace(" ", "_")