CNfirmed
DescriptionUse AI to find sources for unsourced statements (experimental - see limitations)
AuthorAlaexis
UpdatedMay 18, 2026
    (28 days ago)
SourceUser:Alaexis/CNfirmed.js

CNfirmed finds sources for unsourced statements on Wikipedia and judges whether each candidate source actually substantiates the specific claim. Click any tag and the script will search the web, read the most promising candidates, and return a ranked list of sources with a verdict, reliability judgment and a ready-to-paste <ref></ref> snippet.

Before using the tool, please learn about its limitations. You are still responsible for the edits you make with CNfirmed.

The goal is not just to reduce the 600k+ Citation-Needed backlog but also to expose problems with automated source search and figure out which models and search tools are fit for the job.

Installation

edit

First install User:Enterprisey/script-installer, then return to this page and click the "Install" button in the infobox. Alternatively, add this line to your Special:MyPage/common.js:

 importScript('User:Alaexis/CNfirmed.js');

The script is bring-your-own-key. The first time you run it, you will be prompted for an API key for the provider you select; the key is stored in your browser's localStorage on the Wikipedia origin and is only sent to the provider you chose.

Usage

edit
  1. Open any article that contains {{citation needed}} or a similar tag.
  2. A 🔍 badge appears next to every citation and a CNfirmed section appears in the sidebar with a provider dropdown, an API-key control, and one row per CN tag.
  3. Pick a provider, paste a key (once) and either:
    1. click a 🔍 badge (or sidebar row) to verify a single claim, or
    2. click Verify all to run every unverified claim on the page
  4. For each claim a popover opens with the verdict, the relevant quote from the source, the reliability judgment and a Copy button.

Supported AI providers: Anthropic Claude (default model claude-sonnet-4-6), Gemini (default gemini-2.5-flash), OpenAI GPT-4o. Unfortunately I'm not aware of open-source models with web search capabilities.

Feature requests

edit

Feel free to drop a note at the talk page.

Performance and limitations

edit

The tool usually manages to find sources. Their quality and suitability for our purposes vary.

Limitations!!!

edit
  1. Online sources only: The script can only find sources reachable on the open web.
  2. Source selection bias: Each AI provider uses their own search provider, usually in a non-transparent way. The tool only gets the output.
  3. Source evaluation bias: Evaluating source reliability is not easy and experienced editors of good faith often disagree (see WP:RSN). The model is instructed to assess sources according to our reliability criteria but it's likely that the model's biases affect the results.
  4. Cost: A single check can cost 10-20 cents.
  5. Non-English sources: The script searches for English-language sources. For some topics such sources may not be available.

Credits

edit

The sidebar reuses User:Polygnotus/Helpers/Sidebar.js (thanks!).

Technical details

edit

API keys live in localStorage on the Wikipedia origin and can be cleared at any time from the sidebar or via the browser's developer tools.

The code can be found at .