How prithvisb08/news-authenticity-analyzer works
News Authenticity Analyzer is a full-stack article-analysis workbench. Analysts submit manual text, a URL, or a live-feed article; the API extracts or accepts article content, runs an observable NLP/classification pipeline, and returns linguistic signals, explainability, sentence heatmaps, fact-check results, and publisher intelligence. Results are persisted for audit history. The README documents the frontend/API relationship and product capabilities; some frontend wiring and unsampled route/service internals are not shown, so those relationships are omitted or cited to the README rather than inferred from module names.
Main entry points: analysis_service.py Analysis Orchestrator · main.py FastAPI Application · analyze.py Analysis Endpoint · fact_check_service.py Claim Fact-checking
Components 24
Analyst Workbench
- Article Workspace
frontend/components/analyzer/ArticleInputPanel.tsx - Pipeline Views
frontend/components/pipeline/PipelineExecutionGraph.tsx - Analysis Diagnostics
frontend/components/prediction/PredictionDashboard.tsx - Fact-check View
frontend/components/diagnostics/FactCheckCard.tsx
API and Ingestion
- FastAPI Application
backend/app/main.py - Analysis Endpoint
backend/app/api/routes/analyze.py - News Endpoint
backend/app/api/routes/news.py - URL Article Extraction
backend/app/services/article_extractor.py - Live News Providers
backend/app/services/news_service.py
Analysis Engines
- Analysis Orchestrator
backend/app/services/analysis_service.py - Text Preprocessing
backend/app/ml/preprocessing.py - TF-IDF Features
backend/app/ml/feature_extraction.py - Calibrated Classifier
backend/app/ml/classifier.py - Linear Explainability
backend/app/ml/explainability.py - Linguistic Signals
backend/app/services/signal_analyzer.py - Sentence Heatmap
backend/app/services/sentence_heatmap_service.py
External Intelligence
- Claim Fact-checking
backend/app/services/fact_check_service.py - Publisher Intelligence
backend/app/services/domain_intel_service.py - Google Fact Check
- News Providers
Audit and Model State
- Analysis Repository
backend/app/db/repository.py - SQLite Audit Store
backend/app/db/database.py - Model Registry
backend/app/ml/model_loader.py
Other components
- Analyst
Connections 25
- Analyst → Article Workspace: submits article
README.md - Article Workspace → FastAPI Application: sends analysis
README.md - FastAPI Application → Analysis Endpoint: routes requests
backend/app/main.py - FastAPI Application → News Endpoint: routes requests
backend/app/main.py - Analysis Endpoint → Analysis Orchestrator: invokes analysis
backend/app/api/routes/analyze.py - Analysis Endpoint → URL Article Extraction: requests extraction
backend/app/api/routes/analyze.py - News Endpoint → Live News Providers: fetches feed
backend/app/api/routes/news.py - Live News Providers → News Providers: fetches articles
backend/app/services/news_service.py - Analysis Orchestrator → Text Preprocessing: preprocesses text
backend/app/services/analysis_service.py - Analysis Orchestrator → TF-IDF Features: extracts features
backend/app/services/analysis_service.py - Analysis Orchestrator → Calibrated Classifier: classifies features
backend/app/services/analysis_service.py - Analysis Orchestrator → Linear Explainability: explains prediction
- Analysis Orchestrator → Linguistic Signals: analyzes signals
backend/app/services/analysis_service.py - Analysis Orchestrator → Sentence Heatmap: builds heatmap
backend/app/services/analysis_service.py - Analysis Orchestrator → Claim Fact-checking: checks claims
backend/app/services/analysis_service.py - Claim Fact-checking → Google Fact Check: queries registry
backend/app/services/fact_check_service.py - Analysis Orchestrator → Publisher Intelligence: audits publisher
backend/app/services/analysis_service.py - Analysis Orchestrator → Analysis Repository: saves audit
backend/app/services/analysis_service.py - Analysis Repository → SQLite Audit Store: writes records
backend/app/db/repository.py - FastAPI Application → Model Registry: loads artifacts
backend/app/main.py - Analysis Orchestrator → Model Registry: uses model components
backend/app/ml/model_loader.py - FastAPI Application → Article Workspace: serves workbench
README.md - Analysis Orchestrator → Analysis Diagnostics: returns analysis
README.md - Analysis Orchestrator → Pipeline Views: returns pipeline data
README.md - Claim Fact-checking → Fact-check View: returns claim results
README.md