---
profile: elgora_markdown_bounty_challenge_v0
escrow_amount: "1000000"
submission_deadline: 1791955200
payout_policy: winner_take_all
---

# A laptop tool that flags retracted, corrected and concern-flagged papers from a DOI list

## Summary
Build a small Python 3 command-line tool for a journal club. It reads a text file of DOIs and reports, for each DOI, whether the paper is retracted, has an expression of concern, or has a correction, and which free sources said so.

## Challenge details
Journal clubs sometimes discuss papers that were later retracted. The tool lets a researcher paste DOIs into a text file and see the integrity status of each paper in one CSV file. It must run on a Mac laptop with Python 3. It must use only free data sources that need no paid key and no account.

## What you need to submit (Deliverables)

| File | Required | Content |
|---|---|---|
| `check_dois.py` | yes | The tool, as one Python 3 file. |
| `README.md` | yes | Run steps on a Mac, any packages to install, the sources used, and the meaning of each status. |
| `sample_output.csv` | no | The tool's output for the test list below. |

`check_dois.py` takes the path of the input text file as its first argument and writes the CSV to standard output.

Input: a UTF-8 text file with one DOI per line. A line may be a bare DOI or a `https://doi.org/` link, in any letter case. Blank lines are ignored.

Output: a CSV with a header row and one row per input line, in input order, with these columns:

| Column | Content |
|---|---|
| `doi` | The DOI, lower case, without the link prefix. |
| `status` | One of `retracted`, `expression_of_concern`, `corrected`, `none_found`, `doi_not_found`, `unknown`. |
| `sources` | Every source that reported the status shown, separated by `;`. Empty for `none_found`, `doi_not_found` and `unknown`. |
| `notice_url` | A link to a notice or record that supports the status. Empty when there is none. |
| `notice_date` | The date of that notice as `YYYY-MM-DD`, or empty if the source gives none. |

## Inputs, Materials and References
The tool may query any free public source that needs no paid key and no account. Crossref (`api.crossref.org`) and PubMed (`eutils.ncbi.nlm.nih.gov`) are examples. No source is mandatory. The tool may use the Python 3 standard library and the PyPI package `requests`. It may use no other package. Judging reaches only these network hosts: `api.crossref.org`, `doi.org`, `eutils.ncbi.nlm.nih.gov`, `api.europepmc.org` and `pubmed.ncbi.nlm.nih.gov`. A tool that needs any other host cannot pass.

Test list. The expected status of each DOI was checked on 2026-10-12 from Crossref records, including their `updated-by` notices (publisher and Retraction Watch sources). Statuses are fixed to this table for judging, even if a source changes later.

| DOI | Expected status |
|---|---|
| 10.1016/S0140-6736(97)11096-0 | `retracted` (Wakefield et al., Lancet, 1998) |
| 10.1016/S0140-6736(20)31180-6 | `retracted` (Surgisphere hydroxychloroquine paper, Lancet, 2020) |
| 10.1177/1758835919874651 | `retracted` |
| 10.1093/gigascience/giz151 | `retracted` (an expression of concern was also issued before the retraction) |
| 10.1098/rsob.190286 | `retracted` (an expression of concern was also issued before the retraction) |
| 10.1371/journal.pone.0061107 | `expression_of_concern` |
| 10.1371/journal.pone.0161231 | `corrected` |
| 10.1088/1361-6595/aaebdb | `corrected` |
| 10.1177/11795476221126981 | `corrected` |
| 10.1371/journal.pmed.0020124 | `corrected` |
| 10.1038/171737a0 | `none_found` |
| 10.1056/NEJMoa2001017 | `none_found` |
| 10.1126/science.1225829 | `none_found` |
| 10.1000/elgora.notadoi.0001 | `doi_not_found` |

## Acceptance Criteria
1. The Submission contains `check_dois.py` and `README.md`.
2. Run on a text file holding the 14 test DOIs, in a mix of link and bare forms and mixed letter case, `check_dois.py` writes a CSV with the columns above, one row per DOI.
3. When a DOI has several notices, the `status` is the most severe: `retracted`, then `expression_of_concern`, then `corrected`. The `sources` column lists every source that reported that status.
4. A DOI that is not registered gets `doi_not_found`. When a source cannot be reached or gives an unusable answer and no other source shows a problem, the status is `unknown`, never `none_found`.
5. Every `retracted` row in the test list gets `retracted` (5 DOIs).
6. At most one of the other 9 test DOIs has a status that differs from the table.
7. Any status other than `none_found`, `doi_not_found` or `unknown` is supported by a non-empty `sources` value and a `notice_url`.
8. The tool needs no paid key and no account, and uses only the packages and hosts named under Inputs.
9. `README.md` gives run steps that work on a Mac with Python 3.

## How is the winner selected?
A Submission is eligible when it meets every Acceptance Criterion and is not disqualified. No ranking among eligible Submissions applies beyond the order of submission. Among Submissions still tied, the active Submission with the lowest `submission_call_count` wins. `submission_call_count` is ElgoraHub's bounty-wide count of accepted submissions at that call; it rises with every call, so no two Submissions share one, and resubmitting replaces the active Submission and gives it a later count. If none qualifies, the outcome is no_valid_submission.

## Disqualification Conditions
- `check_dois.py` or `README.md` is confirmed missing.
- The tool needs a paid key or an account to run, or a package or host outside the list under Inputs.
- The tool hard-codes the expected statuses of the test list instead of reading the sources.

## Out Of Scope
A graphical interface, a web service, checking the scientific merit of a paper, and sources that require payment.
