Lawyer in San Francisco.
I practice law and write about law, technology, and what comes next. Outside my legal practice, I explore how software and artificial intelligence can improve legal research, document quality, and professional workflows.
SanctionBench is an open, evidence-traceable benchmark for legal citation verification and pre-filing document audit. It asks whether an AI system can catch a hallucinated legal authority before it reaches a court without calling a real case fake. Version 1.0.0 includes 152 citation items arranged as 76 matched fake and real pairs, plus 10 whole-document scenarios covering 196 authorities.
Repository | Leaderboard | Scoring | Submission guide | Release 1.0.0
I maintain a small collection of open-source side projects for legal text quality:
| Layer | Projects | Purpose |
|---|---|---|
| Rules | lexstyle and lexstyle-llm-client | Shared typography rules and a multi-provider client for legal text tools |
| Deterministic correction | smartquotify | Converts straight quotation marks to typographically correct smart quotation marks |
| Context-aware correction | redashify, bluebookify, punctify, and recapify | Corrects dashes, citation formatting, punctuation, and capitalization |
| Review | redlinefy | Shows before-and-after changes as redline markup |
I follow professional tennis and maintain the Carlos Alcaraz Project, a live record of matches, statistics, and the developing Alcaraz era.
I publish notes and essays at haihang.me.
Views expressed here are my own and do not represent those of my employer.