Waypoint 02 · Capstone

Veritas

A Chrome extension that estimates the political leaning of news articles from source, language, and framing signals.

I led the architecture and built the backend-to-extension analysis flow with the project team.

As team lead and developer, I guided the architecture and contributed across the FastAPI backend and Chrome extension alongside Christian Cevallos, Justin Cardenas, and Jhonny Felix.

01 · Context

The problem

Political articles can shape interpretation through source reputation, loaded language, and selective framing even when the question is not simply whether a sentence is true or false.

Veritas was designed for readers who want a quick, structured second look while they remain on the article page. The extension surfaces article metadata, ranked claim candidates, and an estimated leaning breakdown so the presentation is easier to inspect.

02 · Frame

Users and constraints

Audience

Readers of online political news

The interaction starts from the active Chrome tab and keeps the explanation inside the extension popup.

Extraction constraint

Article markup is inconsistent

The extension searches semantic page containers and visible paragraphs, so poorly structured pages can reduce input quality.

Model constraint

The signals are estimates

Confidence and bias values come from model output; they are not objective ground truth or a measured accuracy score.

Product boundary

Context, not a verdict on truth

The system estimates presentation patterns and deliberately does not fact-check the article.

03 · Repository evidence

From active tab to explained estimate.

This architecture follows the public repository’s documented workflow. Each stage links to the source material behind the diagram.

  1. 01Active tabURL, title, date, and visible text
  2. 02/extractNormalize and rank claim candidates
  3. 03/analyzeBuild bounded, structured context
  4. 04GeminiEstimate source, language, and framing
  5. 05PopupRender summary, claims, and signals

01 · Article overview

Show the input context

  • Detected source
  • Normalized publication date
  • Number of claims detected
Inspect popup structure →

02 · Claim extraction

Preserve inspectable statements

  • Stable claim identifiers
  • Sentence-level ranking
  • Bounded claim list
Inspect extraction logic →

04 · Engineering

Key decisions

  1. 01

    Narrow the product to political leaning.

    The team moved away from generic misinformation classification and framed the output as an estimate of editorial presentation.

  2. 02

    Split extraction from analysis.

    A lightweight first stage normalizes metadata and ranks claim candidates; a separate analysis stage evaluates the broader article context.

  3. 03

    Make the model return a strict contract.

    The FastAPI backend asks Gemini for JSON, validates the response, and clamps confidence and signal values to the ranges expected by the popup.

  4. 04

    Keep “Unclear” as a valid result.

    Short, vague, non-political, or missing input should not be forced into a left-or-right label.

05 · Build

Technology

  • Chrome Extension
  • JavaScript
  • HTML
  • CSS
  • FastAPI
  • Python
  • spaCy
  • Pydantic
  • Gemini-assisted analysis

The Manifest V3 extension collects the active article and renders results. FastAPI and Pydantic define the integration contract, spaCy supports sentence segmentation and claim ranking, and a Gemini-assisted step produces the structured leaning estimate.

06 · Collaboration

Team and contribution

Four collaborators developed the capstone through short, structured iterations.

Diego Martinez
Team lead and developer; Scrum coordination, iteration goals, architecture guidance, backend, and extension development
Christian Cevallos
Implementation, documentation, testing, and debugging
Justin Cardenas
Frontend and backend development, features, and sprint deliverables
Jhonny Felix
Frontend development, integration, testing, and sprint deliverables
Roles are summarized from the repository’s project organization record.

07 · Result

Outcome

An integrated extension-to-analysis flow.

The repository documents a working capstone implementation that extracts article content, ranks claim candidates, requests a structured leaning estimate, and renders the returned context in the extension popup. No deployment, award, measured accuracy, or business impact is claimed.

08 · Boundary

Limitations

Not truth verification. Veritas estimates political leaning; it is not a fake-news detector or truth-verification system.

Model-estimated signals. Source, language, framing, and confidence values are generated estimates rather than objectively measured ground truth.

Extraction varies. Poorly structured pages or unavailable article context can reduce the quality of the input.

Prompt-sensitive output. Gemini responses can vary with the prompt and available context, and requests can be affected by quota limits.

No accuracy claim. The public repository does not establish a validated accuracy rate, so this Case Study does not present one.

Capstone scope. The repository shows the implementation and workflow; this page does not claim a public production deployment or measured user impact.