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. 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:

  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 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:

Related Repositories:

Related Data:

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.

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.7.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantlaw-0.0.7-py2.py3-none-any.whl (22.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: quantlaw-0.0.7.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for quantlaw-0.0.7.tar.gz
Algorithm Hash digest
SHA256 504df2e31b4a00352b967d381d71a53354f83fb417dc56c7f84b976337731869
MD5 8afac88c1111c1927acc8372f3ff7efb
BLAKE2b-256 1b60c31ea461874807a737327222723f54b9c909eb26c6065e9946d57dc24b9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quantlaw-0.0.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for quantlaw-0.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d263b9cca27d53a1eb6cb68acb0fcbdd2cf1c68658b4231dbca6bf192cbeb2d2
MD5 f752d8bf5361493dd6f41f16d9d29d3a
BLAKE2b-256 211c65386345bd5d2e61dc9d3ef584a00db29d0ae5b8c17c5b0328ed52e17a43

See more details on using hashes here.

Supported by

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