crsh / citr

RStudio Addin to Insert Markdown Citations
Other
407 stars 46 forks source link

The name list field author cannot be parsed #94

Open andreifoldes opened 1 year ago

andreifoldes commented 1 year ago

Describe the bug I have many entries ignored by citr, revolving around "The name list field author cannot be parsed".

To Reproduce For example it happens for this entry: @article{Ven2020, title = {Brain-like Replay for Continual Learning with Artificial Neural Networks}, author = {van de Ven, Gido M. and Siegelmann, Hava T and Tolias, Andreas S}, year = {2020}, number = {Iclr}, pages = {1--14}, keywords = {⏳,{$\medwhitestar$},Context-modulated,Continual learning,Generative replay,Neural networks,Replay learning} } or this @article{Zeithamova2019, title = {Brain {{Mechanisms}} of {{Concept Learning}}}, author = {Zeithamova, Dagmar and Mack, Michael L. and Braunlich, Kurt and Davis, Tyler and Seger, Carol A. and {van Kesteren}, Marlieke T.R. and Wutz, Andreas}, year = {2019}, journal = {The Journal of neuroscience : the official journal of the Society for Neuroscience}, volume = {39}, number = {42}, pages = {8259--8266}, issn = {15292401}, doi = {10/ggkd66}, keywords = {⏳,Categorization,Computational modeling,Fmri,Hippocampus,Parietal cortex,Prefrontal cortex}, }

or this

@article{VanLieshout2018, title = {Induction and Relief of Curiosity Elicit Parietal and Frontal Activity}, author = {Van Lieshout, Lieke L.F. and Vandenbroucke, Annelinde R.E. and M{\"u}ller, Nils C.J. and Cools, Roshan and {de Lange}, Floris P.}, year = {2018}, journal = {Journal of Neuroscience}, volume = {38}, number = {10}, pages = {2579--2588}, issn = {15292401}, doi = {10/gc9qkx}, pmid = {29439166}, keywords = {⏳,Curiosity,Information prediction error,Insula,Outcome uncertainty,Parietal cortex,Reward}, }

While I agree there is some fishy stuff going on with the latter two, but what about the first one? Is it because they all have period in the author names?

alvinwmtan commented 8 months ago

I think citr has problems parsing multi-word last names—I also experience this error, specifically for entries that have authors with last names like "van (de(r)) ..." etc.

statzhero commented 3 weeks ago

Is there a solution beyond adjust the way names are exported from Zotero?

I remember this came up before: https://github.com/crsh/citr/issues/18

Here is another example of a more complex author field.

@article{vanderploeg2015,
  title = {Untapped Fossil Fuel and the Green Paradox: A Classroom Calibration of the Optimal Carbon Tax},
  author = {family=Ploeg, given=Frederick, prefix=van der, useprefix=true},
  date = {2015},
  journaltitle = {Environmental Economics and Policy Studies},
  shortjournal = {Environ.Econ.Policy Stud.},
  volume = {17},
  number = {2},
  pages = {185--210},
  issn = {1432-847X},
  doi = {10/ggkq9s}
}