This repository contains the code and the tagged dataset behind a large-scale analysis of what peer reviewers ask authors to change, and how authors answer, in the geosciences. We take the author responses published with EGUsphere preprints (2022–2024), extract every reviewer comment together with the authors' reply, and tag each comment–reply pair with a language model. The work was done at the Hydroinformatics Lab at Tulane University.
This repository holds code and the tagged pairs. The author-response PDFs are not included; the conversion script downloads them from EGUsphere.
Peer review is the main quality filter in science, yet large-scale evidence on the content of review comments is scarce because review reports are usually private. The EGU journals publish the full discussion of each preprint, including point-by-point author responses, which makes the exchange available for research.
The pipeline has three stages:
- Conversion. Author-response PDFs are converted to Markdown with MinerU.
- Extraction. Reviewer comments and author replies are extracted with the Anthropic Citations API. Every extracted comment and reply is a verbatim passage of the source text (copied by the API from the document, not written by the model), so no analysed text can be invented or altered. The script
build_final_pairs.pythen turns the JSONL results of the API into regular JSON files, one per author response. - Tagging. Every comment–reply pair is tagged with a language model served through an OpenAI-compatible API (Qwen3.6-35B-A3B for the paper): the topic and nature of the comment, the actions it requests, how specific and actionable it is, and the authors' reply stance.
- RQ1. Is peer-review feedback mainly concerned with the form of a manuscript (presentation and wording) or with its content (the science and its interpretation)?
- RQ2. To what extent do reviewers scrutinise data, statistics, methods and models, and how often do they request data, code, additional analyses or new experiments?
- RQ3. How do authors respond to reviewer comments, and which kinds of comments do they resist?
- RQ4. How does the composition of feedback change from the first to later review rounds of the same manuscript?
Questions RQ1 and RQ2 follow open questions raised by Tennant and Ross-Hellauer (2020), The limitations to our understanding of peer review.
| Item | Value |
|---|---|
| Source | Author responses to peer review published with EGUsphere preprints |
| Period | 2022–2024 |
| Author-response files | 4,996 |
| Preprints | 2,862 (702 from 2022, 1,815 from 2023, 345 from 2024) |
| Comment–reply pairs | 131,369 (131,354 tagged, 15 left untagged) |
The file input_dataset/authors_response_file_list.csv lists every author-response file used. Each row has:
| Column | Meaning |
|---|---|
filename |
File name, e.g. egusphere-2022-1203-AR1_file.txt (preprint year, number and author-response round) |
egusphere_url |
EGUsphere page of the manuscript |
manuscript_title |
Title of the manuscript |
author_response_url |
URL of the author-response PDF on the EGUsphere server |
The file name egusphere-<year>-<number>-AR<k> identifies the preprint and the author-response round k, so that successive rounds of the same manuscript can be linked.
tagged-comment-reply-pairs.zip contains the output of the tagging script (Qwen3.6-35B-A3B): one JSON file per author-response file (4,996 files). Each file is a list of objects with this structure:
{
"comment": "<comment text>",
"reply": "<reply text>",
"tags": {
"topic": "<topic category>",
"nature": "<nature category>",
"request_types": ["<request type>", "..."],
"specificity": 1,
"actionability": 1,
"reply_stance": "<reply stance category>"
}
}tags is null for a pair the model could not tag. The comment and reply are verbatim Markdown text from the converted author response.
topic (main subject of the comment, one value)
| Value | Meaning |
|---|---|
novelty_significance |
novelty, significance, contribution of the work, fit to the journal |
research_question_framing |
aims, hypotheses, motivation, framing of the study, claims in title or abstract |
methodology_design |
study design, choice of methods, field, laboratory or sampling design |
data_quality |
data sources, data quality, sample size, representativeness, preprocessing |
statistics_analysis |
statistical methods, tests, fitting, uncertainty quantification, error estimates |
model_simulation |
numerical or process models, parameterisation, validation, sensitivity of models |
results_interpretation |
interpretation of results, causality, alternative explanations |
conclusions_support |
whether conclusions are supported or overstated, discussion |
literature_context |
missing references, positioning relative to earlier work, citation requests |
figures_tables |
figures, tables, captions, legends, axes, units shown in them |
text_clarity |
clarity, structure, organisation, definitions, terminology, missing explanations |
language_typos |
grammar, typos, wording, formatting, reference style |
reproducibility_availability |
code or data availability, supplementary material, documentation |
limitations_uncertainty |
assumptions, caveats, discussion of limitations |
general_assessment |
overall remarks, praise, recommendation, editorial or process remarks |
other |
anything that fits none of the above |
nature (one value). In the paper, content = substantive + interpretive and form = presentation + cosmetic.
| Value | Meaning |
|---|---|
substantive |
points to a possible error, gap or flaw in the science (data, methods, analysis, inference) |
interpretive |
questions or offers another reading of results, framing or significance |
presentation |
asks for clearer or better organised explanation, figures or structure |
cosmetic |
typos, wording, formatting, or other small edits |
request_types (every kind of action the comment asks for; a list that can be empty)
| Value | Meaning |
|---|---|
data |
asks for more data, observations or data access |
code |
asks for code or software to be shared or documented |
additional_analysis |
asks for a new or different analysis, test or comparison |
additional_experiments |
asks for new experiments, simulations or measurements |
citations |
asks to add or discuss specific references |
rewrite |
asks to rewrite, restructure, shorten or extend text |
clarification |
asks for an explanation or definition |
error_correction |
points out a specific mistake to fix |
justification |
asks the authors to justify a choice or claim |
reply_stance (how the authors answer; one value)
| Value | Meaning |
|---|---|
accept |
the authors do what was asked (change made or promised) |
partial |
the authors do part of it, or do it differently |
rebut |
the authors disagree and explain why, without making the change |
decline |
the authors decline to do it (out of scope, not possible) |
explain_only |
the authors only explain or answer; no change was requested or made |
unclear |
the reply does not show what the authors did about the comment |
specificity and actionability are scores from 1 to 3 for the comment. Specificity: 1 = general remark without a concrete location, 3 = points to the exact place, value or statement. Actionability: 1 = nothing the authors could do with it, 3 = clear what change or answer is wanted. In the paper both scales are found to saturate and are not used as quality indicators.
.
├── LICENSE
├── README.md
├── tagged-comment-reply-pairs.zip
├── input_dataset/
│ └── authors_response_file_list.csv
├── requirements.txt
├── mineru_conversion/
│ └── convert_pdfs.py
├── pair_extraction/
│ ├── extract_pairs.py
│ ├── build_final_pairs.py
│ └── .env.example
└── comment_reply_tagging/
├── tag_pairs.py
└── .env.example
| File | What it does |
|---|---|
input_dataset/authors_response_file_list.csv |
The list of author-response files analysed (file name, EGUsphere page, manuscript title, PDF URL). |
mineru_conversion/convert_pdfs.py |
Downloads each listed author-response PDF from EGUsphere and converts it to Markdown with MinerU. The PDF is written to a temporary folder only while it is parsed and deleted straight after. Also saves MinerU's "middle JSON" (page, position and type of each block) and a conversion log. |
pair_extraction/extract_pairs.py |
Splits each Markdown file into blocks (paragraphs, list items, table cells and so on) and extracts comment–reply pairs with the Anthropic Citations API and the Message Batches API. The text of each comment and reply is taken from the citations, not from the model's own words. Writes per-file pair files, quality reports and a cost report. |
pair_extraction/build_final_pairs.py |
Turns the JSONL results of an extraction run into regular JSON files, one per author response (comment_reply_tagging/comment-reply-pairs/<name>.json). |
comment_reply_tagging/tag_pairs.py |
Tags comment–reply pairs with any model served on an OpenAI-compatible API (OpenAI, vLLM, LM Studio, Ollama and others). Output is validated against a strict JSON schema and invalid records are re-requested. |
tagged-comment-reply-pairs.zip |
The tagged pairs used in the paper (see Tagged pairs). |
The scripts are plain Python scripts. Use Python 3.9 or newer and install the packages each stage needs:
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt # all stages
# or only what a stage needs:
pip install mineru tqdm # stage 1: conversion
pip install anthropic python-dotenv markdown-it-py # stage 2: extraction
pip install openai jsonschema python-dotenv tqdm # stage 3: taggingCredentials are read from a .env file placed next to the script that uses it. Copy the .env.example next to each script to .env and fill it in. Never commit .env files.
| Stage | File | Variables |
|---|---|---|
| Conversion | MinerU configuration | See the MinerU documentation (the script uses the advanced tier, set by TIER) |
| Extraction | pair_extraction/.env |
ANTHROPIC_API_KEY=sk-ant-... |
| Tagging | comment_reply_tagging/.env |
OPENAI_BASE_URL (e.g. http://localhost:11434/v1), OPENAI_API_KEY (any text for a local server), optional TOKEN_PARAM (max_tokens or max_completion_tokens) |
Run all commands from the repository root. Each script writes its results next to itself and can be resumed after an interruption. Start with a small test run before processing the whole dataset.
| Stage | Script | Input | Output |
|---|---|---|---|
| 1 | mineru_conversion/convert_pdfs.py |
input_dataset/authors_response_file_list.csv |
mineru_conversion/markdown/<name>.md, middle_json/<name>.json, conversion_log.csv, conversion.log |
| 2 | pair_extraction/extract_pairs.py, then pair_extraction/build_final_pairs.py |
mineru_conversion/markdown/ |
pair_extraction/runs/<run id>/, then comment_reply_tagging/comment-reply-pairs/<name>.json |
| 3 | comment_reply_tagging/tag_pairs.py |
comment_reply_tagging/comment-reply-pairs/<name>.json |
comment_reply_tagging/tagged-pairs/<name>.json and logs |
# a few files first (names with or without _file.txt)
python mineru_conversion/convert_pdfs.py egusphere-2023-84-AR1 egusphere-2022-1203-AR2
# every listed file; files whose Markdown already exists are skipped, so re-running resumes
python mineru_conversion/convert_pdfs.pyDownloads run a few files ahead of the parser. Files that fail are logged in conversion_log.csv; re-run the script to retry them.
Choose exactly one mode:
python pair_extraction/extract_pairs.py --random 20 # 20 random files, as a test
python pair_extraction/extract_pairs.py --file egusphere-2023-84-AR1
python pair_extraction/extract_pairs.py --all # every Markdown fileEach run gets its own folder pair_extraction/runs/<run id>/ with config.json, the raw API responses (raw/), the extracted pairs (pairs/<file>.jsonl), chunk_report.csv, file_report.csv and cost_report.json. Useful options:
| Option | Purpose |
|---|---|
--submit-only |
Create the batches and stop (batches finish asynchronously). |
--resume RUN_DIR |
Collect and process the batches of an earlier run. |
--rerun-failed RUN_DIR |
Re-run only the chunks that fail the quality gate (failed request, truncated output, unparsed lines, too many uncited pairs). |
--rerun-full RUN_DIR |
Re-run every file of an earlier run with the current prompt and settings. |
--model MODEL |
Model to use (default claude-haiku-5-5, the model used in the paper). |
Then convert the results into regular JSON files for the tagging stage:
python pair_extraction/build_final_pairs.py # newest run folder ending in _all
python pair_extraction/build_final_pairs.py RUN_DIR # a specific runThe cost report is computed from the token counts returned by the API and the PRICES table in the script; check it against the current pricing page.
tag_pairs.py reads one JSON file per author-response file from comment_reply_tagging/comment-reply-pairs/, each an array of {"comment": ..., "reply": ...} objects (the structure of the tagged output without tags). To try the tagging step without running stages 1–2, extract tagged-comment-reply-pairs.zip and use the comment and reply fields of its files.
Start a local OpenAI-compatible server (for example Ollama with the model used in the paper), then:
# test run
python comment_reply_tagging/tag_pairs.py --random 5 --base-url http://localhost:11434/v1 --model qwen3.6:35b-a3b
# the whole dataset (files whose output exists are skipped unless --force is given)
python comment_reply_tagging/tag_pairs.py --all --base-url http://localhost:11434/v1 --model qwen3.6:35b-a3b
# split the work over two computers, then copy the two tagged-pairs folders together
python comment_reply_tagging/tag_pairs.py --part 1/2 --base-url ...
python comment_reply_tagging/tag_pairs.py --part 2/2 --base-url ...The pairs of a file are sent in windows of at most 20 pairs (about 40,000 characters), preceded by two earlier pairs as context only. Comments and replies are never truncated. Every record is validated against the JSON schema and invalid or missing records are requested again (up to two times); a pair that still fails gets "tags": null. Everything printed is appended to tagged-pairs/tagging.log (so the script can run in the background), and tagging_log.csv and request_log.csv hold per-file and per-request statistics. A test run prints a projection of the time the whole dataset would take.
The categories are defined by the dictionaries TOPICS, NATURES, REQUEST_TYPES and STANCES at the top of tag_pairs.py. Editing them changes the prompt and the JSON schema accordingly.
According to the model's classification (details and validation are in the paper):
- About two thirds of comments concern the form of a manuscript (presentation 41.3%, cosmetic 23.3%) and about one third its content.
- Requests for data (1.3%), code (0.2%) and new experiments (0.4%) are rare.
- Authors accept about 80% of comments; acceptance is near-universal for cosmetic comments and lowest for interpretive comments and for requests for additional experiments.
- Later review rounds shift further toward form.
- Comments are observed only as the authors quote them; the manuscripts, the original review reports and the editorial decisions are not analysed.
- The tags are produced by one language model. A manual check on a stratified sample is reported in the paper; the finer categories (for example substantive versus interpretive) agree less well with human coding than the form-versus-content split.
- The corpus consists of open reviews of EGUsphere preprints with published author responses, so the findings describe this open-review setting rather than peer review in general.
If you use this code or the tagged dataset, please cite the paper and this repository.
Lele, H., Mitta, D., Sermet, Y., & Demir, I. (2026). A Large-Scale Computational Analysis of Peer Review Patterns in the Geosciences. [Manuscript in preparation]
@misc{lele2026formovercontent,
author = {Lele, Harshal and Mitta, Deepika and Sermet, Yusuf and Demir, Ibrahim},
title = {A Large-Scale Computational Analysis of Peer Review Patterns in the Geosciences},
year = {2026},
note = {Manuscript in preparation. Code and data: https://github.com/uihilab/ReviewerMetadataAnalysis},
url = {https://github.com/uihilab/ReviewerMetadataAnalysis}
}Please also credit the sources of the underlying data (EGUsphere / Copernicus Publications) and the tools used by the pipeline: MinerU for conversion, the Anthropic Citations API for extraction, and Qwen3.6-35B-A3B for tagging.
The EGU review meta-analysis was carried out at the Hydroinformatics Lab at Tulane University. The author responses analysed here are published by EGUsphere (European Geosciences Union / Copernicus Publications).
This research was supported by the U.S. Department of the Interior (DOI)-U.S. Geological Survey (USGS) under Award No. G25AP00137. The statements, findings, conclusions, and recommendations are those of the author(s) and do not necessarily reflect the views of the U.S. Geological Survey.
Harshal Lele, ByWater Institute, Tulane University.
Corresponding author: hlele1@tulane.edu
Questions and issues are welcome through GitHub Issues.
This project is distributed under the MIT License (see LICENSE). The license covers the code in this repository; check the EGUsphere / Copernicus terms for the reuse of the author-response texts contained in the tagged pairs.