SimplyBill

Democracy Made Clear Through AI

An AI-powered civic engagement platform that helps citizens understand how Congressional legislation affects their lives through constitutional analysis and personalized demographic impact assessment.

Patent Pending

What It Does

Constitutional Analysis

Every bill is analyzed against the U.S. Constitution to determine if provisions are supported, violated, questionable, or unclear

Demographic Impact Assessment

Personalized impact analysis based on user demographics including age, gender, profession, income, and state

Bill Summarization

Complex legislative text summarized into clear, accessible language using AI

Real-time Legislative Tracking

Bills scraped directly from Congress.gov and stored for analysis, keeping users up-to-date

State-by-State Analysis

See how bills specifically impact your state and congressional district

Personalized Notifications

Email and audio summaries tailored to each user's profile and interests

How It Works

A comprehensive pipeline from data collection to personalized analysis

1

Data Collection

Selenium-based web scraper crawls Congress.gov for introduced legislation. Bill metadata, sponsor info, and PDF documents are collected and stored in PostgreSQL (AWS Aurora RDS).

2

AI Processing Pipeline

PDF bills are downloaded and text is extracted. OpenAI ChatGPT API generates bill summaries. Constitutional AI Agent analyzes each bill against the Constitution. Demographic impact analysis using user profiles.

3

Frontend & API

Flask/Python RESTful API serves data to clients. Next.js web app with Tailwind CSS for the main interface. WebSocket integration for real-time updates.

4

Cloud Infrastructure

AWS ECS/App Runner for containerized deployments. AWS Lambda for scheduled tasks and batch processing. AWS S3 for PDF storage and audio file hosting. AWS RDS Aurora PostgreSQL for database.

Technical Skills Demonstrated

Backend Development

  • • Python (Flask, SQLAlchemy, async programming)
  • • RESTful API design and implementation
  • • WebSocket real-time communication (Flask-SocketIO)
  • • PostgreSQL database design and optimization
  • • JWT and Google OAuth authentication

AI/ML Integration

  • • OpenAI API integration (GPT-4, ChatGPT)
  • • Token counting and management for large documents
  • • Text-to-Speech (TTS) for audio summaries
  • • Natural Language Processing for bill analysis
  • • scikit-learn for text analysis (TF-IDF, clustering)

Web Scraping & Data Engineering

  • • Selenium WebDriver for browser automation
  • • Anti-detection techniques (stealth mode, random delays)
  • • CAPTCHA detection and recovery strategies
  • • Large-scale data extraction from government websites
  • • PDF parsing and text extraction

Frontend Development

  • • Next.js (TypeScript) for SSR/SSG
  • • Tailwind CSS for styling
  • • D3.js/Recharts for data visualization
  • • Responsive/mobile-first design

Cloud & DevOps

  • • AWS (ECS, App Runner, Lambda, RDS, S3, Route 53, CloudFront)
  • • Docker containerization (multi-stage builds)
  • • Docker Compose for local development
  • • Gunicorn/Gevent for production WSGI server
  • • CI/CD deployment pipelines

Security

  • • OAuth 2.0 / Google Sign-In implementation
  • • API authentication with timestamp encoding
  • • Environment variable management
  • • CORS configuration
  • • Rate limiting and request validation