version <- meta[["Version"]]

version_dois <- c(
  "2.3.1" = "10.5281/zenodo.21795954",
  "2.4.0" = "10.5281/zenodo.21864533",
  "2.5.0" = "10.5281/zenodo.23193095"
)
doi <- unname(version_dois[version])
if (is.na(doi)) {
  doi <- "10.5281/zenodo.20816585"
}

bibentry(
  bibtype = "Misc",
  title = "phontrast: Contrast and Separation Metrics for Phonological Categories",
  author = person(given = c("Grant", "M."), family = "Berry"),
  year = "2026",
  publisher = "Zenodo",
  version = version,
  doi = doi,
  url = paste0("https://doi.org/", doi),
  note = paste("R package version", version),
  textVersion = paste0(
    "Berry, Grant M. (2026). phontrast: Contrast and Separation Metrics ",
    "for Phonological Categories (Version ", version,
    ") [Computer software]. Zenodo. https://doi.org/", doi
  )
)

bibentry(
  bibtype = "Unpublished",
  title = paste(
    "Estimand or estimator? Comparing vowel overlap measures against a",
    "known ground truth"
  ),
  author = person(given = c("Grant", "M."), family = "Berry"),
  year = "2026",
  note = paste(
    "Manuscript under review, Journal of the Acoustical Society of America",
    "(JASA-14548R1). Replication package: https://osf.io/t2wsj"
  ),
  url = "https://osf.io/t2wsj",
  header = paste(
    "To cite the measurement protocol implemented by rank_contrasts()",
    "(and the simulation study behind its floors), also cite:"
  ),
  textVersion = paste0(
    "Berry, Grant M. (2026). Estimand or estimator? Comparing vowel overlap ",
    "measures against a known ground truth. Manuscript under review, Journal ",
    "of the Acoustical Society of America (JASA-14548R1). https://osf.io/t2wsj"
  )
)
