Law school should teach people to write specs
Lawyers already write instructions for systems that execute them. As more of those systems become software, legal education should treat drafting as specification and teach it that way.
I studied law in Australia and then in the US, and somewhere along the way I worked with the Stanford CodeX Center for Legal Informatics on computable contracts. The thing that struck me most was how close good legal drafting already is to writing a software specification, and how rarely anyone in law school says so.
Take a simple clause: the licensee pays a royalty of ten percent of net receipts, payable quarterly. Try to turn that into code and you hit questions right away. You need to know whether net is before or after the distributor's fee, and which quarter a payment belongs to if it arrives on the first day of the next one. A human reader skims past both. A program can't.
A contract is a set of instructions for a system. The system is usually people: the parties and, if things go wrong, a court. A good drafter thinks about edge cases and defines terms so they mean one thing. A good spec writer does the same, for a different kind of executor.
The executor is changing
More and more of the systems that carry out legal instructions are software. Matching engines already pay out royalty splits, and billing systems run payment terms. Agents are next. When software's the executor, nobody waits for a judge to sort out what an unclear clause meant.
I think that changes what drafting skill means. A clause that a court would read generously, using context and common sense, may be read literally and instantly by a system that has neither. If the people writing the instructions don't think about how they'll be executed, the result is the kind of silent misallocation I describe in The black box is a subsidy.
What I'd add to the curriculum
I wouldn't turn law students into programmers. I'd teach them to think like the people who write specs:
- define every term once and use it the same way throughout
- write the edge cases down instead of trusting the reader to infer them
- test a clause by asking what a literal-minded executor would do with it
- keep the statement of intent separate from the mechanics, so both can be checked
A semester of that, with real contracts and real systems, would make better lawyers whether or not they ever touch software. It'd also make them far more useful to the companies building on top of legal rules, which is most companies now.
The objection
The usual response is that law is about judgment, and specs leave no room for it. I agree that judgment matters, and I argue in Code isn't law that it's the part software can't replace. But judgment works best on top of precise drafting. Courts spend a lot of time guessing what a sloppy clause meant, and that's time they don't spend on real judgment calls.
Law schools already teach drafting. I'd just like them to teach it with the executor in mind, and maybe show students a case or two where a machine took the words literally.