0 1

Every word both documents use adds weightA × weightB to the score. Largest contributions first:

    Words only one document uses contribute nothing: they multiply against a zero on the other side and drop out.