Skip to main content

Update pre-existing opinion file with statutes, citations, short title.

Project description

corpus-writer

Github CI

Update pre-existing opinion file (in markdown front-matter) with statutes, citations, short title.

The decisions / statutes directories needs to be configured via an .env file, see just dumpenv for an

Steps

  1. Delete the statutes database since this may have been previously updated via their original yaml files
  2. The lack of a statutes database will cause a rebuild of the same

Run the following python command:

from corpus_writer import get_opinion_files_by_year, update_markdown_opinion_file

for i in range(1900, 1946):
    for file in get_opinion_files_by_year(year=i):
        update_markdown_opinion_file(file=file)

Note that for cases like am/97-9-282-rtc/1998-04-22/main-123.md where it takes too long to determine citations (likely a recursive regex error), a timer of 5 seconds is used by update_markdown_opinion_file.

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

corpus_writer-0.0.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

corpus_writer-0.0.5-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: corpus_writer-0.0.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.6 Darwin/23.0.0

File hashes

Hashes for corpus_writer-0.0.5.tar.gz
Algorithm Hash digest
SHA256 9b112369a20d5c52c5f5ff00ecc1af2f76145068e5022d5c2dc5e2d5a990cdcf
MD5 703467b756f36a5e4de73f774854e2dd
BLAKE2b-256 347e4e02378d42bb5d8b4a2b279b3b6e4b05cc6418ccfca9d0c6698901927274

See more details on using hashes here.

File details

Details for the file corpus_writer-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: corpus_writer-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.6 Darwin/23.0.0

File hashes

Hashes for corpus_writer-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 95c973362200f233c2f9b7263a3c1c77ea44adf2ecab5a185641bbfa166c7425
MD5 b101250b7ed6e2434864b70762d59e5f
BLAKE2b-256 47016a5cd7fd7ce18086e79b53eae613360b6ed91ad27246eb336e105062a328

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