It looks like disambiguation is the next thing that needs to happen in
citeproc-js. Before writing anything, I’d like to check a few details
about how it’s meant to work. Here’s the csl.rnc comment:
defines parameters relating to disambiguation, followed in the order given
below until a citation is disambiguated
disambiguate-add-names: add additional names, disregarding
the “et-al” setting, to disambiguate the citations
disambiguate-add-givenname: add a given name to a citation
to disambiguate it (e.g., John Doe, 2005 vs. Doe, 2005)
disambiguate-add-year-suffix: add a suffix to the year (e.g.,
2007a) when there are two works by the same author published in
the same year included in one bibliography
I’m assuming that disambiguation is uniform across citation and
bibliography. (I guess that’s obvious, but I just want to confirm
that I’m not missing something.)
I’d like to confirm that the priority order of disambiguation is fixed
(in the order given in the comment), but that the steps included will
depend on the options given in the style – so if no options are
given, no disambiguation is performed. I think that’s what the
comment says, but again I’d just like to confirm that I’m not
misunderstanding.
For disambiguate-add-names, would it be right to add one name at a
time until disambiguation is achieved, and use et al. if the
disambiguated form does not include all the names in a cite? I think
that’s right, but again, just confirming.
For disambiguate-add-givenname, should given names be added for all
names in one go? Or should they only be added where it makes a
difference (where given names differ)? Or should these also be added
one at a time until disambiguation is achieved?
With disambiguate-add-year-suffix, is there a shadow sort order (by
title, say) that should be used to cast the suffixes? Or is it safe
to apply them in the order in which they appear in the stream (their
order in the document)?
Sorry for all the questions, but I want to be sure I understand how
this should work before writing anything. It doesn’t look like
something that can be safely worked out in increments along the way
(it scares the living daylights out of me, actually, but I’ll keep
that to myself :).
Frank