def polaritySanitizer(polarity):
    """Sanitize input polarity values.

    Renames the, case-insensitive, values 'positive', 'pos', or '+' to 'positive'
    and 'negative', 'neg', or '-' to 'negative'.

    Errors on unrecognized polarity value.

    Arguments:
        polarity (str): unsanitized polarity type
    """
    if polarity.lower() in ["positive", "pos", "+"]:
        polarity = "positive"
    elif polarity.lower() in ["negative", "neg", "-"]:
        polarity = "negative"
    else:
        raise ValueError(f"{polarity} is not recognized as a polarity type.")
    return polarity