Skip to main content

Coding utilities for quantitative legal studies

Project description

PyPI Build Status Maintainability codecov Documentation Status DOI

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. Different to most other Named-entity recognition packages this module does not only identifies the references but also extracts its content. This can e.g. be used to quantitativly analyze the structure of the law.

For example can the content of two references in the following text be extracted.

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:

  1. [[['§', '111d'], ['Abs', '1'], ['Satz', '2']]] for the law StPO
  2. [[['§', '91']]] for the law InsO

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 furhter information about the individual usages.

Installation

Python 3.7 is recommended. Our package is provided via pip install quantlaw.

Further repositories

It is, inter alia, used to produce the results reported in the following publication:

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

Related Repositories:

Related Data: Preprocessed Input Data for Sci. Rep. 10 (2020)

Collaboration

Please format the code using isort, black, and flake8. An 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantlaw-0.0.5.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

quantlaw-0.0.5-py2.py3-none-any.whl (21.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file quantlaw-0.0.5.tar.gz.

File metadata

  • Download URL: quantlaw-0.0.5.tar.gz
  • Upload date:
  • Size: 38.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for quantlaw-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1f5153aacd1db90924df212dd8aa74a263c17060876c4b6bedc05d3b8ccba868
MD5 07e8e176adba8b833555ed536fd84d1d
BLAKE2b-256 1a7e9cfe374cff12c7be6e2dad5cb47e3c17eb05ba268c90116659737a266308

See more details on using hashes here.

File details

Details for the file quantlaw-0.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: quantlaw-0.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for quantlaw-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 559be63ee82816f4b990286e747e4ed022fb78b5e679395405316cfb9a9c2445
MD5 02e66d40b8ddc04f6f0a4001fb36446c
BLAKE2b-256 b4dfafe95fdbbf0f9b002bce0c216a05b828158485e4d25ca766a1fce6874819

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page