Translators and Extensions
Logical English and Logic Production Systems are open source. So are the translators that read the programs of other rule systems. Two licensed products extend the open systems: the LE Contract Assistant, and the InsurLE language extensions. Everything runs on the hosted editors, so nothing has to be installed: sign in with Google or GitHub on either site. A licence attached to your email address unlocks a licensed product on both.
The translators: open source
Nineteen rule languages, one plain English, all open. Logical English reads Oracle Intelligent Advisor, DMN, RUML, Drools, Catala, OpenFisca, RuleSpec, Rune, L4, LegalRuleML, Blawx, s(CASP), Daml, Solidity, Miniscript, spreadsheets and more, and writes several of them back. Each translator is checked against the other system’s own engine. All of it is under the Apache 2.0 licence.
The translators are in the Logical English repository, in the folder migration, with their tests. Deploy as Solidity and the reader of Drools rule files are in the Logic Production Systems repository. You can read them, run them on your own machine and repair them. On our hosted editors they are free: sign in, and File ▸ Open and File ▸ Export offer them. The translators are published “as is”: each one passes its tests on the versions of the other system that its documentation names, and we make no promise to follow later versions. For a promise, there are the support subscription and sponsored development.
Rules for law and business are written in many notations. The translators read the programs of eighteen other rule systems, and Excel workbooks, into Logical English, where they can be read without training, run, explained and tested, and they write some of them back. Each translation follows fixed rules, with no language model involved, so the same file always gives the same result.
| System | Into Logical English | Back out |
|---|---|---|
| Axiom RuleSpec (United States statutes and benefit rules, from the Axiom Foundation) | yes | yes |
| Bitcoin Miniscript spending policies | yes | yes |
| Blawx version 1 (rules as code, Canada); not the hosted Blawx 2 and 3, which keep projects in the service rather than as files | yes | |
| Catala (Inria’s language for laws), in English or in French — preliminary | yes, in part; French programs as Français Logique | yes |
| Daml contracts (Canton) | as LPS programs | yes |
| DMN decision models with their FEEL expressions (the OMG standard, run by Camunda, Drools, Trisotech and others), including the Dutch STTR profile of the Omgevingswet | yes | |
| Drools rule files (DRL) | stateful rules as LPS programs; decision services as rules | |
| Epilog (Stanford) | rulesets as rules; games as LPS programs | |
Excel workbooks (.xlsx and .xlsm): formulas as rules, lookup ranges as decision tables | yes | |
| L4 (Singapore Management University, Legalese) | rules as rules; contracts as LPS programs | |
| LegalRuleML (the OASIS standard for legal norms) | yes | yes |
| Oracle Insurance Policy Administration (OIPA) transactions | yes | |
| Oracle Intelligent Advisor projects | yes | |
| PolicyEngine and OpenFisca tax and benefit models (Python) — preliminary | yes, in part | yes |
| RUML rulemaps (the Rulemapping Logic Format for the decision logic of laws, from the Law as Code Institut, Berlin) | yes; Logical English also evaluates a rulemap for a case, and writes the result in RUML’s own format | yes |
| Rune (the language of the derivatives industry’s Common Domain Model and Digital Regulatory Reporting rules, from FINOS and ISDA) | yes | yes |
| s(CASP) and Prolog, including Logical English 1 | yes | as s(CASP) |
| Socotra insurance product configurations | yes | |
| Solidity contracts (Ethereum) | as LPS programs | yes, Deploy as Solidity |
What a translation gives you. The Logical English program; the source’s own tests, written as scenarios with the answers the source gives; and a ledger, a table with one row for each element of the source, saying whether the element was encoded, approximated (with a note on how its meaning changed) or left as residue for a person to translate. A translator never gives up on a whole file because of one fragment: the fragment is kept in the program, word for word, marked as work to do. When the way back exists and the program says something the other system cannot express, the export refuses and names the lines, rather than writing something that quietly means something else.
Checked against the source’s own engine. Every translator was run on published programs of its source system, and the translations, called twins, were checked against the answers of that system’s own engine: Blawx’s reasoner, s(CASP), a Drools session, a Canton sandbox, L4’s evaluator, Axiom’s engine, the OpenFisca and PolicyEngine engines, Catala’s interpreter, the Digital Regulatory Reporting engine, Apache KIE Drools’ engine for DMN, the evaluation tests that RUML publishes, the values an Excel workbook computes for itself, a Solidity compiler and a virtual machine replaying real transactions. The twins whose sources may be redistributed are among the public examples of the two editors, with the sources, the tests and the ledger beside each one. The Socotra and Oracle Intelligent Advisor twins are not published, because their sources carry no licence that allows it; nor are the PolicyEngine and OpenFisca twins, whose sources carry a licence, the GNU Affero General Public Licence, whose terms would then apply to the twins as well. Nor are the twins of the Digital Regulatory Reporting rules, whose licence allows them to be shared only without changes.
Spreadsheets. Many rules are published as Excel workbooks: a tax calculator, a benefit worksheet, a child support form. File ▸ Open turns a workbook into a Logical English program, its twin: each formula becomes a rule that keeps the formula beside it, each range the formulas look values up in becomes a decision table, and each cell a person types into becomes a fact that a scenario states. The words of each template come from the label beside the cell, in the workbook’s own language. The expected answers of the twin’s scenarios are the values the workbook itself computes, so every twin is checked against its workbook. Among the workbooks translated so far are a Massachusetts food benefit worksheet, Oklahoma’s child support calculator, a Portuguese income tax calculator and the United States medical loss ratio form, each twin agreeing with its workbook on every answer checked. A program can also leave a workbook as it is and ask it for answers, as it would ask any outside service. The guide is Spreadsheets and Logical English, in the Help menu of the editor.
RUML, the format for Law as Code. RUML, the Rulemapping Logic Format, is a file format for the decision logic of laws. A RUML file, called a rulemap, is a tree of questions about one case, each with the answer yes or no, with the data that each question reads and the text of the law that each question comes from. The Law as Code Institut of Berlin published its first version in November 2026. Logical English does three things with a rulemap. It reads the rulemap and writes it as rules in English, each question a sentence, with the text of the law as the source of its rule. It writes a Logical English program back as a rulemap. And it evaluates a rulemap for a case: given the rulemap and the data of the case, it writes the result in RUML’s own result format, with a reason for every question, which is the values the question read or the value that is missing. This evaluator was written from the published specification alone, and it passes the 103 evaluation tests that RUML publishes, in both of RUML’s ways of evaluating. The twins of the 80 public rulemaps, which are the examples of the specification and the files of its tests, agree on all 3,508 answers checked. Because Logical English also reads the other systems of the table above, it is a way into RUML for rules that exist elsewhere: so far 26 of 39 RuleSpec twins, 36 of 80 L4 twins and 18 of 114 DMN twins can be written as rulemaps. RUML speaks about one case with yes-or-no questions, and a program of another shape is refused, with the reason. The guide is RUML and Logical English, in the Help menu of the editor.
Preliminary translators. The PolicyEngine and OpenFisca translator and the Catala translator, added in October 2026, are preliminary. Every answer of their twins that was checked agrees with the other system’s own engine, and both write programs back out. But a good part of a large real program is still left for a person to translate. In PolicyEngine’s models, these parts are mostly steps repeated over a list, questions about all the members of a household, and calculations the model’s authors wrote apart from the rules that use them. In Catala, they are mostly lists, lengths of time (20 years) and definitions that depend on which child or which period is meant. On the largest models these two translators give a head start, not yet a finished program.
What is not covered. The RUML translator does not translate the actions of a rulemap, a question that belongs to another rulemap, or the expressions that work on texts and dates: it keeps them in the program, marked for a person. It refuses a rulemap that requires a capability of another organisation, as the RUML specification says a tool must. France’s tax and benefit model (openfisca-france) is read only in part so far: the income tax, the housing allowance and the RSA (France’s minimum income). Solidity contracts that use loops, external calls or assembly leave those parts for translation by hand; the L4 and DMN translators have no way back yet. The DMN translator does not read times of day, dates with times, durations of days and hours, regular expressions or functions as values: it keeps them in the program for a person to translate. The spreadsheet translator writes nothing back to Excel, refuses the older .xls and the OpenDocument .ods formats (save them as .xlsx first), and leaves for a person, word for word, the formulas it cannot read: links to other workbooks, matrix calculations, and macros. What each translator leaves out is in its documentation, in the Help menu of each editor.
The LE Contract Assistant
The LE Contract Assistant is a licensed product. It writes the first draft of a program from a contract. You give it the wording (a file, or the web address where it is published), contract schedules, and claims or other cases with outcomes. It writes the program in competing drafts, each by a language model you choose; you may pair, say, an OpenAI model with an open weights model. It tests every draft against the cases, repairs what fails, and delivers the best one.
The new program cites the wording: each rule names the clause it encodes and quotes it, and every quotation is checked against the text. The rules are grouped as the decision is: does the contract apply, is the case covered, what follows. The program comes with a screen (Logical English View) for people who decide cases, chosen by the kind of document: a claims desk for an insurance policy, an interview for an eligibility rule. A generated ledger lists, clause by clause, what was encoded, what was left out on purpose and what is still missing, with the clause’s own words.
Several kinds of document. The assistant first decides what kind of document it is reading, and uses a profile for that kind: an insurance policy with its schedule, a coverage policy such as a Medicare policy, a tariff or an ISDA credit support annex. A profile tells it which parts of the document are rules, which are the facts of each case and which are procedure, and how the document numbers its clauses. When a document depends on documents it names, such as the policy article of a Medicare policy, the assistant can fetch those too and read them together. And for a contract that must act over time, such as a loan that charges a fee when a payment is late, it writes the program in Logical English for LPS, and checks it by running each case as a timeline.
Other ways to use it. It can fill a data schema: give it the list of data elements of a kind of document, such as the elements of a credit support annex, and it gives each element its value, with the words of the document that state it. It can convert a set of related documents, one program each, into one collection with an index, so that a question such as “which policy covers this item” has an answer. And each of its stages is also a tool that an AI coding assistant such as Claude Code can call, one at a time, over the Model Context Protocol.
Effort level, and its cost. A dial lets the user increase the conversion effort: test cases written from the contract alone by two or three models from different companies, which check each other’s answers; a check of each rule against the clause it quotes; drafts by different models; more drafts, until new drafts stop adding anything; more repairs. A cost estimate is shown, and the final report gives what each step actually cost.
What it achieved in tests. On two credit support annexes, it gave 84 of the 86 values of a reference extraction, and no wrong value. These are individual tests, not guarantees.
The language models write the draft. Once delivered, the program answers deterministically, without using any model: the same case gives the same answer, explained by the clauses it rests on. A draft is a draft… a person who understands the contract reviews it, as they would read a colleague’s.
Licensing. The Contract Assistant is licensed on the hosted editors, without installation: the LE Contract Assistant licence. A private instance (LE Server, on the pricing page) includes it. To order, or for a quote, write to licensing@logicalcontracts.com. Academic teaching and research as well as public-sector pilots get free access, in exchange for permission to name the user; simply email us indicating an institutional email, and an account will be created shortly after.
A free twin of one of your programs
Send us one program of yours: an Oracle Intelligent Advisor project, a Drools rule file, a Blawx version 1 project, a Miniscript policy, a Socotra product, a Solidity contract, a Daml module, a LegalRuleML document, an L4 file, a DMN model, a RUML rulemap, a RuleSpec module, an OpenFisca or PolicyEngine variable file, a Catala program, or an Excel workbook. Within five working days you get back its Logical English twin, its ledger, and a link that runs it in the browser. Free, and yours to keep. We publish nothing without your written permission. Use the form, or write to licensing@logicalcontracts.com. The Migration Gallery shows the twins already made, one system per row, with the result of each check. What follows a free twin, for an organisation, is on the page For organisations.
InsurLE: language extensions for contracts and statutes
Contract and statute text is written with devices that plain Logical English does not have. The InsurLE extensions add them, so that a program can follow more closely the text as it is written:
- a which in the conclusion of a rule: a claim is covered if the policy covers the loss which the claim reports;
- conditions introduced by unless;
- groups of conditions under either, any of or all of;
- conditions numbered 1., 2., 3., as a clause numbers its paragraphs;
- chains of prepositions in a template.
The extensions come with InsurLE’s own example programs, written from insurance policies and regulations. They are licensed through Axiome Partners: see https://www.axiomepartners.com.
Signing in
Choose Login at the top right of either editor, https://le2.logicalcontracts.com or https://lps2.logicalcontracts.com, and sign in with Google or GitHub. Alternatively, email us to have an account created for another email address. One sign-in covers both sites. Google and GitHub tell us your email address and nothing else. Signing in gives you the translators, which are free. A licence adds the licensed product it names. Everything else is open without signing in. The privacy notice says what the sites keep about you.
