mlang
openfisca-france
mlang | openfisca-france | |
---|---|---|
7 | 3 | |
175 | 245 | |
0.0% | 0.8% | |
9.1 | 9.8 | |
5 days ago | 6 days ago | |
OCaml | Python | |
GNU General Public License v3.0 only | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mlang
-
IRS builds task force to explore running its own free e-file system
french tax code has a semi-official DSL syntax
https://github.com/MLanguage/mlang
-
Show HN: Calculator for US Individual Income tax, from 1970-present
France has an open source implementation of their tax code [0]. The paper [1] gives an overview of the implementation language, mlang.
[0] https://github.com/MLanguage/mlang
-
Open Source Tax Software
The french initiative started in 2013 is still alive (last commit a few days ago), and passes the gov test suite (they keep in touch with our version of the IRS): https://github.com/openfisca/openfisca-france
The way we got this is interestingly twisted.
French citizens requested the software used by the administration, and they managed to get it!
But, it's was written in Mlang is a proprietary language created by the french administration in the 90: https://github.com/MLanguage/mlang.
Someone then decided to create an OCaml compiler that takes mlang and emits python: https://arxiv.org/abs/2011.07966
As a result, we got we got open fisca. I know believe there are other techs in the mix...
A slide of the story: https://www.slideshare.net/Etalab/opening-up-the-french-tax-...
- Catala: A Programming Language for the Law
-
Code isn’t law—law is law
They have open sourced the algorithm they use to compute taxes here: https://gitlab.adullact.net/dgfip/ir-calcul which used a purpose made programming language https://github.com/MLanguage/mlang
-
Software engineers make the best CEOs, at least when measured by market cap
It's important to note that this isn't universal across the entire legal system. Some subsets like France's tax system are defined in code, and there's some efforts to create more general systems as computational law advances as a field.
-
Templating for Lawyers
--> https://github.com/MLanguage/mlang
*"Compiler for the M language, used to compute the income tax of French taxpayers"*
openfisca-france
- Show HN: Calculator for US Individual Income tax, from 1970-present
-
Open Source Tax Software
The french initiative started in 2013 is still alive (last commit a few days ago), and passes the gov test suite (they keep in touch with our version of the IRS): https://github.com/openfisca/openfisca-france
The way we got this is interestingly twisted.
French citizens requested the software used by the administration, and they managed to get it!
But, it's was written in Mlang is a proprietary language created by the french administration in the 90: https://github.com/MLanguage/mlang.
Someone then decided to create an OCaml compiler that takes mlang and emits python: https://arxiv.org/abs/2011.07966
As a result, we got we got open fisca. I know believe there are other techs in the mix...
A slide of the story: https://www.slideshare.net/Etalab/opening-up-the-french-tax-...
-
Catala: A Programming Language for the Law
That line in the summary is a bit misleading. The authors didn't find a "bug" in any law - instead they found a corner case that wasn't included in an online tool hosted by the French government to estimate family benefits under French law:
> After close inspection of the OpenFisca code, a discrepancy was located with the Catala implementation. Indeed, according to article L755-12 of the Social Security Code, the income cap for the family benefits does not apply in overseas territories with single-child families. This subtlety was not taken into account by OpenFisca, and was fixed after its disclosure by the authors.
Here's the pull request for their fix to the benefits simulator: https://github.com/openfisca/openfisca-france/issues/1426
What are some alternatives?
catala - Programming language for literate programming law specification
Textual - Textual is an IRC client for OS X
ScottishTaxBenefitModel.jl - A tax-benefit model for Scotland
UsTaxes - Tax filing web application
usincometaxes - Calculate Federal and State US Income Taxes
Keka - The macOS & iOS file archiver
taxsim.js - JS/WebAssembly version of NBER TAXSIM
policyengine-us - The PolicyEngine US Python package contains a rules engine of the US tax-benefit system, and microdata generation for microsimulation analysis.