quantlaw
This package contains coding utilities for quantitative legal studies.
Modules
The package currently consists of two modules.
de_extract
quantlaw.de_extract is an extractor for references to statutes in German legal texts.
In contrast to most other named entity recognition packages, this module not only
identifies the references but also extracts their content. This can, e.g., be used to
quantitatively analyze the structure of the law.
For example, we can extract the content of two references in the following text.
Source text:
"In den Fällen des § 111d Absatz 1 Satz 2 der Strafprozessordnung findet § 91 der Insolvenzordnung keine Anwendung."
The extracted data would be:
[[['§', '111d'], ['Abs', '1'], ['Satz', '2']]]for the lawStPO[[['§', '91']]]for the lawInsO
Getting started in the documentation contains a minimal example.
utils
quantlaw.utils contains several utilities that are helpful to analyze the structure of
the law with BeautifulSoup and networkx. The documentation contains further
information about the individual usages.
Installation
Python 3.7.9 is recommended. Our package is provided via pip install quantlaw.
Related Projects and Publications
It is, inter alia, used to produce the results reported in the following publications:
- Daniel Martin Katz, Corinna Coupette, Janis Beckedorf, and Dirk Hartung, Complex Societies and the Growth of the Law, Sci. Rep. 10 (2020), https://doi.org/10.1038/s41598-020-73623-x
- Corinna Coupette, Janis Beckedorf, Dirk Hartung, Michael Bommarito, and Daniel Martin Katz, Measuring Law Over Time, Front. Phys. 9:658463 (2021), https://doi.org/10.3389/fphy.2021.658463
- Corinna Coupette, and Dirk Hartung, Rechtsstrukturvergleichung, RabelsZ 86, 935-975 (2022), https://doi.org/10.1628/rabelsz-2022-0082
- Corinna Coupette, Dirk Hartung, Janis Beckedorf, Maximilian Böther, and Daniel Martin Katz, Law Smells, Artif Intell Law 31, 335-368 (2023), https://doi.org/10.1007/s10506-022-09315-w
- Janis Beckedorf, Komplexität des Rechts, Mohr Siebeck, to appear (2025), https://doi.org/10.1628/978-3-16-164476-4
Related Repositories:
- Complex Societies and the Growth of the Law (Publication Release)
- Measuring Law Over Time (Publication Release)
- Law Smells (Publication Release)
- Komplexität des Rechts (Publication Release)
- Legal Data Preprocessing (Latest Publication Release)
- Legal Data Clustering (Latest Publication Release)
Related Data:
- Preprocessed Input Data for Sci. Rep. 10 (2020)
- Preprocessed Input Data for Measuring Law Over Time, Front. Phys. 9:658463 (2021)
- Preprocessed Input Data for Komplexität des Rechts, Mohr Siebeck, to appear (2025)
- Preprocessed Input Data for Law Smells, Artif Intell Law 31, 335–368 (2023)
Collaboration
Please format the code using isort, black, and flake8. A convenient option to
ensure correct formatting of the code is to
pip install pre-commit and run
pre-commit install to add code checking and reformatting as git pre-commit hook.
Metadata
Release files for quantlaw 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quantlaw-0.0.7.tar.gz | 39.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quantlaw-0.0.7-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 61.6 kB
Release files / quantlaw-0.0.7.tar.gz
| Download URL | quantlaw-0.0.7.tar.gz |
|---|---|
| Size | 39.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
504df2e31b4a00352b967d381d71a53354f83fb417dc56c7f84b976337731869
|
|
BLAKE2b-256 checksum How to use checksums |
1b60c31ea461874807a737327222723f54b9c909eb26c6065e9946d57dc24b9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.17
|
Release files / quantlaw-0.0.7-py2.py3-none-any.whl
| Download URL | quantlaw-0.0.7-py2.py3-none-any.whl |
|---|---|
| Size | 22.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d263b9cca27d53a1eb6cb68acb0fcbdd2cf1c68658b4231dbca6bf192cbeb2d2
|
|
BLAKE2b-256 checksum How to use checksums |
211c65386345bd5d2e61dc9d3ef584a00db29d0ae5b8c17c5b0328ed52e17a43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.17
|