Description
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...