gnames / gnverifier

GNverifier verifies scientific names against more than 100 biodiversity databases
https://verifier.globalnames.org
MIT License
19 stars 1 forks source link

PartialExact match instead of Fuzzy ?? #83

Closed abubelinha closed 2 years ago

abubelinha commented 2 years ago

I am going back from verifier to resolver's api for a while, because for my use case it is crucial that all found fuzzy matches are returned.

I have just discovered a new verifier odd match (IMHO).

Looking to the list of sequential matches explained in resolver's api, it looks like to me that verifier is giving step 6 a higher priority than steps 3-5?:

match_type Explains how resolver found the name. If the resolver cannot find names corresponding to the entire queried name string, it sequentially removes terminal portions of the name string until a match is found. 1 - Exact match 2 - Exact match by canonical form of a name 3 - Fuzzy match by canonical form 4 - Partial exact match by species part of canonical form 5 - Partial fuzzy match by species part of canonical form 6 - Exact match by genus part of a canonical form

dimus commented 2 years ago

hm, looks like a bug in verifier to me, I'll take a look

dimus commented 2 years ago

@abubelinha, thank you very much for reporting this bug. It was an obscure typo in sql query, that prevented quite a few names with different suffixes get their fuzzy matching. Should work now:

https://verifier.globalnames.org/?all_matches=&all_sources=&capitalize=on&format=html&names=Isoetes+longisima