Tasks & Results
2022-2025
- Preprocessed political manifestos using SpaCy and other Python tools.
- Leveraged GPT 4.1 and OpenAI’s API for OCR, semantic chunking, sentiment analysis, hate speech detection, topic segmentation and political compass positioning.
- Examined scientific validation for each policy proposal through Perplexity’s Sonar Pro model.
- Featured in Towards Data Science’s Deep Dive category and their social media.
- Featured in Streamlit’s weekly roundup.
2026
- Refactored parts of the code, including using Mistral OCR for PDF parsing and a PydanticAI agent for scientific validation.
- Created a Lovable website for the outputs of the analysis for the Amsterdam city council elections.
- Reached 1.2k visitors in one week, with +90% coming from the Netherlands, 4.1k page views, 2m 35s average visit duration and some visits coming straight from search engines (e.g. Google, Qwant, Brave) and AI chatbots (e.g. Claude).
Links
Amsterdam Elections 2026
Comparador de Programas Partidários - Legislativas 2025
Analyzing political manifestos through natural language processing and dashboarding
GitHub - AndreCNF/polids: Analysis of electoral programs and output of it through apps.
AndreCNF/portugal-elections-2025 · Datasets at Hugging Face
André Ferreira on Twitter: "Com as eleições à porta, publiquei uma app de análise linguística dos programas de cada partido 🧵https://t.co/NqUQnVqlve / Twitter"
Towards Data Science on Twitter: "Bringing together discourse analysis, political science, and data science, @andrecnferreira takes a close look at the language of political manifestos. https://t.co/7wNZN7x3YL / Twitter"