Skip to content

Court detection fails when parenthetical contains month/day #242

Open
@mattdahl

Description

@mattdahl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions