Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(opinion_types): Add support for opinion types #885

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions juriscraper/OpinionSite.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __init__(self, *args, **kwargs):
"summaries",
"case_name_shorts",
"child_courts",
"opinion_types",
]
self._req_attrs = [
"case_dates",
Expand Down Expand Up @@ -112,6 +113,9 @@ def _get_summaries(self):
def _get_child_courts(self):
return None

def _get_opinion_types(self):
return None

def extract_from_text(self, scraped_text):
"""Pass scraped text into function and return data as a dictionary

Expand Down
15 changes: 15 additions & 0 deletions juriscraper/lib/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,18 @@
"WEST": 7,
"NEUTRAL": 8,
}


class OpinionType:
COMBINED = "010combined"
UNANIMOUS = "015unamimous"
LEAD = "020lead"
PLURALITY = "025plurality"
CONCURRENCE = "030concurrence"
CONCUR_IN_PART = "035concurrenceinpart"
DISSENT = "040dissent"
ADDENDUM = "050addendum"
REMITTUR = "060remittitur"
REHEARING = "070rehearing"
ON_THE_MERITS = "080onthemerits"
ON_MOTION_TO_STRIKE = "090onmotiontostrike"
Loading