Anekanta¶
What do later authors cite a paper for? One author may borrow its research design, another may report a finding, and a third may challenge its conclusion. Anekanta collects the passages in which later authors cite a work and records where they appear. A reader can then ask what each passage attributes to the source and whether the source supports that attribution.
Consider Chattopadhyay and Duflo’s study of women leading village councils in India. Later authors cite it for the design of the quota system, for changes in political participation, and for what happened to roads and water. Those uses call for different checks. Table V reports more drinking-water facilities built or repaired in villages with reserved leadership in both states. The share of roads in good condition was 18 percentage points higher in West Bengal and 8 points lower in Rajasthan. A summary saying that women leaders invested more in water and roads loses the state distinction and changes what was measured. Original study, Table V · A worked comparison of citing passages
Anekānta means many-sidedness. The project began as Autosum in 2015. Its focus is how authors use a source and what a reader would reasonably infer from their words. The software locates candidate passages. Judging accuracy requires reading the passage alongside the relevant evidence in the cited work. Motivated Citations · Documentation
Try it on 16 papers¶
With uv installed, run the following commands. The repository includes the PDFs for this example.
git clone https://github.com/recite/anekanta.git
cd anekanta
uv run anekanta extract testdata/iyengar-2012.json --author Iyengar --year 2012 > passages.jsonl
The extractor finds eight candidate mentions across five of the 16 PDFs. Each line of output describes one PDF, including its identifier, file hash, search method, and outcome. Each match has a quotation, a PDF page, and a review status. A paper with zero matches gets its own record, as does a paper that could not be read. Compare your output with the saved results.
For a two-author work, supply the surnames in publication order, for example --author Chattopadhyay --coauthor Duflo --year 2004. This matches both “Chattopadhyay and Duflo (2004)” and “(Chattopadhyay & Duflo, 2004).” Check the bibliography when a year has a suffix such as 2004b. The authors may have published more than one paper that year.
Follow a citation from discovery to review¶
Hayes and Lawless cite Affect, Not Ideology through an endnote. To follow that citation, run these commands from the repository root.
uv run anekanta discover 10.1093/poq/nfs038 --citing-doi 10.1017/s1537592714003156 --output run/discovery.json
uv run anekanta acquire run/discovery.json --local-manifest testdata/iyengar-2012.json --offline --output run/manifest.json
uv run anekanta extract run/manifest.json --author Iyengar --year 2012 > run/candidates.jsonl
uv run anekanta import-review run/manifest.json schema/examples/hayes-lawless.json > run/reviewed.jsonl
Discover citing works. OpenAlex supplies the works and their identifiers. Omit
--citing-doito request all citing works. Each page saves the works found so far and the cursor for the next request. SetOPENALEX_API_KEYto page beyond the first response. Use--max-pages Nto limit a run and--resumeto continue it. OpenAlex authenticationAcquire the PDFs. The example uses a local catalog and verifies each file’s hash. Online acquisition also tries open-access PDF links from OpenAlex. The resulting manifest records unavailable sources. To process an unfinished discovery run, pass
--allow-partial.Extract candidate passages. The author-and-year search returns
no_matchfor Hayes and Lawless. It can miss endnotes, numbered references, and citations split over pages. Use--cache DIRECTORYto reuse parsed text when comparing searches. The command writes one result per input and returns exit status 1 if any paper failed.Import a checked passage. A reader traced note 40 on printed page 98 (PDF page 4) to the reference on printed page 110 (PDF page 16). The import verifies that the existing annotation identifies the same citing work, cited work, and PDF. Here
source_checkedrecords that the reader located the passage and its citation. Its accuracy as a description of the cited study is a separate judgment. Checked annotation
When several papers are cited together¶
A sentence can cite three papers for one claim. Check what each contributes. One may supply the estimate, another the method, and a third a result from a different population. The Same Same project describes recording each claim once per cited work. The miscitation study design asks whether a careful reader would likely be misled by the attribution.
Development and earlier work¶
The package supports Python 3.10 and later. Run make ci for tests, lint, and type checks, or make ci-docker on a standard Python image. On Python 3.13 or later, make docs builds the Sphinx documentation with the Furo theme. The documentation includes this README directly.
The wheel includes the discovery, acquisition, and result schemas. Build it with uv build and install it with uv tool install path/to/the-built-wheel.whl. The sample PDFs and reviewed annotation live in the repository.
The original Google Scholar and CSV scripts and arXiv workflow are available alongside the package. The original instructions document their formats.