Skip to contents

Reads the manuscript for the studies it names – "Experiment 1", "Study 2a", "Pilot 2" – and returns them as normalised group codes (ex1, ex2a, pilot2). This is the AUTHORITATIVE list of a paper's studies: the authors say how many there are and what they are called, so it both names the groups and gives a count to validate any file grouping against (see .data_group_check_roster). Deterministic and free – a regex over text we already extracted – so it runs BEFORE any LLM.

Usage

data_study_roster(paper)

Arguments

paper

a paper object

Value

a character vector of group codes, or character(0) when the text names no numbered study.

Details

Only mentions of the form <word><optional space/punct><number><optional single letter> count; a bare "the experiment" names no specific study and is ignored. Sorted by number then letter, so the order is stable.

Examples

paper <- demopaper()
paper$text$text[1] <- "We report Study 1, Study 2a and a pilot (Pilot 1)."
data_study_roster(paper)
#> [1] "ex1"    "pilot1" "ex2a"