That's brilliant work, thanks!
Imagine if IRS would produce something like this (open sourced) and we could file our returns like this.
Imagine if the tax code itself were written in Python.
def computeTax(**kwargs):
.. blah blah ..
return how_much_you_owe
Of course we all know what comes next... from scipy.optimize import minimize
In 2014, the Policy Simulation Library [1] added a model called Tax-Simulator [2], which is a Python reimplementation of TAXSIM [3][4]. It is available as open-source [5], and designed to let researchers both change existing policy variables and implement new tax reforms in Python.
[2] https://taxcalc.pslmodels.org/
[3] https://taxcalc.pslmodels.org/about/history.html
[4] https://github.com/PSLmodels/Tax-Calculator/blob/master/taxc...
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 [1] https://arxiv.org/abs/2011.07966