Templating for Lawyers
writing.kemitchell.com
writing.kemitchell.com
A contract is really a function of (world state) -> (booleans for parties in breach), and lawyers excel at traversing the function space of possible contracts based on simulations of possible world states, making them optimizers over those function spaces. Their "speculative execution" and ability to cull parts of that search space are based on having efficient caches of case law; we literally train lawyers to be optimal caches by having them take bar examinations, because even with databases at these professionals' fingertips, the latency with which they can simulate contract space given novel information (in trial, in live conversations with clients) is a core competency of the profession.
I wonder if some of the tooling and philosophies being developed in the machine learning world can be applied to great effect in this context...
It is one thing to formalize contracts as functions. Also formalizing the world state is a much harder problem and Ethereum tries to solve it by declaring the blockchain "the world". This is the harder problem as you can observe in courts where nearly all the discussion is about the world state.
For an example, the question might be "murder" vs "manslaughter". Was there malice? This is about the world state. Once that is decided, the function to determine the sentence is relatively quick to compute.
Well, to start with, a judge who decides that part of your contract is invalid for one reason or another isn't going to care about your claims that it's impossible to alter because blockchain.
Oh yeah, that someone might be a person, a corporation, or a government, and the standard of reasonableness will depend on what exactly it is they're doing.
"Compiler for the M language, used to compute the income tax of French taxpayers"
Sure, you might have word state -> boolean in a simple scenario. But what if the party alleges the contract, or a term, is void or unenforceable because of the existence of a vitiating factor? What if there are two competing interpretations of a term which depend upon considerations such as the purpose of the agreement?
It would be a very difficult task asking someone to agree to a contract which requires no value judgements. Even more so in the Nordic countries where such agreements are governed through a lens of 'good faith'.
We then wind up making value judgements, weighing the benefits of holding parties to a bargain capable of being determined objectively, on the one hand, and the elusive and complex notion of 'fairness' on the other.
We are then well and truly outside the boundaries of the capabilities of contemporary thinking machines.
Taxation is an area of back end law where lawyers should be worried about automation.
Simply getting the context of some words make a whole difference. And that just to extract the verdict.
Language and humans can do many things that, sometimes, go long away from logic...
But be very careful about capitalization (it's "Employee" if you refer to the aforementioned employee, not "employee"), a wrong lowercase initial letter, and you may lose a lot.
Usually you'll find that the new idea is good, in some contexts, but that exploring it surfaces new requirements and existing ones that were poorly understood. Usually there are things that aren't being done correctly now, that when documented and planned for, change the equation.
But the big benefit of outsiders isn't their ideas (though it often is), it's their ability to help cut through the insider problems. Usually insiders know what to do but are hampered by not only the difficulties, but the politics. Someone who doesn't know the conflicts can say that the emperor is naked, that doesn't magically clothe him but allows the tailor's who've been calling it out already to actually be heard and then the problem can actually be corrected.
There's really no reason to be repeating nicknames, legal entity names, jurisdictions of incorporation, addresses, and the like all over a contract.
One analogy would be to not roll your own crypto. You may think you got it right, but better to just go with the battle tested solution.
This is also one of the many reasons people incorporate in Delaware primarily. The law is settled and doesn’t change, people can rely on it, so they use the clauses that were litigated and have settled meanings for decades.
The way to deal with this is write the idea down with the blockers and benefits and work to enable it slowly. For instance, forgetting one of the three signatures needed would similarly doom you, so it's not all risk, it's also reward.
Almost any consultant deals with this constantly, in any industry.
An example: when I was doing basic legal assistance, we had a lot of folks who wanted a power of attorney. Many of them insisted on getting a general power of attorney. There are significant risks that such an instrument may be too powerful, and also that it may not be powerful enough. Eventually, we had a disclaimer on the back of the request form that they had to rewrite, by hand, before we would draft the instrument for execution.
He kept using Word (the MS-DOS Version!) for a very very long time, because he had most of the everyday stuff he needed as predefined "Textbausteine" (text modules? text blocks?) - he would just press ESC-this-key,that-key and a complete divorce application for the court would pop up. Many paragraphs were double, so he only had to delete the male/female version.
He was bragging the "work" he did for a divorce was around 10 minutes, the rest of the time he was chatting with the client. (He also had several boxes of Kleenex around for crying clients - a big part of that work is emotional).
He also had a lot of text modules for all the other bread-and-butter stuff that turns up every day.
It's weird because the rest of the ecosystem is very good for almost every usecase.
In my career, I probably wrote 1000+ corporate contracts, but most of those were about +/- 8 types of contracts with 80% of clauses repeated.
Me (before knowing programming) and most organized lawyers I know, just had a huge "Clause Database Word File" where we dumped common clauses that we just copy/pasted when building new contracts.
I believe there are a lot of opportunities to make software for lawyers that automate those things.
I'm glad I made the transition to programming, but it would have been awesome to know those tricks when I was write dozens of those contracts every week.
But there's definitely a need among solo practitioners and small firms, and that need goes beyond templating to include better ways of organizing documents, automating workflows, ensuring security, and so forth. There are companies like Practice Panther which are trying to do this, but the problem I've seen with them is they encourage vendor lock-in and make it hard to do anything not officially supported by the platform.
I find tremendous purpose and joy in enabling more productive and efficient work by developing digital tools & applications, especially for intelligent individuals such as your mother and other lawyers.
If interested in sharing more, whether you want to have nothing to do with a potential venture or not, I have my public email on my profile. Cheers!
The biggest enemy of programming languages as general purpose tools for business is the idea that code == hard, and coder == expensive specialized labor.
If we reach a point where programming is taught as a basic skill like arithmetic or writing then maybe we can apply standard PL tools to basic business tasks.
If you want to make legal texts even worse to read and write, throw in a heavy dose of CS-esque structuralism.
What might be useful would be better change tracking and management. The problem here is Word's dominance as a means of exchanging drafts. When working on an agreement, I and opposing counsel usually exchange Word drafts along with PDF redlines, which works well enough. Some attorneys like to use the "Track Changes" feature of word, but after a few turns you end up with a complete mess. Still, the sophistication and power of a git or mercurial would probably be wasted in the sort of contexts in which lawyers typically work (a series of form-based documents which are individually tailored in essentially one-off transactions).
I'll ignore your quip about productivity, except to note that you might feel differently if you were the one paying the fees.
Thinking more broadly about tools for lawyers, I feel like too many attempts have fallen into the trap of "we need to disrupt everything and remove all rote work." From the lawyers I've talked to, the common thread is that they just want better visibility and a second pair of eyes; they'll be responsible for their work product at the end of the day and will need to type changes manually, but if something could help them find the "gotcha" buried on page 93 with slightly greater speed and reliability (or, to wit, find all typos from Word's automatic numbering), without requiring a full change in toolkit, it could meaningfully improve quality of life for counsel and clients alike.
It's a hard problem to actually fix, and mostly a byproduct of the attorneys monopoly on the legal profession and various mandates to make it require human intervention.
Where we need to get to is letting technology and true startups (with limited liability) provide legal services.
I will give a shout-out to fairclaims.com which I recommend so much more over traditional arbitration/mediation firms. One example of the type of thing we need.
Haha.... I was thinking exactly this while reading the article.
When adding or removing a template clauses in legal documents, it can trigger a reflow of the entire bulleting and indentation structure.
But I think in order to create meaningful change for legal professionals, you need more components. 1. Knowledge management a. privat knowledge b. public knowledge like laws 2. Templating 3. Insights in the combination of 1. and 2. 4. Results that look equally good as custom build contracts in Word 5. A link to reference code, if there is code enforcing the legal prosa
Its all about knowledge graphs and an interface to them.
Consider removing the header all together for the sake of simplified grokking.
shell: >
cat {{ item }} | grep ansible
echo $USER
with_items:
- hello.txt
- hello2.txt
- hello3.txt
You essentially look at 4 layers (YAML, Ansible, Jinja, Shell) and need to "run them in your brain" in the correct order.Markdown first. Then Mustache on top of Markdown.
You’re teaching us about # but # has two meanings inside ur short example.
My suggestion, let them learn about headings elsewhere and simplify your example. It’s not for real word use anyway.
2 cents.
Nice article