seatgeek / fuzzywuzzy

Fuzzy String Matching in Python
http://chairnerd.seatgeek.com/fuzzywuzzy-fuzzy-string-matching-in-python/
GNU General Public License v2.0
9.21k stars 874 forks source link

fail_on_tie feature for process.extractOne #210

Open chrisconlan opened 6 years ago

chrisconlan commented 6 years ago

Optional argument for process.extractOne() to fail by returning None when there are ties in scoring.

Right now, process.getUniqueMax() raises ValueError when duplicate maxima are found, which is caught by the process.extractOne(), cause it to return None. It is possible we want to raise a distinct error instead of returning None.

chrisconlan commented 6 years ago

Following up on this PR