12 ms·
Catala: A Programming Language for the Law
- Y_Y 6y agoAwesome to see someone trying to implement this idea, which I bet most people here have wished existed at some point. 1 scope Section121SinglePerson: 2 rule requirements_ownership_met under condition 3 aggregate_periods_from_last_five_years of personal.property_ownership >=^ 730 day 4 consequence fulfilled Syntax (shown above with line numbers added) looks pretty clean and simple. Hopefully it is enough like natural language that non-techies wouldn't run away at first sight This probably won't cause a legal revolution tomorrow, but I hope it can be the start of a slow reform toward linguistic precision and machine-friendliness in legislation in the future. Also it's a bad name, since that's already the (local) name of a widely spoken natural language.
- tirant 6y agoIndeed, not the best name, but according to the README, the reason for chosing it was the following: "The language is named after Pierre Catala, a professor of law who pionneered the French legaltech by creating a computer database of law cases, Juris-Data. The research group that he led in the late 1960s, the Centre d’études et de traitement de l’information juridique (CETIJ), has also influenced the creation by state conselor Lucien Mehl of the Centre de recherches et développement en informatique juridique (CENIJ), which eventually transformed into the entity managing the LegiFrance website, acting as the public service of legislative documentation." I'm wondering what could result of the combination of smart contracts on a blockchain and this legal language.
- sanedigital 6y agoWhich is a bit circular, because Pierre’s last name is a reference to the region that speaks that language, since he was born in neighboring Occitanie.
- Y_Y 6y agoThe somewhat ironic logic here being that a name referencing a place is very unlikely to come from that place. If Jordi moves from a Catalan area to an Occitan area then he (and his descendants) might be known as "Jordi the Catalan". It wouldn't be very useful to pick that as a name for someone who never left though. Of course nowadays people's names are mostly just symbolic, and you can move to England and still be called Johnny English. (In fact, as a sibling comment notes, maybe SQL is named after him.)
- JasonFruit 6y agoKind of like how, if someone's last name is Ashkenaz/Ashkenazi, you know they're a Sephardic Jew.
- huachimingo 6y ago>Of course nowadays people's names are mostly just symbolic, and you can move to England and still be called Johnny English. This depends on the language. In Spanish (and by extension every romance language) no one would know the meaning of Alvarado (they would associate it with the name Álvaro, but just that) or González, but it would be awful to have a name like "Marcos Café/Marrón" (Marcus Brown) or "Carlos Panadero" (Carlos Baker).
- Y_Y 6y agoWhat about Marcos Moreno? Or Carlos Zapatero? I take your point that the origins of surnames in Spain are typically unlike those in e.g. England, but there are plenty of common apellidos originating in physical descriptions, (far away) place of origin, or livelihood.
- einpoklum 6y agoIt's a mistake to consider the law to be something absolute and logically-programmable.
- bryanrasmussen 6y agodefinitely a mistake for a common law based system, but maybe not for a napoleonic system.
- mellavora 6y agoGoedel's incompleteness theory shows that an axiomatic system can either be consistent or complete, but not both. Software is an axiomatic system. Human behavior is NOT.
- peterbb_net 6y agoI assume you refer to his results regarding axiomatic systems for arithmetic on natural numbers? If a law attempts to capture this, then, sure, it's problematic. But I don't that's very common. From what I've seen, formal methods for legal systems would take the "facts" of a case as given (assumptions), and deduce legal consequences of those.
- bryanrasmussen 6y ago>Software is an axiomatic system. Human behavior is NOT. I am not aware of any system of law that covers all possible human behavior. Common law systems theoretically could because part of the determination of what is covered is up to the courts, thus when you have a new human behavior it is uncertain if it is covered or not until you take it to court, but in a Napoleonic system the coverage of the law must be explicitly stated. Thus Napoleonic systems would try for consistent but not complete.
- tom_mellior 6y agoTax codes that spell out detailed computations are de facto "Napoleonic" (civil) even in a country that applies common law to other things, no?
- josalhor 6y ago> Also it's a bad name, since that's already the (local) name of a widely spoken natural language. As a native Catalan myself I was quite surprised by the title.
- im_dario 6y agoIt seems to be properly reasoned, but I agree - as another native Catalan - that the title is surprising.
- DyslexicAtheist 6y agoas these things go they will create the illusion of improvement and the chances of things going wrong will be reduced in frequency but when they happen it'll be injustice at cloud-scale. These things have a long fat tail. Before I'm getting excited I want to know how it will be used in the developing world. E.g. perhaps we'll see an automatic smart-judge that goes from Cellebrite evidence directly to machine based torture and public execution with some blockchain sprinkled-on for good measure. See the latest dystopian piece on how Technology helps the developing world fight crime: https://cpj.org/2021/05/equipped-us-israeli-firms-botswana-police/ https://cpj.org/2021/05/equipped-us-israeli-firms-botswana-p...
- valenterry 6y ago> Hopefully it is enough like natural language that non-techies wouldn't run away at first sight Written law itself is also not "enough like natural language that non-law people wouldn't run away at first sight".
- seanhunter 6y agoThis snippet begs all the important questions. How is the value of "aggregate_periods_from_last_five_years of personal.property_ownership" calculated? What does it mean to own a property? Does it count if you jointly own a property with someone else? If so, how much of a percentage of ownership counts as ownership? What about if for some part of the 730 days the ownership of the property was subject to dispute and it could have been owned or not owned by the person in question? The whole thing smacks of false precision to me. It's precise about things that are not legally complex to be precise about in the current system, and the language gives the false impression that it's actually going to be possible to be precise about everything. Secondly, it feels like it will have a similar drawback to sql[1] in that it seems on the surface to be non-technical, but actually requires significant technical expertise to avoid numerous beartraps and understand anything beyond the very most obvious. [1] Which was originally intended to be a formal version of natural language understandable to non-technical people (hence the original name SEQUEL "Structured English Query Language")
- arethuza 6y agoAnother one that jumped out at me is if I own a property from noon one day to noon another day - is that one day or two days?
- elcomet 6y agoThose are not problems specific to this language. You need to define those terms properly to tax people adequately.
- tom_mellior 6y ago> How is the value of "aggregate_periods_from_last_five_years of personal.property_ownership" calculated? How is the value of "during the 5-year period ending on the date of the sale or exchange, such property has been owned and used by the taxpayer as the taxpayer’s principal residence for periods aggregating 2 years or more" calculated? > What does it mean to own a property? What does it mean to own a property under the non-formalized law? In the end, it means that if you file a tax return that the tax authorities aren't happy with, you can argue in front of a judge whether you think you own something, and the judge will decide whether you do. Based on this they will decide whether your tax return was valid or not. The technicalities of whether you own something in the eyes of the judge have nothing to do with whether your tax return was based on your reading of the law or on a tool based on this language. Either way you must decide whether you think you own something, and the rest of the computation is based on this decision. > Does it count if you jointly own a property with someone else? Search the paper for "joint returns", it quotes both the law and its formalization. > The whole thing smacks of false precision to me. It's precise about things that are not legally complex to be precise about in the current system <scratches head> The questions you raised do appear legally complex to me. But also I think you misunderstood the whole problem domain. The law currently spells out an algorithm for computing something. The inputs to this algorithm include questions like "do you legally own stuff". These inputs are outside the specific algorithm spelled out in Section so-and-so. They are similarly outside the specific algorithm spelled out in the computer program.
- posterboy 6y agoyeah they would run away screaming, this is too ambiguous /s
- deleted 6y ago[deleted]
- lifeisstillgood 6y agoLaw already is a programming language. It just has (deliberate) compiler issues Where law is unclear, The drafters of the law were unclear what they wanted or could not agree what they wanted or were unwilling to explicitly state what they wanted. I don't think we need to rewrite our laws in software friendly language. We shall soon enough be needing to have law and software hand in hand - the obvious example is the self driving car and trolley problem - a car sees child ahead in the road, and cannot brake in time so must swerve, but swerving will kill the driver (or a old man on the sidewalk). That must be explicitly coded into the car ahead of time - and that will need to be a regulation / law of the jurisdiction because no car company will just choose. And so we are presented with the perfect problem - it will demand democratic involvement, it is impossibly hard ethically, and it will need the software to be inspectable / verified before and after the incident. If we solved those problems then the recent Post Office debacle would have different .
- azalemeth 6y agoI think the concept that is most useful here is that of fuzzy logic: rather than if statements requiring something that returns 1 or 0, they require a probability p \in [0, 1]. Some things are essentially certain. Others are not. Of course, the main point shown at trials is that these probabilities are themselves uncertain...
- mellavora 6y agoThis view: "Law already is a programming language." always strikes me as so fundamentally wrong, and also very dangerous. Goedel's incompleteness theory shows that an axiomatic system can either be consistent or complete, but not both. Software is an axiomatic system. Human behavoir is NOT. Law provides remedies for specific harms, such that vengeance becomes the right/duty of the state (which hopefully tempers it with justice) Law thus needs room for interpretation and for understanding of the human. Thus the need for a judge. Thus a jury. etc. As one man put it, "the letter of the law kills". Software is only the letter. We all want clear, black and white guidelines on "good" and "bad". We sometimes look down on religions which seek to provide this. For the love of $diety$, let's not make software that $diety$
- deleted 6y ago[deleted]
- tsujp 6y agoThere are already (by analogue) programming languages for law, natural human language. A contract for instance, or the law itself. The problem with the law is interpretation. It is not deterministic and that is because only a small subset of human language is deterministic. A programming language alone does not solve interpretation (what does this statement mean) and trust (can I trust that THE [because there should only be one] interpretation of this statement has been executed). A programming language (interpretation) and a runtime (trust) are both required.
- spuz 6y agoI like the idea of using a formal language to actually aide development of a law. Similar to how when I code, the compiler will tell me if a default clause in a switch statement is missing or help me consider the edge cases when a value is missing. A formal language can help lawmakers consider edges cases that they might not have thought about initially. It may even help them re-consider the entire purpose of the law from a higher level once they actually experience the reality of putting into language. I don't think every law can be programmed in a formal way but I like the idea that formal thinking can potentially help make better laws.
- rwmj 6y agoThey don't mention Stanford's CodeX project? https://law.stanford.edu/codex-the-stanford-center-for-legal-informatics/ https://law.stanford.edu/codex-the-stanford-center-for-legal...
- applepple 6y agoJudging by how most people write code today, I find this idea terrifying. I sometimes wonder if it would be better if we went back to an ancient-Roman style legal system which maximizes the human interpretive element rather than attempts to remove it. It's already the case in many countries today that there is too much focus on the wording of the law and not enough on the intent. People try to use a rigid fixation on the importance of words to twist the law in any direction which benefits them, even in ways that don't feel right. We risk a Kafkaesque situation.
- alpaca128 6y ago> Judging by how most people write code today, I find this idea terrifying Most people today don't write code for safety critical systems. The abstract mentions they already uncovered a "bug" in an active law by rewriting it in their language, so it could be an immensely helpful tool for finding edge cases and loopholes in that mess. > It's already the case in many countries today that there is too much focus on the wording of the law and not enough on the intent Again, as the abstract mentions this is intended for laws that are meant to be interpreted 100% literally like an algorithm. Those exist and those are also exactly the ones that should be absolutely consistent. The real problem I see is that clear, loophole-free laws are often not in the interest of the lawmakers. You only need to take a look at the underhanded ways various parties are trying to undermine privacy.
- kwhitefoot 6y agoAnother problem is that it will probably increase the proliferation of strict liability offences. The fact that a law is internally consistent and free of loopholes does not necessarily mean that it is a good law but an algorithmic approach to creating such laws risks making their creation too easy so that we end up with a large body of law that can't be argued against because it has been 'proven' correct. I'm reminded of a remark that Donald Knuth made regarding a piece of code. It went something like this: "Be careful if you use this, I have merely proven it correct but not tried to run it."
- 6y ago
- deleted 6y ago[deleted]
- lewisjoe 6y agoThe famous mathamatician Godel was onto this some decades ago and found a loophole that allowed the American democracy to be legally turned into a dictatorship. https://en.wikipedia.org/wiki/G%C3%B6del%27s_Loophole https://en.wikipedia.org/wiki/G%C3%B6del%27s_Loophole
- IshKebab 6y agoExactly the sort of misunderstanding of power you'd expect from a mathematician. It isn't the constitution itself that keeps governments from seizing dictatorial power. No potential dictator is going to say "Damn, Article V says it can't be applied to itself! My plans are foiled!"
- eb0la 6y agoCatalá is also the name of the catalan language in catalan (https://en.wikipedia.org/wiki/Catalan_language https://en.wikipedia.org/wiki/Catalan_language).
- frodetb 6y agoI think this is very interesting. As systems of distributed governance and smart contracts mature and emerge, I wonder if this sort of thing will be a step on the way for the old world to keep up.
- eternalban 6y agoThis motivated a visit to wiki to look up Code of Ur-Nammu. Some gems (yes, /s) in there: If a man accused the wife of a man of adultery, and the river ordeal proved her innocent, then the man who had accused her must pay one-third of a mina of silver. So, here is justice at work. If she drowns, she was guilty. If she survives, someone gets 1/3 of a Mina. Ur-Nammu is vague here as to who gets the money. Likely the husband. How would we code this in Catala? I'll start it, someone else can finish it /g declaration structure Person: data id content integer declaration structure Period: data start content date data end content date declaration structure MarriedCouple: data marriage_date content date data husband content Person data wife content Person declaration structure AccusationOfAdultery: data couple1 content MarriedCouple data accuser content Person data adultery_date content Period declaration structure River data id content integer declaration structure OrdealByWater: data subject content Person data river1 content River data ordeal_date content Period declaration scope UrNammuLaw14: context requirements_met condition context married_met condition context accused_while_married_met condition context tested_by_water_ordeal_met condition ... https://en.wikipedia.org/wiki/Code_of_Ur-Nammu#Surviving_laws https://en.wikipedia.org/wiki/Code_of_Ur-Nammu#Surviving_law...
- valenterry 6y agoOkay, but isn't that a good thing? Because in the normal case, everything will already be there and only the last part must be written. And then, if someone changes the definition of a "River" then you will immediately see all the laws that are impacted and how they are impacted. Sounds good to me.
- gtsop 6y agoAnd that's why we should also write tests, to make sure the intention of the law works at all times.
- valenterry 6y agoI don't think it is either or. Tests are certainly helpful, but they are not perfect and they do not replace a good language/compiler.
- Rochus 6y agoThere have been many such attempts (e.g. NKRL by Zarri et al., also funded by EU, not mentioned by the paper). There are even societies that have been dealing with such issues for many decades (e.g. http://www.iaail.org http://www.iaail.org). The formalization of law and language is only one of the issues. Like many previous attempts, this one suffers from the fuzziness of human language. Fuzziness is not a drawback; it is what makes it possible to communicate efficiently in the first place. In order for us to communicate effectively, we need an enormous amount of tacit knowledge about our environment that our culture and life experience brings. If one tries to formalize the language, as in the present approach, one must also take this knowledge into account, down to the last detail (an "upper ontology" is by far not sufficient for this, and e.g. at https://en.wikipedia.org/wiki/Cyc https://en.wikipedia.org/wiki/Cyc they have been working on a complete formalization for decades and are far from finished). And the tacit knowledge and also the moral valuation of the same change over time. And there are things like https://en.wikipedia.org/wiki/Sorites_paradox https://en.wikipedia.org/wiki/Sorites_paradox which stand in the way of a complete formalization. And also works like those of Gödel or Wittgenstein showed the limits long ago.
- timkam 6y agoAt first glance, the paper seems to be written by competent people, but the 'related research' section is rather shallow. How is what the authors have developed more than "yet another language"? I don't want to be too critical, though, it probably can't hurt to work on something new without dragging along all the baggage of the past. Still, it feels a bit strange from an academic perspective.
- Mustakari 6y agoKatala means devious in Finnish. Possibly not coincidence.
- huachimingo 6y ago"Catalán" or "Català" is a widely language spoken in Catalunya, NE Spain. Occitan is his sister language, spoken in south of France.
- gtsop 6y agoI think coding the law is not just great, but also the only way forwards. A couple of things: - Comparing codifying law vs codifying human language/communication in general I think is very unfair. No doubt law is using the form of human written communication but it has structure and it is meant (at least in principle) to be precise. Even if there is some legislation that goes beyond that structure (honestly interested in seeing a few cases) why would we restrict ourselves from codifying all the rest of the legislation? We can have at least part of our law in an executable form, I can't see a drawback with that. - Just for fun, let's start thinking about the intersection of law binaries and software licences, oh boy! :D
- hobbyjogger 6y ago> Even if there is some legislation that goes beyond that structure (honestly interested in seeing a few cases) It's extremely rare, approaching nonexistent, for laws to have a precise, deterministic meaning because the vast majority of human language doesn't either. Here's a good example from CodeX (Stanford Center for Legal Informatics) that assesses an extremely simple law, which contains a surprising amount of ambiguity[0]: > "One technical problem with Computational Law, familiar to many individual with legal training, is due to the open texture of laws. Consider a municipal regulation stating "No vehicles in the park". On first blush this is fine, but it is really quite problematic. Just what constitutes a vehicle? Is a bicycle a vehicle? What about a skateboard? How about roller skates? What about a baby stroller? A horse? A repair vehicle? For that matter, what is the park? At what altitude does it end? If a helicopter hovers at 10 feet, is that a violation? What if it flies over at 100 feet? [0] https://law.stanford.edu/2016/01/13/michael-genesereths-computational-law-the-cop-in-the-backseat/ https://law.stanford.edu/2016/01/13/michael-genesereths-comp...
- BiteCode_dev 6y agoNow, how they are going to solve the versioning problem of the same program having to deal with the ever changing laws, contradictory law statements and scripts that need to contain several versions and contradictory versions is going to be very interesting. After all, those could benefit programmers too.
- hiaux0 6y agoMy personal motivation behind "law as a programming language" is to aid me, as a lay person [1], to understand it better. An AST could help me quickly navigate between paragraphs, and make searching the law easier?! --- [1]: Just someone, who wants to understand law easier, and not spent years having to study it. "understand law easier" also in the sense of TLDR law. And yes, I'm aware of the interpretation aspect of the law, but just give me some easy to understand starting point. Edit: formatting, formulation
- Zhyl 6y agoA programming Language for Law is a bad idea. Or, certainly, one must have a very clear idea of what the goals are for such a programming language. For example this (almost throwaway) comment from another post: >I'm wondering what could result of the combination of smart contracts on a blockchain and this legal language Is precisely the wrong way to be thinking about this. The expectation of Law formalised into code is that the benefit lies from the execution: that if you can provide it with the 'inputs' then the neutral computer will do the 'hard work' of working through the consequences and output a decision. The other intended hope is that the computer can act as a neutral mediator (presumably why what I quoted above also includes the words 'blockchain' and 'smart contracts') which will come to its conclusions justly and without prejudice. Indeed, if you have an agreed upon system via both parties, then it acts like the spinning table at the beginning of the Temple of Doom - allowing two parties with competing interests to come to an accord without trusting each other. But it is pretty clear to anyone who has worked within a legal or law enforcement context that this is not usually the bottleneck. Lawyers and Justices are usually intimately familiar with the law, and so much of a trial or a case is working through the establishment of the inputs and any of the logical crunching is normally able to be followed through fairly easily by those present. There is absolutely a case for tools around the law that may superficially seem similar to the above, but in spirit are the complement: search tools for users to easily find related documents, markup to declare and highlight evidence formally (for human consideration, not machine), editors that can assist with writing up legal documents etc. Something that would seem to be the same thing, for example, would be to create a data model over the existing law to describe the legal architecture as alluded to in the description of the OP: dependencies, exceptions, related articles etc. However, the purpose of doing this in the OP would be to make this executable. The actually useful thing is a lot more banal - to allow things to be surfaced for human inspection and consideration more quickly and easily. It would be to try to spot contradictions and inconsistencies in the law making stage, not in the law interpretation stage. It would be to spot the impact of making a change to one paragraph beyond just the Act that is being scrutinised. These things are decidedly unsexy to a technical audience, and don't have that same electric feel of 'solving a problem'. Indeed, many of the biggest advances to be made in Law are to be using de rigeur tools in the tech world (such as version control) in a legal context. A TED talk that summarises some further points: https://www.youtube.com/watch?v=CEN4XNth61o https://www.youtube.com/watch?v=CEN4XNth61o
- forgotpwd16 6y agoLojban, a predicate logic-based language designed to be unambiguous, is also a good choice. Though there's a difference (usually harder) in learning a human to a programming language. Interestingly, its ancestor, Loglan, originating in 60s predates logic programming itself.
- MockObject 6y agoLojban is the first thing that came to mind as I saw this. An excellent choice.
- mdaniel 6y agoBe aware that switching languages entirely for the law introduces two new problems: translation from the thoughts one has in their head into the target specification language, and that means not everyone who is subject _to_ the laws can all _know_ the laws. That circumstance reminds me of the church services in Latin -- "uh, trust me, the Lord said you should definitely mow my lawn or risk firey damnation. He said bring beer, too" Now, while using a programming language mildly runs afoul of those same risks, the difference in my mind between a programming language and using lojban (or conlang-o-choice) is that the programming language uses the same vocabulary (plus or minus) just with more rigor in the links between the words. One need not already know "re'azda" is "house" in order to figure out "house.value"
- forgotpwd16 6y agoYeah, that's what I meant with difficulty. A programming language is basically specified logic that can utilize any human language (vocabulary) as basis. But you lose freedom since you're forced to structure your logic in a specific pattern. Lojban requires you learning a new vocabulary to regain flexibility while retaining the rigor. The benefit of this in law becomes apparent when considering the importance of semantics over syntax.
- dividedbyzero 6y agoEveryone who thinks law-as-code on actual, not tax-code-algorithm law is a great idea: We as an industry have yet to figure out how to reliably get simple business processes into code without mishaps, imagine the hubris of attempting to get all of society into code without terrible results ...
- amitport 6y agoThey're not aiming at all of society. Parts of the law are already algorithms (not all of it), they just happen to be written in an obscure uncompilable Legalese.
- oscardz 6y agoThe Dutch Tax Administration have been using controlled natural language for the specification of their legislation for some time now with JetBrains MPS (external) DSLs: https://www.youtube.com/watch?v=1pfABlzO2Wc&index=2&t=0s&list=PLQ176FUIyIUZXibX-WXeiBAM8VnuohJZQ https://www.youtube.com/watch?v=1pfABlzO2Wc&index=2&t=0s&lis...
- haram_masala 6y agoTangential note, it’s exciting to see someone using MPS. It’s an interesting and possibly transformative software technology that seems ahead of its time.
- amitport 6y agoSounds very similar to https://www.eclipse.org/Xtext/ https://www.eclipse.org/Xtext/ (though I never used MPS)
- oscardz 6y agoYes, MPS and Xtext are the best language workbenches in the market. The main difference is that MPS uses a Projectional editor, so you can use different notation (not only text): https://youtu.be/XGm_khXZl44 https://youtu.be/XGm_khXZl44
- xondono 6y agoWasn’t this posted some time ago?
- sdfhbdf 6y agoThe reason why law, especially criminal, can't be expressed via bytecode is mostly because law in action is enforced selectively based on social effects. There are too many edge cases, circumstances and such to be able to with a binary output apply it to a situation. There is a possiblity of automating the mundane, the administrative tasks, which seems like this language is taking a shot at - tax law - or such, but probably in the end we will start transitioning to law that just mentions that the taxes are counted by an algorithm and the algorithm is published on GitHub. Using software metaphors, I think law has too much responsiblites and we need to decouple some stuff. Source: I am law student, software engineer.
- 3v1n0 6y agoI think what would matter isn't the application of it, but writing the law in a way that can be analized better than in a sentenced format
- Siira 6y agoIt’s also not as easily biasable.
- Ericson2314 6y agoThis is nonsense. We can use these techniques even when "inputs" are somewhat subjective. They point is to separate the boring mechanical parts from the interesting parts. This type of argument is the same as the people arguing types are bad because they alone don't ensure program correctness. They don't need to. They take care of the boring bits freeing up the mind to think about the interesting parts.
- swiley 6y agoAs if "computer says so" wasn't bad enough already.
- gampleman 6y agoI think a great use case for this is to build legal validators. For instance if you make products that are heavily regulated and you want to distribute them in many jurisdictions, than having software that can take a description of your product and tell you in which jurisdictions it passes and in which it fails (and why and how to fix it) can drastically cut your iteration times.
- kiney 6y agoFinally someone is doing this! For years I've had the opinion, that law would be better of with more fomalization and that laws should be written in formal language. A friend of mine even tried to built a parser for german law a few years back, but the project never got very far.
- danielam 6y agoComputational law isn't new by any stretch.
- motohagiography 6y agoThis might be more useful for specifying the clauses of smart contracts than actual law.
- wonks 6y agoProgrammers and lawyers: together at last!
- elliekelly 6y agoThere are dozens of us!
- ksec 6y agoThe syntax reminds me of Ada. I wonder if that is pure coincidence.
- mastrsushi 6y agodeclaration scope Section121Return: context return_data content ReturnType context person1 scope Section121SinglePerson context person2 scope Section121SinglePerson context gain_cap content money Why can't this just be a framework for JS of Python? Something that any person of law could easily get into and give them the power of learning the basics of a popular language. Little about this seems compelling and comes off as self-indulgent. Could you imagine the dread of some poor guy with little to no interest in programming having to learn this?
- anonair 6y agofunny that the name of the language transcribed to Russian Cyrillic is "Катала", meaning "criminal fraud gambler" https://ru.wikipedia.org/wiki/Катала https://ru.wikipedia.org/wiki/Катала
- kensai 6y agoI always thought the next programming language for the Law will come from some curious Cryptocoin with a very specialized contract programming language...
- giantg2 6y ago"But in some other areas, law leaves little room for interpretation, and essentially aims to rigorously describe a computation, a decision procedure or, simply said, an algorithm." I would love to know what these areas are. There I'd debate around all sorts of seemingly little things in the law, like a definition or a word being singular. On top of that you have "discretion" built in and highly utilized with the judge, cop, and especially the prosecutor. We already have legal algorithms for sentencing, alimony, child support, etc. These are widely decried as terrible. Why would we want more?
- wayneftw 6y agoSee also - https://github.com/CatalaLang/catala https://github.com/CatalaLang/catala