Sam-Osian/PFD-toolkit
Analyse Prevention of Future Death (PFD) reports with AI
What's novel
Analyse Prevention of Future Death (PFD) reports with AI
Code Analysis
8 files read · 3 roundsA Python toolkit that loads, scrapes, screens, and extracts structured insights from UK Prevention of Future Death (coroner's) reports using a combination of web scraping, text normalization, and LLM-powered analysis.
Strengths
Production-quality concurrent LLM orchestration with backoff, semaphores, and structured Pydantic output; genuinely deep domain logic in the three-layer scraping cascade, receiver/area canonicalization, and theme discovery pipeline. The code is well-documented, type-hinted, and architecturally clean with clear separation between data loading, scraping, LLM interaction, and analysis.
Weaknesses
Several core files are monolithic (extractor.py at 60KB, views.py at 227KB, workbench.js at 197KB), and logging configuration is duplicated across modules. The package.json license field (ISC) contradicts the AGPL-3.0 license, and the frontend bundles are unreasonably large.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
567
Contributors
3
Files
1917
Active weeks
35
Repository
Language
Python
Stars
3
Forks
1
License
AGPL-3.0