InfoClassifier / domain_reliability.yaml
UTKARSH MISHRA
Initial commit: InfoClassifier project
e5e36db
Raw History Blame Contribute Delete
9.14 kB
# =============================================================================
# domain_reliability.yaml
#
# Enterprise-editable domain reliability config.
# Scores range 0.0 (completely unreliable) to 1.0 (fully authoritative).
#
# Rules applied in order; first matching pattern wins.
# Add your enterprise's internal trusted domains under `custom_trusted`.
#
# source_type values:
# official β†’ government, intergovernmental, standards bodies
# academic β†’ peer-reviewed journals, universities
# news β†’ professional journalism outlets
# factcheck β†’ dedicated fact-checking organisations
# ngo β†’ non-profit research / advocacy (varies)
# blog β†’ personal or commercial blogs
# social β†’ social media platforms
# unknown β†’ cannot determine
# =============================================================================
version: "1.0"
# ---------------------------------------------------------------------------
# 1. OFFICIAL / GOVERNMENT / INTERGOVERNMENTAL
# ---------------------------------------------------------------------------
official:
score: 0.97
source_type: official
domains:
- who.int
- cdc.gov
- nih.gov
- fda.gov
- nhs.uk
- ecdc.europa.eu
- paho.org
- un.org
- unicef.org
- worldbank.org
- imf.org
- oecd.org
- europa.eu
- gov.uk
- canada.ca
- australia.gov.au
- rki.de
- france.fr
- nasa.gov
- noaa.gov
- epa.gov
- energy.gov
- ftc.gov
- sec.gov
- federalreserve.gov
- bls.gov
- census.gov
# ---------------------------------------------------------------------------
# 2. ACADEMIC / PEER-REVIEWED
# ---------------------------------------------------------------------------
academic:
score: 0.93
source_type: academic
domains:
- nature.com
- science.org
- cell.com
- thelancet.com
- nejm.org
- bmj.com
- jamanetwork.com
- acs.org
- ieee.org
- acm.org
- pubmed.ncbi.nlm.nih.gov
- scholar.google.com
- arxiv.org
- biorxiv.org
- medrxiv.org
- plos.org
- frontiersin.org
- springer.com
- wiley.com
- elsevier.com
- oxfordjournals.org
- cambridge.org
- mit.edu
- stanford.edu
- harvard.edu
- ox.ac.uk
- cam.ac.uk
- ucl.ac.uk
# ---------------------------------------------------------------------------
# 3. DEDICATED FACT-CHECKERS (IFCN signatories)
# ---------------------------------------------------------------------------
factcheck:
score: 0.90
source_type: factcheck
domains:
- snopes.com
- factcheck.org
- politifact.com
- fullfact.org
- reuters.com/fact-check
- apnews.com
- afp.com
- misbar.com
- boomlive.in
- factly.in
- africacheck.org
- chequeado.com
- correctiv.org
- dpa.com
- leadstories.com
- verafiles.org
# ---------------------------------------------------------------------------
# 4. ESTABLISHED NEWS ORGANISATIONS
# ---------------------------------------------------------------------------
news_tier1:
score: 0.82
source_type: news
domains:
- bbc.com
- bbc.co.uk
- reuters.com
- apnews.com
- theguardian.com
- nytimes.com
- wsj.com
- washingtonpost.com
- economist.com
- ft.com
- bloomberg.com
- time.com
- npr.org
- pbs.org
- theatlantic.com
- science.sciencemag.org
- scientificamerican.com
- newscientist.com
- wired.com
- techcrunch.com
- arstechnica.com
- technologyreview.mit.edu
- spiegel.de
- lemonde.fr
- corriere.it
- elpais.com
- sueddeutsche.de
news_tier2:
score: 0.68
source_type: news
domains:
- huffpost.com
- vice.com
- vox.com
- slate.com
- salon.com
- thehill.com
- politico.com
- axios.com
- buzzfeednews.com
- businessinsider.com
- newsweek.com
- usatoday.com
- nbcnews.com
- cbsnews.com
- abcnews.go.com
- foxnews.com
- msnbc.com
- cnn.com
- dailymail.co.uk
- mirror.co.uk
- independent.co.uk
- telegraph.co.uk
# ---------------------------------------------------------------------------
# 5. NGOs / THINK TANKS (variable bias, moderate reliability)
# ---------------------------------------------------------------------------
ngo:
score: 0.60
source_type: ngo
domains:
- amnesty.org
- hrw.org
- msf.org
- oxfam.org
- brookings.edu
- cfr.org
- rand.org
- pewresearch.org
- ipsos.com
- gallup.com
- kff.org
- urban.org
- chathamhouse.org
# ---------------------------------------------------------------------------
# 6. SOCIAL MEDIA PLATFORMS (user-generated; low inherent reliability)
# ---------------------------------------------------------------------------
social:
score: 0.15
source_type: social
domains:
- twitter.com
- x.com
- facebook.com
- instagram.com
- tiktok.com
- reddit.com
- youtube.com
- telegram.org
- t.me
- threads.net
- linkedin.com
- pinterest.com
- tumblr.com
# ---------------------------------------------------------------------------
# 7. KNOWN MISINFORMATION / LOW-CREDIBILITY DOMAINS
# ---------------------------------------------------------------------------
low_credibility:
score: 0.08
source_type: blog
domains:
- naturalnews.com
- infowars.com
- breitbart.com
- thegatewayp.com
- beforeitsnews.com
- zerohedge.com
- activistpost.com
- globalresearch.ca
- off-guardian.org
- thetruthseeker.co.uk
- conspiracytheories.net
# ---------------------------------------------------------------------------
# 8. GENERIC BLOG / CMS PATTERNS (matched by TLD pattern, not exact domain)
# ---------------------------------------------------------------------------
blog_patterns:
score: 0.18
source_type: blog
patterns:
- "*.blogspot.com"
- "*.wordpress.com"
- "*.medium.com"
- "*.substack.com"
- "*.ghost.io"
- "*.wixsite.com"
- "*.weebly.com"
# ---------------------------------------------------------------------------
# 9. ENTERPRISE CUSTOM β€” add your internal trusted domains here
# ---------------------------------------------------------------------------
custom_trusted:
score: 0.95
source_type: official
domains: []
# Example:
# - trust-center.mycompany.com
# - internal-wiki.corp.example.com
# ---------------------------------------------------------------------------
# DEFAULTS (applied when no pattern matches)
# ---------------------------------------------------------------------------
defaults:
unknown_domain_score: 0.35
unknown_source_type: unknown
# ---------------------------------------------------------------------------
# STANCE CLASSIFICATION THRESHOLDS
# ---------------------------------------------------------------------------
# NOTE: These keyword lists are now used by Layer 2 of stance_classifier.py.
# Layer 1 (semantic heuristics) and Layer 3 (Claude LLM) take priority.
# These lists serve as the fallback when both other layers are unavailable.
stance_thresholds:
# Threshold=1: any single strong-signal keyword is decisive
contradicting_keyword_min: 1
supporting_keyword_min: 1
# Strong contradicting signals (one hit = contradicting)
contradicting_keywords:
- "false"
- "debunked"
- "disproven"
- "misinformation"
- "misleading"
- "no evidence"
- "lacks evidence"
- "unfounded"
- "refuted"
- "myth"
- "conspiracy theory"
- "fact-check"
- "factcheck"
- "incorrect"
- "not true"
- "inaccurate"
- "unproven"
- "pseudoscience"
- "hoax"
- "wrong"
- "fake"
- "fabricated"
- "baseless"
- "discredited"
- "debunks"
- "false claim"
- "does not cause"
- "no link"
- "unrelated"
- "no connection"
- "scientists say false"
- "experts say false"
- "is not true"
- "is not real"
# Strong supporting signals (one hit = supporting)
supporting_keywords:
- "confirms"
- "confirmed"
- "verified"
- "validated"
- "proven"
- "evidence shows"
- "data shows"
- "research shows"
- "study finds"
- "scientists confirm"
- "officially announced"
- "official statement"
- "press release"
- "gazette notification"
- "government confirms"
- "approved"
- "endorsed"
- "supported by evidence"
- "according to official"
- "ministry confirms"
- "is true"
- "is real"
- "has been confirmed"
- "study confirms"
- "research confirms"
- "data confirms"
# ---------------------------------------------------------------------------
# EVIDENCE SUFFICIENCY (used by environment to set status_flags)
# ---------------------------------------------------------------------------
evidence_thresholds:
min_sources_for_decision: 2
min_claims_verified_fraction: 0.5 # at least 50% of claims must be verified
min_reliable_source_score: 0.6 # at least one source must exceed this