Skip to content

Bug: Statutes at Large citations misclassified as case citations (124 Stat. 119) #20

@medelman17

Description

@medelman17

Description

Statutes at Large references (e.g., 124 Stat. 119) are being classified as type: 'case' instead of type: 'statute'. The Stat. reporter is a session law publication, not a case reporter.

Reproduction

import { extractCitations } from 'eyecite-ts'

const text = 'Pub. L. No. 111-148, 124 Stat. 119 (2010).'
const citations = extractCitations(text)

// citations[1] is { type: 'case', volume: 124, reporter: 'Stat.', page: 119 }
// Expected: type: 'statute' or a new 'sessionLaw' type

Context

This came up when parsing the ACA citation (Pub. L. No. 111-148, 124 Stat. 119 (2010)). The Pub. L. portion correctly extracts as type: 'publicLaw', but the companion Statutes at Large reference gets misclassified.

Common Statutes at Large patterns:

  • 124 Stat. 119
    • 79 Stat. 911
      • 110 Stat. 1321

Suggested Fix

Either:

  1. Add Stat. to the statute pattern matcher (simplest)
    1. Create a dedicated sessionLaw citation type that covers Statutes at Large references
    1. At minimum, exclude Stat. from the case reporter matching
      Option 2 would be the most semantically correct — Statutes at Large aren't really statutes (codified law) or cases; they're session laws published chronologically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions