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

Improve support for New York state reporters #216

Open
grossir opened this issue Feb 17, 2025 · 4 comments
Open

Improve support for New York state reporters #216

grossir opened this issue Feb 17, 2025 · 4 comments
Assignees

Comments

@grossir
Copy link
Contributor

grossir commented Feb 17, 2025

Some references can be found here:
https://www.nycourts.gov/reporter/new_styman.htm

It seems we are missing parsing metadata

  • year
  • court
  • some variations of other reporters as written by NY; ex: "F Supp", "F3d", "Wis 2d"; sometimes without punctuation or spaces
  • plaintiff / defendant cleaning out of parenthesis

Currently:

from eyecite import get_citations

examples = [

# 1.2 b citations in running text
"Rogers v Rogers (63 NY2d 582 [1984], revg 98 AD2d 999 [2d Dept 1983])"
# 1.2 c Citations within Parentheses
"not met here (see Solomon v State of New York, 146 AD2d 439, 440 [1st Dept 1989], quoting Addington v Texas, 441 US 418, 427 [1979]).",
# 1.2 (d) Citations in Footnotes
"* The issue was last visited in 1989. (Solomon v State of New York, 146 AD2d 439, 440 [1st Dept 1989].) [Note: parenthetical]",
"* Solomon v State of New York, 146 AD2d 439, 440 (1st Dept 1989).",
#  1.2 (e) Citational Footnote Style
"1. 63 NY2d 582 (1984), revg 98 AD2d 999 (2d Dept 1983).",
"See George C. Miller Brick Co., Inc. v Stark Ceramics, Inc., 9 Misc 3d 151 (Sup Ct, Monroe County 2005, Fisher, J.).",
# (8) Citation to Slip Opinions
"(People v Daly, — Misc 3d —, 2011 NY Slip Op 21371 [Crim Ct, NY County 2011])",

# 2.3 (a) Supreme Court of the United States
"(Ohralick v Ohio State Bar Assn., 436 US 447 [1978])",
# 2.3 (b) Other Federal Courts
"(United States v Seltzer, 227 F3d 36 [2d Cir 2000])",
"(Mavrovich v Vanderpool, 427 F Supp 2d 1084 [D Kan 2006])",
"(United States v Gridley, 725 F Supp 398 [ND Ind 1989])",
"(Newbold v Arvidson, 105 Idaho 663, 672 P2d 231 [1983])",

# (4) Public Domain (Vendor or Medium Neutral) Citation
"(Alberte v Anew Health Care Servs., 232 Wis 2d 587, 595, 605 NW2d 515, 519, 2000 WI 7, ¶ 12 [2000])"
]

for example in examples:
      print(repr(example), *get_citations(example), sep="\n", end="\n===============\n")

Result:

'Rogers v Rogers (63 NY2d 582 [1984], revg 98 AD2d 999 [2d Dept 1983])not met here (see Solomon v State of New York, 146 AD2d 439, 440 [1st Dept 1989], quoting Addington v Texas, 441 US 418, 427 [1979]).'
FullCaseCitation('63 NY2d 582', groups={'volume': '63', 'reporter': 'NY2d', 'page': '582'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite=None, year=None, court=None, plaintiff='Rogers', defendant='Rogers (', extra=None, resolved_case_name_short=None, resolved_case_name=None))
FullCaseCitation('98 AD2d 999', groups={'volume': '98', 'reporter': 'AD2d', 'page': '999'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite=None, year=None, court=None, plaintiff='Rogers', defendant='Rogers (', extra=None, resolved_case_name_short=None, resolved_case_name=None))
FullCaseCitation('146 AD2d 439', groups={'volume': '146', 'reporter': 'AD2d', 'page': '439'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite='440', year=None, court=None, plaintiff='Solomon', defendant='State of New York', extra=None, resolved_case_name_short=None, resolved_case_name=None))
FullCaseCitation('441 US 418', groups={'volume': '441', 'reporter': 'US', 'page': '418'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite='427', year=None, court='scotus', plaintiff='Addington', defendant='Texas', extra=None, resolved_case_name_short=None, resolved_case_name=None))
===============
'* The issue was last visited in 1989. (Solomon v State of New York, 146 AD2d 439, 440 [1st Dept 1989].) [Note: parenthetical]'
FullCaseCitation('146 AD2d 439', groups={'volume': '146', 'reporter': 'AD2d', 'page': '439'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite='440', year=None, court=None, plaintiff='(Solomon', defendant='State of New York', extra=None, resolved_case_name_short=None, resolved_case_name=None))
===============
'* Solomon v State of New York, 146 AD2d 439, 440 (1st Dept 1989).'
FullCaseCitation('146 AD2d 439', groups={'volume': '146', 'reporter': 'AD2d', 'page': '439'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite='440', year='1989', court=None, plaintiff='Solomon', defendant='State of New York', extra=None, resolved_case_name_short=None, resolved_case_name=None))
===============
'1. 63 NY2d 582 (1984), revg 98 AD2d 999 (2d Dept 1983).'
FullCaseCitation('63 NY2d 582', groups={'volume': '63', 'reporter': 'NY2d', 'page': '582'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite=None, year='1984', court=None, plaintiff=None, defendant=None, extra=None, resolved_case_name_short=None, resolved_case_name=None))
FullCaseCitation('98 AD2d 999', groups={'volume': '98', 'reporter': 'AD2d', 'page': '999'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite=None, year='1983', court=None, plaintiff=None, defendant=None, extra=None, resolved_case_name_short=None, resolved_case_name=None))
===============
'See George C. Miller Brick Co., Inc. v Stark Ceramics, Inc., 9 Misc 3d 151 (Sup Ct, Monroe County 2005, Fisher, J.).'
FullCaseCitation('9 Misc 3d 151', groups={'volume': '9', 'reporter': 'Misc 3d', 'page': '151'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite=None, year=None, court=None, plaintiff='Inc.', defendant='Stark Ceramics, Inc.', extra=None, resolved_case_name_short=None, resolved_case_name=None))
===============
'(People v Daly, — Misc 3d —, 2011 NY Slip Op 21371 [Crim Ct, NY County 2011])'
FullCaseCitation('2011 NY Slip Op 21371', groups={'volume': '2011', 'reporter': 'NY Slip Op', 'page': '21371'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite=None, year=None, court=None, plaintiff='(People', defendant='Daly, — Misc 3d —', extra=None, resolved_case_name_short=None, resolved_case_name=None))
===============
'(Ohralick v Ohio State Bar Assn., 436 US 447 [1978])'
FullCaseCitation('436 US 447', groups={'volume': '436', 'reporter': 'US', 'page': '447'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite=None, year=None, court='scotus', plaintiff='(Ohralick', defendant='Ohio State Bar Assn.', extra=None, resolved_case_name_short=None, resolved_case_name=None))
===============
'(United States v Seltzer, 227 F3d 36 [2d Cir 2000])'
===============
'(Mavrovich v Vanderpool, 427 F Supp 2d 1084 [D Kan 2006])'
===============
'(United States v Gridley, 725 F Supp 398 [ND Ind 1989])'
===============
'(Newbold v Arvidson, 105 Idaho 663, 672 P2d 231 [1983])'
FullCaseCitation('105 Idaho 663', groups={'volume': '105', 'reporter': 'Idaho', 'page': '663'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite=None, year=None, court=None, plaintiff='(Newbold', defendant='Arvidson', extra=None, resolved_case_name_short=None, resolved_case_name=None))
FullCaseCitation('672 P2d 231', groups={'volume': '672', 'reporter': 'P2d', 'page': '231'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite=None, year=None, court=None, plaintiff='(Newbold', defendant='Arvidson', extra=None, resolved_case_name_short=None, resolved_case_name=None))
===============
'(Alberte v Anew Health Care Servs., 232 Wis 2d 587, 595, 605 NW2d 515, 519, 2000 WI 7, ¶ 12 [2000])'
FullCaseCitation('605 NW2d 515', groups={'volume': '605', 'reporter': 'NW2d', 'page': '515'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite='519', year=None, court=None, plaintiff='(Alberte', defendant='Anew Health Care Servs., 232 Wis 2d 587, 595', extra=None, resolved_case_name_short=None, resolved_case_name=None))
FullCaseCitation('2000 WI 7', groups={'volume': '2000', 'reporter': 'WI', 'page': '7'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite='¶ 12', year=None, court=None, plaintiff='(Alberte', defendant='Anew Health Care Servs., 232 Wis 2d 587, 595, 605 NW2d 515, 519', extra=None, resolved_case_name_short=None, resolved_case_name=None))
===============

Abbreviations

Image

@flooie
Copy link
Contributor

flooie commented Feb 18, 2025

I can add a few of the NY style variations in reporters-db to ensure we capture more of the citations

@grossir
Copy link
Contributor Author

grossir commented Feb 18, 2025

Some changes implemented here
freelawproject/reporters-db#205

More changes here:
#219

@flooie flooie moved this to Buffer Zone in Case Law Sprint Feb 18, 2025
@grossir
Copy link
Contributor Author

grossir commented Feb 20, 2025

More that don't get recognized as citations, due to spaces

from

  • 88 SCt 1868
  • 20 LEd2d 889 [1968]

From

  • 2020 NY Misc LEXIS 2810

From

  • 2020 US Dist LEXIS 217878
  • NY App Div LEXIS 243

From, thought it was an OCR issue, but it's not

  • 226 AD 73 (I st Dep 't 1929)

@grossir
Copy link
Contributor Author

grossir commented Feb 21, 2025

A more up to date style manual https://nycourts.gov/reporter/files/2022-SM.pdf

From page 179, seems to have a full list of variations

Image

Sent by @mlissner on Slack

@flooie flooie moved this from Buffer Zone to Backlog Feb 24 to March 7 in Case Law Sprint Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog Feb 24 to March 7
Development

No branches or pull requests

2 participants