How it works
The goal is a debrief anyone can understand, that people on either side would call fair, with confidence scores that mean something. Here is exactly how each part is produced.
1. Where the information comes from
Sources are ranked by how close they are to the actual policy. Higher tiers raise the evidence score.
| Tier | Weight | Examples |
|---|---|---|
| Primary text | 1 | Bill text (Congress.gov, EUR-Lex, legislation.gov.au, state legislature sites) |
| Government | 0.9 | Official agency explainers, gazettes, government press releases |
| Nonpartisan analysis | 0.85 | CBO, CRS, Parliamentary Budget Officers, KFF, Tax Policy Center, IFS |
| Academic | 0.85 | Peer-reviewed research, university policy centers |
| News | 0.6 | Wire services (AP, Reuters) and outlets rated across the spectrum |
| Advocacy | 0.3 | Think tanks and campaign groups — useful for arguments, not facts |
Good automated feeds to pull new policies from:
- US federal: Congress.gov API (bills, status, CRS summaries), GovInfo bulk data, Federal Register API (regulations).
- US states: Open States / Plural Policy API, LegiScan API.
- UK: Parliament Bills API, legislation.gov.uk feeds. EU: EUR-Lex SPARQL/RSS, Legislative Observatory.
- Elsewhere: national gazettes and parliament open-data portals; ParlGov / Manifesto Project for party positions.
- News balance: GDELT or a news API, with outlet-lean ratings from AllSides or Ad Fontes to pick sources from left, center and right.
2. How a debrief is generated
- The source is fetched and cleaned (scripts, navigation and ads stripped).
- A transparent keyword classifier makes a first guess at topic, economic/social domain and lean.
- The AI model (Claude) analyses the source several times independently, filling a strict schema: summaries at two reading levels, key changes, who’s affected, the strongest left and right arguments, a neutral read, labels with probabilities, and claims with verbatim quotes.
- The runs are compared. Labels are decided by majority vote, and agreement becomes a confidence signal.
- Every quoted claim is searched for in the source text. Quotes that aren’t found are marked unverified.
- A neutrality check scans for loaded wording and compares the length of the left and right cases.
- The result is saved as an unreviewed AI draft until an editor or enough readers confirm it.
3. How confidence is calculated
Asking a model “how sure are you?” alone is unreliable — models are often over-confident. So each label (every category, the economic/social domain, and the lean) is scored from several independent signals:
| Signal | Weight | What it measures |
|---|---|---|
| Model self-report | 15% | The probability the AI assigned itself. Kept at low weight because models tend to be over-confident. |
| Run agreement | 35% | The analysis is run several times independently. If every run lands on the same label, that's a strong sign. |
| Baseline check | 15% | A simple, transparent keyword classifier gives a second opinion. Disagreement lowers confidence. |
| Evidence quality | 35% | How many independent, high-quality sources back the summary, and whether quoted claims were found word-for-word in them. |
| Human review | blends 40% | Agreement from editors and reader feedback. Not counted until someone has reviewed the item. Activates after 3+ responses. |
Evidence quality itself combines source reliability (best three sources), the number of independent publishers, the share of claims verified word-for-word, and whether news sources come from both sides.
Bands: 75%+ is high, 50–74% medium, below 50% low. The overall score for a debrief weights the lean (30%), domain (20%), top two topics (25%) and evidence (25%).
4. Making the numbers honest (calibration)
A score is only useful if “80%” is right about 80% of the time. To check that:
- Build a gold set: 100–300 policies labelled by a politically balanced panel (at least one left-, one right-, and one center-leaning reviewer each), with disagreements discussed.
- Run the pipeline on the gold set and plot predicted confidence against actual accuracy (a reliability diagram).
- Fit an isotonic or Platt curve and load it with
setCalibration()— the site applies it to every score. - Track expected calibration error and the Brier score after every prompt or model change.
- Run a symmetry test: swap partisan framings of the same policy and check the lean label and wording don’t shift.
5. Ways to validate information
- Quote-grounding: every factual claim must cite a verbatim passage; unmatched quotes are flagged automatically.
- Cross-source agreement: facts are stronger when a primary source and an independent analyst (e.g. CBO) agree.
- Status checks: re-poll legislature APIs daily so “proposed” doesn’t go stale; flag debriefs older than the latest action.
- Fact-check feeds: match claims against ClaimReview data (Google Fact Check Tools API) from PolitiFact, Full Fact, AFP and others.
- Reader flags: “leans left/right” reports are tallied; if both sides flag a debrief equally, that’s a reasonable sign it’s balanced.
- Editorial review: drafts stay labelled as AI-generated until a reviewer signs off.
6. What “left” and “right” mean here
Lean describes who typically supports a policy in its own country, not whether it is good. The same idea can sit differently in different countries, and many policies — like Australia’s under-16 social media rules — get support from both sides. Those are labelled cross-partisan.