Skip to contents

Compares each DOI in candidate_dois against the theory's evidence[].source_doi and alternatives[].source_doi fields, by normalised form (lowercased, with any doi.org/dx.doi.org URL prefix stripped), so a fresh literature search, for example via OpenAlex, Scopus, or any other source, can be checked against what the theory already engages with. Returns the qualifying DOIs in their original form, deduplicated and sorted by normalised form. Deterministic and takes no network dependency: the search itself is left to whichever literature tool the caller prefers.

Usage

tf_new_evidence_dois(theory, candidate_dois)

Arguments

theory

A theory object (named list), e.g. from tf_read().

candidate_dois

Character vector of DOIs to check.

Value

A character vector of the candidate DOIs not already cited, deduplicated and sorted.

Examples

theory <- tf_theory("demo-1", "A demonstration theory") |>
  tf_add_construct("c_arousal", "Arousal", "Bodily activation.")
theory$evidence <- list(list(supports = "p1", source_doi = "10.1000/known"))
tf_new_evidence_dois(theory, c("10.1000/known", "10.1000/new"))
#> [1] "10.1000/new"