'Adds a distance penalty of 1.0 if `value` doesn\'t match any
of the values in `options`. If an option is a compiled regular
expression, it will be considered equal if it matches against
`value`.'

def add_equality(self, key, value, options):

    if (not isinstance(options, (list, tuple))):
        options = [options]
    for opt in options:
        if self._eq(opt, value):
            dist = 0.0
            break
    else:
        dist = 1.0
    self.add(key, dist)
