eyecite-ts 0.12.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/annotate/index.d.cts +1 -1
- package/dist/annotate/index.d.mts +1 -1
- package/dist/{citation-C-GPQmt3.d.mts → citation-BaRqFZnV.d.cts} +57 -6
- package/dist/{citation-C-GPQmt3.d.mts.map → citation-BaRqFZnV.d.cts.map} +1 -1
- package/dist/{citation-ChDj3ZlY.d.cts → citation-CVm_rp15.d.mts} +57 -6
- package/dist/{citation-ChDj3ZlY.d.cts.map → citation-CVm_rp15.d.mts.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{types-C7IqHYnj.d.cts → types-BgmSZol5.d.cts} +2 -2
- package/dist/{types-C7IqHYnj.d.cts.map → types-BgmSZol5.d.cts.map} +1 -1
- package/dist/{types-lHL_1ON_.d.mts → types-DQzZmylJ.d.mts} +2 -2
- package/dist/{types-lHL_1ON_.d.mts.map → types-DQzZmylJ.d.mts.map} +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -262,7 +262,7 @@ interface StatutesAtLargeComponentSpans {
|
|
|
262
262
|
/**
|
|
263
263
|
* Citation type discriminator for type-safe pattern matching.
|
|
264
264
|
*/
|
|
265
|
-
type CitationType = "case" | "statute" | "journal" | "neutral" | "publicLaw" | "federalRegister" | "statutesAtLarge" | "constitutional" | "id" | "supra" | "shortFormCase";
|
|
265
|
+
type CitationType = "case" | "docket" | "statute" | "journal" | "neutral" | "publicLaw" | "federalRegister" | "statutesAtLarge" | "constitutional" | "id" | "supra" | "shortFormCase";
|
|
266
266
|
/**
|
|
267
267
|
* Warning generated during citation parsing.
|
|
268
268
|
*/
|
|
@@ -667,6 +667,57 @@ interface StatutesAtLargeCitation extends CitationBase {
|
|
|
667
667
|
spans?: StatutesAtLargeComponentSpans;
|
|
668
668
|
}
|
|
669
669
|
/**
|
|
670
|
+
* Docket-number-only case citation (no traditional reporter assignment).
|
|
671
|
+
*
|
|
672
|
+
* Used for very recent decisions identified by docket/slip number, common for:
|
|
673
|
+
* - NY Court of Appeals slip opinions: `IKB Int'l v. Wells Fargo, No. 51 (N.Y. 2023)`
|
|
674
|
+
* - Federal district court decisions before reporter assignment: `Smith v. Jones, No. 12-3456 (S.D.N.Y. 2024)`
|
|
675
|
+
* - Some unreported state-court orders
|
|
676
|
+
*
|
|
677
|
+
* Disambiguation: a bare `No. 51 (N.Y. 2023)` is too generic to extract on its
|
|
678
|
+
* own — extraction only emits a DocketCitation when a preceding case-name
|
|
679
|
+
* anchor (e.g. `Party v. Party,`) is present.
|
|
680
|
+
*
|
|
681
|
+
* @example "IKB Int'l, S.A. v. Wells Fargo Bank, N.A., No. 51 (N.Y. 2023)"
|
|
682
|
+
*/
|
|
683
|
+
interface DocketCitation extends CitationBase {
|
|
684
|
+
type: "docket";
|
|
685
|
+
/** Docket / slip-opinion number (string to preserve hyphens, e.g. "12-3456") */
|
|
686
|
+
docketNumber: string;
|
|
687
|
+
/** Court abbreviation extracted from the parenthetical (e.g. "N.Y.", "S.D.N.Y.") */
|
|
688
|
+
court?: string;
|
|
689
|
+
/** Normalized court string: spaces collapsed, trailing period ensured */
|
|
690
|
+
normalizedCourt?: string;
|
|
691
|
+
/** Year of decision */
|
|
692
|
+
year?: number;
|
|
693
|
+
/** Date information when the parenthetical includes month/day */
|
|
694
|
+
date?: {
|
|
695
|
+
iso: string;
|
|
696
|
+
parsed?: {
|
|
697
|
+
year: number;
|
|
698
|
+
month?: number;
|
|
699
|
+
day?: number;
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
/** Extracted case name (party names around "v.") */
|
|
703
|
+
caseName?: string;
|
|
704
|
+
/** Plaintiff party name */
|
|
705
|
+
plaintiff?: string;
|
|
706
|
+
/** Defendant party name */
|
|
707
|
+
defendant?: string;
|
|
708
|
+
/** Normalized plaintiff name for matching (lowercase, stripped of noise) */
|
|
709
|
+
plaintiffNormalized?: string;
|
|
710
|
+
/** Normalized defendant name for matching (lowercase, stripped of noise) */
|
|
711
|
+
defendantNormalized?: string;
|
|
712
|
+
/** Procedural prefix for non-adversarial cases (e.g. "In re") */
|
|
713
|
+
proceduralPrefix?: string;
|
|
714
|
+
/**
|
|
715
|
+
* Full span covering citation from case name through closing parenthetical.
|
|
716
|
+
* @example For "Smith v. Jones, No. 51 (N.Y. 2023)", fullSpan covers the entire text.
|
|
717
|
+
*/
|
|
718
|
+
fullSpan?: Span;
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
670
721
|
* Constitutional citation (U.S. or state constitution).
|
|
671
722
|
*
|
|
672
723
|
* @example "U.S. Const. art. III, § 2"
|
|
@@ -753,16 +804,16 @@ interface ShortFormCaseCitation extends CitationBase {
|
|
|
753
804
|
* // ...
|
|
754
805
|
* }
|
|
755
806
|
*/
|
|
756
|
-
type Citation = FullCaseCitation | StatuteCitation | JournalCitation | NeutralCitation | PublicLawCitation | FederalRegisterCitation | StatutesAtLargeCitation | ConstitutionalCitation | IdCitation | SupraCitation | ShortFormCaseCitation;
|
|
807
|
+
type Citation = FullCaseCitation | DocketCitation | StatuteCitation | JournalCitation | NeutralCitation | PublicLawCitation | FederalRegisterCitation | StatutesAtLargeCitation | ConstitutionalCitation | IdCitation | SupraCitation | ShortFormCaseCitation;
|
|
757
808
|
/**
|
|
758
809
|
* Citation type discriminators grouped by category.
|
|
759
810
|
*/
|
|
760
|
-
type FullCitationType = "case" | "statute" | "journal" | "neutral" | "publicLaw" | "federalRegister" | "statutesAtLarge" | "constitutional";
|
|
811
|
+
type FullCitationType = "case" | "docket" | "statute" | "journal" | "neutral" | "publicLaw" | "federalRegister" | "statutesAtLarge" | "constitutional";
|
|
761
812
|
type ShortFormCitationType = "id" | "supra" | "shortFormCase";
|
|
762
813
|
/**
|
|
763
814
|
* Union of all full citation types (not short-form references).
|
|
764
815
|
*/
|
|
765
|
-
type FullCitation = FullCaseCitation | StatuteCitation | JournalCitation | NeutralCitation | PublicLawCitation | FederalRegisterCitation | StatutesAtLargeCitation | ConstitutionalCitation;
|
|
816
|
+
type FullCitation = FullCaseCitation | DocketCitation | StatuteCitation | JournalCitation | NeutralCitation | PublicLawCitation | FederalRegisterCitation | StatutesAtLargeCitation | ConstitutionalCitation;
|
|
766
817
|
/**
|
|
767
818
|
* Union of all short-form citation types (Id., supra, short-form case).
|
|
768
819
|
*/
|
|
@@ -785,5 +836,5 @@ type CitationOfType<T extends CitationType> = Extract<Citation, {
|
|
|
785
836
|
*/
|
|
786
837
|
type ExtractorMap = { [K in FullCitationType]: CitationOfType<K> };
|
|
787
838
|
//#endregion
|
|
788
|
-
export {
|
|
789
|
-
//# sourceMappingURL=citation-
|
|
839
|
+
export { ConstitutionalComponentSpans as A, PinciteInfo as B, ShortFormCitationType as C, SupraCitation as D, SubsequentHistoryEntry as E, StatuteComponentSpans as F, StatutesAtLargeComponentSpans as I, Span as L, JournalComponentSpans as M, NeutralComponentSpans as N, Warning as O, PublicLawComponentSpans as P, TransformationMap as R, ShortFormCitation as S, StatutesAtLargeCitation as T, parsePincite as V, NeutralCitation as _, CitationType as a, PublicLawCitation as b, DocketCitation as c, FullCaseCitation as d, FullCitation as f, JournalCitation as g, IdCitation as h, CitationSignal as i, FederalRegisterComponentSpans as j, CaseComponentSpans as k, ExtractorMap as l, HistorySignal as m, CitationBase as n, ConstitutionalCitation as o, FullCitationType as p, CitationOfType as r, CourtInference as s, Citation as t, FederalRegisterCitation as u, Parenthetical as v, StatuteCitation as w, ShortFormCaseCitation as x, ParentheticalType as y, spanFromGroupIndex as z };
|
|
840
|
+
//# sourceMappingURL=citation-BaRqFZnV.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation-
|
|
1
|
+
{"version":3,"file":"citation-BaRqFZnV.d.cts","names":[],"sources":["../src/extract/pincite.ts","../src/clean/segmentMap.ts","../src/types/span.ts","../src/types/componentSpans.ts","../src/types/citation.ts"],"mappings":";;AAGA;;UAAiB,WAAA;EAAA;EAEf,IAAA;;EAEA,OAAA;;;EAGA,QAAA;;EAEA,WAAA;EAQA;EANA,OAAA;EA2Bc;;;EAvBd,QAAA;;EAEA,GAAA;AAAA;ACZF;;;;;;;;;AASA;;;;AATA,iBDiCgB,YAAA,CAAa,GAAA,WAAc,WAAA;;;;AAtC3C;;;;;;UCKiB,OAAA;;EAEf,QAAA;;EAEA,OAAA;;EAEA,GAAA;AAAA;AAAA,cAGW,UAAA;EAAA,SACF,QAAA,WAAmB,OAAA;EAE5B,WAAA,CAAY,QAAA,EAAU,OAAA;EDqBmB;;;EAAA,OCdlC,QAAA,CAAS,MAAA,WAAiB,UAAA;EAnBnC;;;;;EAAA,OA4BS,OAAA,CAAQ,GAAA,EAAK,GAAA,mBAAsB,UAAA;;;;AAnB5C;EAqDE,MAAA,CAAO,QAAA;AAAA;;;;ADnET;;;;;;;;;;;;;AAsCA;;;UExBiB,IAAA;EFwB0B;EEtBzC,UAAA;;EAGA,QAAA;EDdF;ECiBE,aAAA;;EAGA,WAAA;AAAA;;;;;ADXF;;UCoBiB,iBAAA;;EAEf,eAAA,EAAiB,GAAA;;EAGjB,eAAA,EAAiB,GAAA;;EAGjB,uBAAA,GAHiB,UAAA;AAAA;;;;;;;;;;;;;;iBAmBH,kBAAA,CACd,eAAA,UACA,OAAA,oBACA,GAAA,EAAK,iBAAA,GACJ,IAAA;;;AF9DH;;;;;;;AAAA,UGMiB,kBAAA;EACf,QAAA,GAAW,IAAA;EACX,SAAA,GAAY,IAAA;EACZ,SAAA,GAAY,I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AAA,GACA,eAAA,GACA,iBAAA,GACA,uBAAA,GACA,uBAAA,GACA,sBAAA,GACA,UAAA,GACA,aAAA,GACA,qBAAA;;;AArKJ;KA0KY,gBAAA;AAAA,KAUA,qBAAA;;;;KAKA,YAAA,GACR,gBAAA,GACA,cAAA,GACA,eAAA,GACA,eAAA,GACA,eAAA,GACA,iBAAA,GACA,uBAAA,GACA,uBAAA,GACA,sBAAA;;;;KAKQ,iBAAA,GAAoB,UAAA,GAAa,aAAA,GAAgB,qBAAA;;;AA5K7D;;;;;;;KAuLY,cAAA,WAAyB,YAAA,IAAgB,OAAA,CAAQ,QAAA;EAAY,IAAA,EAAM,CAAA;AAAA;;;;;KAMnE,YAAA,WACJ,gBAAA,GAAmB,cAAA,CAAe,CAAA"}
|
|
@@ -262,7 +262,7 @@ interface StatutesAtLargeComponentSpans {
|
|
|
262
262
|
/**
|
|
263
263
|
* Citation type discriminator for type-safe pattern matching.
|
|
264
264
|
*/
|
|
265
|
-
type CitationType = "case" | "statute" | "journal" | "neutral" | "publicLaw" | "federalRegister" | "statutesAtLarge" | "constitutional" | "id" | "supra" | "shortFormCase";
|
|
265
|
+
type CitationType = "case" | "docket" | "statute" | "journal" | "neutral" | "publicLaw" | "federalRegister" | "statutesAtLarge" | "constitutional" | "id" | "supra" | "shortFormCase";
|
|
266
266
|
/**
|
|
267
267
|
* Warning generated during citation parsing.
|
|
268
268
|
*/
|
|
@@ -667,6 +667,57 @@ interface StatutesAtLargeCitation extends CitationBase {
|
|
|
667
667
|
spans?: StatutesAtLargeComponentSpans;
|
|
668
668
|
}
|
|
669
669
|
/**
|
|
670
|
+
* Docket-number-only case citation (no traditional reporter assignment).
|
|
671
|
+
*
|
|
672
|
+
* Used for very recent decisions identified by docket/slip number, common for:
|
|
673
|
+
* - NY Court of Appeals slip opinions: `IKB Int'l v. Wells Fargo, No. 51 (N.Y. 2023)`
|
|
674
|
+
* - Federal district court decisions before reporter assignment: `Smith v. Jones, No. 12-3456 (S.D.N.Y. 2024)`
|
|
675
|
+
* - Some unreported state-court orders
|
|
676
|
+
*
|
|
677
|
+
* Disambiguation: a bare `No. 51 (N.Y. 2023)` is too generic to extract on its
|
|
678
|
+
* own — extraction only emits a DocketCitation when a preceding case-name
|
|
679
|
+
* anchor (e.g. `Party v. Party,`) is present.
|
|
680
|
+
*
|
|
681
|
+
* @example "IKB Int'l, S.A. v. Wells Fargo Bank, N.A., No. 51 (N.Y. 2023)"
|
|
682
|
+
*/
|
|
683
|
+
interface DocketCitation extends CitationBase {
|
|
684
|
+
type: "docket";
|
|
685
|
+
/** Docket / slip-opinion number (string to preserve hyphens, e.g. "12-3456") */
|
|
686
|
+
docketNumber: string;
|
|
687
|
+
/** Court abbreviation extracted from the parenthetical (e.g. "N.Y.", "S.D.N.Y.") */
|
|
688
|
+
court?: string;
|
|
689
|
+
/** Normalized court string: spaces collapsed, trailing period ensured */
|
|
690
|
+
normalizedCourt?: string;
|
|
691
|
+
/** Year of decision */
|
|
692
|
+
year?: number;
|
|
693
|
+
/** Date information when the parenthetical includes month/day */
|
|
694
|
+
date?: {
|
|
695
|
+
iso: string;
|
|
696
|
+
parsed?: {
|
|
697
|
+
year: number;
|
|
698
|
+
month?: number;
|
|
699
|
+
day?: number;
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
/** Extracted case name (party names around "v.") */
|
|
703
|
+
caseName?: string;
|
|
704
|
+
/** Plaintiff party name */
|
|
705
|
+
plaintiff?: string;
|
|
706
|
+
/** Defendant party name */
|
|
707
|
+
defendant?: string;
|
|
708
|
+
/** Normalized plaintiff name for matching (lowercase, stripped of noise) */
|
|
709
|
+
plaintiffNormalized?: string;
|
|
710
|
+
/** Normalized defendant name for matching (lowercase, stripped of noise) */
|
|
711
|
+
defendantNormalized?: string;
|
|
712
|
+
/** Procedural prefix for non-adversarial cases (e.g. "In re") */
|
|
713
|
+
proceduralPrefix?: string;
|
|
714
|
+
/**
|
|
715
|
+
* Full span covering citation from case name through closing parenthetical.
|
|
716
|
+
* @example For "Smith v. Jones, No. 51 (N.Y. 2023)", fullSpan covers the entire text.
|
|
717
|
+
*/
|
|
718
|
+
fullSpan?: Span;
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
670
721
|
* Constitutional citation (U.S. or state constitution).
|
|
671
722
|
*
|
|
672
723
|
* @example "U.S. Const. art. III, § 2"
|
|
@@ -753,16 +804,16 @@ interface ShortFormCaseCitation extends CitationBase {
|
|
|
753
804
|
* // ...
|
|
754
805
|
* }
|
|
755
806
|
*/
|
|
756
|
-
type Citation = FullCaseCitation | StatuteCitation | JournalCitation | NeutralCitation | PublicLawCitation | FederalRegisterCitation | StatutesAtLargeCitation | ConstitutionalCitation | IdCitation | SupraCitation | ShortFormCaseCitation;
|
|
807
|
+
type Citation = FullCaseCitation | DocketCitation | StatuteCitation | JournalCitation | NeutralCitation | PublicLawCitation | FederalRegisterCitation | StatutesAtLargeCitation | ConstitutionalCitation | IdCitation | SupraCitation | ShortFormCaseCitation;
|
|
757
808
|
/**
|
|
758
809
|
* Citation type discriminators grouped by category.
|
|
759
810
|
*/
|
|
760
|
-
type FullCitationType = "case" | "statute" | "journal" | "neutral" | "publicLaw" | "federalRegister" | "statutesAtLarge" | "constitutional";
|
|
811
|
+
type FullCitationType = "case" | "docket" | "statute" | "journal" | "neutral" | "publicLaw" | "federalRegister" | "statutesAtLarge" | "constitutional";
|
|
761
812
|
type ShortFormCitationType = "id" | "supra" | "shortFormCase";
|
|
762
813
|
/**
|
|
763
814
|
* Union of all full citation types (not short-form references).
|
|
764
815
|
*/
|
|
765
|
-
type FullCitation = FullCaseCitation | StatuteCitation | JournalCitation | NeutralCitation | PublicLawCitation | FederalRegisterCitation | StatutesAtLargeCitation | ConstitutionalCitation;
|
|
816
|
+
type FullCitation = FullCaseCitation | DocketCitation | StatuteCitation | JournalCitation | NeutralCitation | PublicLawCitation | FederalRegisterCitation | StatutesAtLargeCitation | ConstitutionalCitation;
|
|
766
817
|
/**
|
|
767
818
|
* Union of all short-form citation types (Id., supra, short-form case).
|
|
768
819
|
*/
|
|
@@ -785,5 +836,5 @@ type CitationOfType<T extends CitationType> = Extract<Citation, {
|
|
|
785
836
|
*/
|
|
786
837
|
type ExtractorMap = { [K in FullCitationType]: CitationOfType<K> };
|
|
787
838
|
//#endregion
|
|
788
|
-
export {
|
|
789
|
-
//# sourceMappingURL=citation-
|
|
839
|
+
export { ConstitutionalComponentSpans as A, PinciteInfo as B, ShortFormCitationType as C, SupraCitation as D, SubsequentHistoryEntry as E, StatuteComponentSpans as F, StatutesAtLargeComponentSpans as I, Span as L, JournalComponentSpans as M, NeutralComponentSpans as N, Warning as O, PublicLawComponentSpans as P, TransformationMap as R, ShortFormCitation as S, StatutesAtLargeCitation as T, parsePincite as V, NeutralCitation as _, CitationType as a, PublicLawCitation as b, DocketCitation as c, FullCaseCitation as d, FullCitation as f, JournalCitation as g, IdCitation as h, CitationSignal as i, FederalRegisterComponentSpans as j, CaseComponentSpans as k, ExtractorMap as l, HistorySignal as m, CitationBase as n, ConstitutionalCitation as o, FullCitationType as p, CitationOfType as r, CourtInference as s, Citation as t, FederalRegisterCitation as u, Parenthetical as v, StatuteCitation as w, ShortFormCaseCitation as x, ParentheticalType as y, spanFromGroupIndex as z };
|
|
840
|
+
//# sourceMappingURL=citation-CVm_rp15.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation-
|
|
1
|
+
{"version":3,"file":"citation-CVm_rp15.d.mts","names":[],"sources":["../src/extract/pincite.ts","../src/clean/segmentMap.ts","../src/types/span.ts","../src/types/componentSpans.ts","../src/types/citation.ts"],"mappings":";;AAGA;;UAAiB,WAAA;EAAA;EAEf,IAAA;;EAEA,OAAA;;;EAGA,QAAA;;EAEA,WAAA;EAQA;EANA,OAAA;EA2Bc;;;EAvBd,QAAA;;EAEA,GAAA;AAAA;ACZF;;;;;;;;;AASA;;;;AATA,iBDiCgB,YAAA,CAAa,GAAA,WAAc,WAAA;;;;AAtC3C;;;;;;UC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