gbif / name-parser

The core GBIF scientific name parser library
Apache License 2.0
18 stars 4 forks source link

Name parser incorrectly interpreting author strings containing "des" #62

Closed gdower closed 3 years ago

gdower commented 4 years ago

The name parser is incorrectly interpreting des in the author string Desbrochers des Loges, 1881 as an infraSpecificEpithet:

Sepidium dispar Desbrochers des Loges, 1881

https://data.dev.catalogue.life/catalogue/3/dataset/2073/verbatim?issue=subspecies%20assigned

curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X GET http://api.gbif.org/v1/parser/name\?name\=Sepidium+dispar+Desbrochers+des+Loges,+1881

[
  {
    "scientificName": "Sepidium dispar Desbrochers des Loges, 1881",
    "type": "SCIENTIFIC",
    "genusOrAbove": "Sepidium",
    "specificEpithet": "dispar",
    "infraSpecificEpithet": "des",
    "authorship": "Loges",
    "year": "1881",
    "parsed": true,
    "parsedPartially": false,
    "canonicalName": "Sepidium dispar des",
    "canonicalNameWithMarker": "Sepidium dispar des",
    "canonicalNameComplete": "Sepidium dispar des Loges, 1881",
    "rankMarker": "infrasp."
  }
]

Ref: https://github.com/Sp2000/colplus-backend/issues/624