freelawproject / eyecite

Find legal citations in any block of text
https://freelawproject.github.io/eyecite/
BSD 2-Clause "Simplified" License
122 stars 31 forks source link

Don't set court='scotus' for South Carolina citations #84

Open mattdahl opened 3 years ago

mattdahl commented 3 years ago

Eyecite thinks that South Carolina citations are SCOTUS citations:

from eyecite import get_citations
text = 'Lee County School Dist. No. 1 v. Gardner,  263 F.Supp. 26 (SC 1967)'
cites = get_citations(text)
cites[0].metadata.court

# prints 'scotus'

The SC in the year could be ambiguous, but the F.Supp. reporter should automatically rule SCOTUS out as a possibility for the court here.

devlux76 commented 2 years ago

You will never see SC in the year field of a Supreme Court decision (if the person who wrote it is citing things properly). The court is only included when the relevant court is unclear from the reporter cited. The Supreme court will always be cited to the U.S. or the S.Ct. reporters unless it's a slip opininon, so there should never be any ambiguity.

Bluebook R. 10.4(b) State courts.

In general, indicate the state and court of decision. However, do not include the name of the court if the court of decision is the highest court of the state. The Bluebook: A Uniform System of Citation R. 10.4(b), at 106 (Columbia L. Rev. Ass’n et al. eds., 21st ed. 2020).*

mlissner commented 2 years ago

Thanks @devlux76. This looks like a great first bug. Any interest in trying to tackle it with a test and a fix?

devlux76 commented 2 years ago

Sure! Do we know where this citation came from? A search of "263 F.Supp. 26" on Westlaw shows just 5 citing cases.

Bowen v. Massachusetts, 487 U.S. 879, 108 S. Ct. 2722, 101 L. Ed. 2d 749 (1988)

Bd. of Pub. Instruction of Palm Beach Cty., Fla. v. Cohen, 413 F.2d 1201 (5th Cir. 1969)

Fort Sumter Tours, Inc. v. Andrus, 440 F. Supp. 914 (D.S.C.), aff'd, 564 F.2d 1119 (4th Cir. 1977)

Mandel v. U.S. Dep't of Health, Ed. & Welfare, 411 F. Supp. 542 (D. Md. 1976), rev'd in part, vacated in part sub nom. Mayor & City Council of Baltimore v. Mathews, 562 F.2d 914 (4th Cir. 1977), opinion withdrawn and superseded on reh'g, 571 F.2d 1273 (4th Cir. 1978), and aff'd sub nom. Mayor & City Council of Baltimore v. Mathews, 571 F.2d 1273 (4th Cir. 1978)

Cites above are from Westlaw, but links are to CourtListener

But I don't see any of them with the above citation just doing a fulltext search. Is this coming from secondary authority of some kind?

mlissner commented 2 years ago

That'd be a question for @jcushman, but I suspect he wouldn't know anymore. At this point, it's worth just running with the example he gave. I'd make a test using it, make sure the test fails, then write the code to fix it.

mattdahl commented 2 years ago

The one I encountered it in was the Bowen case. Not sure if it got my version from Courtlistener or Lexis, but in the Courtlistener one you link you'll see it if you search 263 F. Supp. 26 (SC 1967). Thanks for working on this!!