Look up institutions in the corpus via the
Research Organization Registry (ROR) API and enrich
the institutions table with standardized metadata including country,
region, type, and income tier.
Works by matching raw affiliation strings against the ROR affiliation matching API, or by directly resolving existing ROR identifiers.
This enricher is idempotent: re-running it updates existing ROR data rather than duplicating it.
Usage
sm_enrich_ror(corpus, verbose = TRUE, call = rlang::caller_env())Value
An sm_corpus object with updated institutions and
authorships tables, plus new provenance rows.
Examples
if (FALSE) { # \dontrun{
corpus <- sm_example_corpus()
corpus <- sm_enrich_ror(corpus)
} # }