Giter Club home page Giter Club logo

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.

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

quantlaw's Projects

jz-2018 icon jz-2018

Online-Anhang zu Coupette/Fleckner, Quantitative Rechtswissenschaft, Juristenzeitung 73 (2018), S. 379-389

law-smells icon law-smells

Replication package for "Law Smells: Defining and Detecting Problematic Patterns in Legal Drafting" (Artificial Intelligence & Law 2022)

measuring-law-over-time icon measuring-law-over-time

Paper and data analysis for "Measuring Law Over Time: A network analytical framework and an application to statutes and regulations in the United States and Germany"

quantlaw icon quantlaw

Coding utilities for quantitative legal studies

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.