eyecite icon indicating copy to clipboard operation
eyecite copied to clipboard

Court detection fails when parenthetical contains month/day

Open mattdahl opened this issue 1 year ago • 0 comments

There is a problem in detecting the court for a full case citation when the court/year parenthetical contains the specific date on which the opinion was issued.

So, this works:

t = "Wallace v. Cellco P'ship, No. CV 14-8052-DSF (AS), 2015 WL 13908106, at *7 (C.D. Cal. 2015)"
get_citations(t)

Returns: [FullCaseCitation('2015 WL 13908106', groups={'volume': '2015', 'reporter': 'WL', 'page': '13908106'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite='at *7', pin_cite_span_start=None, pin_cite_span_end=74, year='2015', court='cacd', plaintiff='Wallace', defendant="Cellco P'ship, No. CV 14-8052-DSF (AS", extra=None, antecedent_guess=None, resolved_case_name_short=None, resolved_case_name=None))]

But this does not:

t = "Wallace v. Cellco P'ship, No. CV 14-8052-DSF (AS), 2015 WL 13908106, at *7 (C.D. Cal. Feb. 9, 2015)"
get_citations(t)

Returns: [FullCaseCitation('2015 WL 13908106', groups={'volume': '2015', 'reporter': 'WL', 'page': '13908106'}, metadata=FullCaseCitation.Metadata(parenthetical=None, pin_cite='at *7', pin_cite_span_start=None, pin_cite_span_end=74, year='2015', court=None, plaintiff='Wallace', defendant="Cellco P'ship, No. CV 14-8052-DSF (AS", extra=None, antecedent_guess=None, resolved_case_name_short=None, resolved_case_name=None))]

PR to follow...

mattdahl avatar Apr 06 '25 15:04 mattdahl