from typing import OrderedDict


def bias_measurements(candidate):
    """
    Measure the bias features: OMIT, SATURATION from the
    given candidate
    """
    measurements = OrderedDict()
    statement = candidate.statement
    evidences = candidate.evidences
    terms_in_evidences = set([e.term for e in evidences])
    for term in statement.terms():
        if term in terms_in_evidences:
            continue
        key = 'OMIT=' + term.lemma
        measurements[key] = True
    measurements['SATURATION'] = len(evidences) / len(statement.evidences)
    return measurements