jgm / citeproc

CSL citation processing library in Haskell
BSD 2-Clause "Simplified" License
154 stars 15 forks source link

Disambiguation error #133

Open mk-uc opened 1 year ago

mk-uc commented 1 year ago

I know this has been addressed before, here, here, and here but I'm still running into a similar problem.

I cite a book and then in subsequent citations, it includes the year for seemingly no reason. Any help would be much appreciated!

Example bibtex:

@Book{Memmi2009,
author = {Memmi, Albert}, 
title = {Testament insolent}, 
publisher = {Odile Jacob}, 
address = {Paris}, 
year = {2009}, 
langid = {French}, 
keywords = {Memmi},}

Produces (note the inclusion of the year): Screenshot 2023-05-03 at 11 24 19 AM

I am using the latest Chicago Manual of Style 17th edition (full note, short title subsequent) link here

jgm commented 1 year ago

It would be good to have a reproducible test case. Minimal bib file and md file for reproducing the issue.

mk-uc commented 1 year ago

It's strange! I just tried with a minimal md and bib file and it came out properly (without the extra date in the second reference). I then tried it with a minimal md file and my main bib file and it also came out properly. Presumably that means it's doing that based on some of the other citations I have in that document? There's nothing with the same name though, so what can it be? Happy to share more files, just let me know what would be useful.

jgm commented 1 year ago

Yes, disambiguation occurs when you have another reference with the same author, title, etc.

I would try trimming down your bibtex file little by little til you get a minimal case that can reproduce the issue.

mk-uc commented 1 year ago

I have lots of other references with the same author, but none with even close to the same title.. so not really sure what would be causing it.

Edit: I just included all of the references I have from that author from my main bib file and copied it to the temp bib file, and it's still running normal. What could it be trying to disambiguate from?