diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-11-19 11:53:51 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-11-19 11:53:51 +0100 |
commit | 501360998dd27484b3731e003bd25137e5710f66 (patch) | |
tree | c587bd01afeddd74f0f84901461c2f87939ca7aa | |
parent | 1aeabbc26b78667d2600831acba81da1066943ec (diff) | |
download | fuzzycat-501360998dd27484b3731e003bd25137e5710f66.tar.gz fuzzycat-501360998dd27484b3731e003bd25137e5710f66.zip |
verify: allow a larger gap
-rw-r--r-- | fuzzycat/verify.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fuzzycat/verify.py b/fuzzycat/verify.py index a644262..7c3cf0d 100644 --- a/fuzzycat/verify.py +++ b/fuzzycat/verify.py @@ -224,7 +224,11 @@ def compare(a, b): if a.get("title", "").lower() == b.get("title", "").lower(): if a_authors and (a_authors == b_authors): - if a_release_year and b_release_year and a_release_year != b_release_year: + # TODO: https://fatcat.wiki/release/utx5r5e6azbvljipznv7ejqzvq, + # https://fatcat.wiki/release/oceozrqtcbc4tloizhddxaj2ti + # preprint and published work may not be published in the same + # year; compromise allow a small gap + if a_release_year and b_release_year and abs(int(a_release_year) - int(b_release_year)) > 1: return (Status.DIFFERENT, Miss.YEAR) return (Status.EXACT, OK.TITLE_AUTHOR_MATCH) @@ -305,6 +309,7 @@ TITLE_FRAGMENT_BLACKLIST = set([ "student government minutes:", "ieee membership application", "nouvelles du corps médical", + "les conventions de genève", ]) # There titles appear too often, so ignore them for now. |