bionomia / dwc_agent

Ruby gem to cleanse Darwin Core terms containing people names prior to passing to its dependent parser. Comes with a command-line utility.
MIT License
5 stars 1 forks source link

First member of team not recognised #12

Closed nickynicolson closed 2 years ago

nickynicolson commented 2 years ago

Using: command line utility to access the dwcagent gem

Version: v3.0.0.6

Input: da Torre A.R. & Correia M.P

Expected result:

[{"family":"Torre","given":"A.R.","suffix":null,"particle":"da","dropping_particle":null,"nick":null,"appellation":null,"title":null}
,{"family":"Correia","given":"M.P.","suffix":null,"particle":null,"dropping_particle":null,"nick":null,"appellation":null,"title":null}]

Actual result:

[{"family":"Correia","given":"M.P.","suffix":null,"particle":null,"dropping_particle":null,"nick":null,"appellation":null,"title":null}]
dshorthouse commented 2 years ago

Apologies for the delay. For some reason, I did not have notifications enabled in my own repo! It's the cleaning routine that runs post-parse that's causing this; it's confused by the lack of punctuation.

Input: da Torre, A.R. & Correia, M.P.

...works as expected. The absence of commas in reverse ordering of names is a bugger.

dshorthouse commented 2 years ago

Fixed in v3.0.0.8