Inspiration
Imagine receiving an eviction notice, hospital bill, or benefits renewal letter that could affect your life, but you cannot understand what it says.
These letters are often written in complicated legal language. People learning English, older adults, and people who struggle with reading may not understand what action they need to take or when they need to take it. Missing a single deadline could mean losing housing, benefits, or facing additional financial consequences.
We realized that the information people need is often already in the letter. They just need someone to explain it in a language they understand.
That inspired us to build PlainSpeak, a tool that makes important letters easier to understand and helps people take action before it is too late.
What it does
PlainSpeak transforms confusing official letters into simple, actionable guidance in 11 languages.
Users can upload a photo, PDF, or paste the text of a letter. PlainSpeak then:
- Simplifies: Explains the letter in 2–4 short sentences at approximately a fifth-grade reading level.
- Reads aloud: Provides audio explanations in the user's preferred language.
- Highlights urgency: Shows the urgency level, verified deadlines, a countdown, and the first action to take.
- Extracts information: Identifies important dates, payment amounts, phone numbers, required documents, steps, and rights stated in the letter.
- Answers questions: Responds using only information from the letter. If the answer is not there, it says so.
- Drafts replies: Helps write polite requests for more time, payment plans, hearings, or explanations, using only facts from the letter.
- Connects people to help: Provides resources such as 211 and LawHelp.org and encourages users to speak with a real person when a letter is serious.
- Supports action: Generates calendar reminders, document checklists, and summaries that users can share or print. PlainSpeak also includes a private mode that extracts basic information using Python without sending the letter to AI.
How we built it
We built PlainSpeak from scratch during EvoHacks 2.0 using Python 3 and Streamlit, and deployed it on Streamlit Community Cloud.
Our application uses the Google Gemini API (gemini-3.5-flash-lite, free tier) to analyze uploaded letters and generate explanations in 11 languages. We use Pydantic to validate structured AI responses and ensure every extracted fact includes a supporting quote.
However, we did not want users to blindly trust AI-generated information, especially when incorrect deadlines or amounts could have serious consequences.
To address this, we developed our own independent Python verification system in plainspeak/checks.py, using regular expressions (re) and difflib. It checks extracted quotes, dates, amounts, phone numbers, and urgency against the letter. It also checks generated replies for unsupported information.
We also developed a private, AI-free mode using plain Python and pypdf to extract dates, amounts, and phone numbers directly from the document.
Here is the rest of our technology stack:
- Pillow: Resizes, rotates, and processes uploaded phone photos.
- gTTS: Reads explanations aloud in the selected language.
- icalendar: Generates downloadable calendar reminders.
- Babel: Formats dates and numbers according to each language.
- textstat: Measures the reading grade of the original letter and simplified summary.
- SQLite: Supports the My Letters feature for saved letters.
- python-dotenv and Streamlit Secrets: Keep API keys and sensitive configuration out of the source code.
- pytest and Playwright: Test application logic, end-to-end functionality, and accessibility. We also developed our own evaluation system in eval/run_eval.py to measure the accuracy and reliability of PlainSpeak.
Most of the code was written with Claude, an AI coding assistant, during the event. Our team directed the development, made the design decisions, reviewed the implementation, and tested the application.
Challenges we ran into
Our biggest challenge was making AI reliable enough for situations where a mistake could have serious consequences.
AI can invent deadlines, associate the wrong date with a real sentence, or misclassify urgency. We addressed this by building independent Python verification checks instead of relying entirely on AI.
For example, our initial tests showed that AI sometimes classified letters as urgent even when their deadlines were several weeks away. We introduced a calendar-based verification mechanism that checks the actual time remaining before adjusting urgency classifications.
Handling different document formats was another challenge. We needed to support photos, scanned PDFs, blurry images, rotated pages, and documents with difficult layouts.
Supporting 11 languages across the entire application also required careful implementation. Every button, instruction, warning, error message, and generated explanation needed to work in the selected language.
We also worked on privacy, accessibility, file validation, and failure handling to ensure users would still have access to basic functionality when AI was unavailable or usage limits were reached.
Accomplishments that we're proud of
We are proud to have built a complete working application from scratch during EvoHacks 2.0.
We evaluated PlainSpeak using 30 fictional letters across 51 test runs, including additional held-out letters. Our evaluation achieved:
- 98% verified deadline extraction accuracy (44/45).
- 100% accuracy in extracting money amounts (31/31).
- 100% of extracted quotes matched the original pasted letters (240/240).
- 94% accuracy in urgency classification (47/50), compared with 78% using AI alone.
- 0 incorrect dates shown as certain in our evaluation. We also developed 190 automated tests covering core functionality, security, multilingual support, and edge cases.
Our automated accessibility scans found zero WCAG 2.1 AA violations across seven pages.
We are especially proud of our verification system, private mode, and the fact that PlainSpeak does not simply summarize a letter. It helps people understand what to do next.
What we learned
We learned that building a useful AI application requires much more than connecting an API to a user interface.
AI-generated answers can sound convincing while still being incorrect. We learned the importance of independent verification, structured outputs, defensive programming, and testing unexpected situations.
We also learned that accessibility and multilingual support should be considered from the beginning, not added as an afterthought.
Most importantly, we learned that AI should not replace human judgment. It should help people understand information, make informed decisions, and know when they need assistance from a real person.
What's next for PlainSpeak
Our goal is to take PlainSpeak beyond a hackathon project and make it a reliable tool for people who struggle to understand important documents.
Our next priorities include:
- Working with legal aid organizations, community groups, and social workers to evaluate PlainSpeak with real users.
- Improving document recognition for handwritten, blurry, and low-quality letters.
- Expanding language support and improving regional language variations.
- Exploring locally hosted AI models and stronger privacy options.
- Improving connections to relevant local assistance programs.
- Conducting real-world accessibility testing, including screen-reader testing.
- Exploring partnerships with hospitals, housing organizations, and public service providers. Our long-term vision is simple: No one should lose their home, benefits, or rights simply because they could not understand a letter.
