eyecite-ts 0.15.1 → 0.15.3

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.
@@ -1,4 +1,4 @@
1
- import { t as Citation } from "../citation-B7SBPpEl.cjs";
1
+ import { t as Citation } from "../citation-BzekGHct.cjs";
2
2
 
3
3
  //#region src/annotate/types.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Citation } from "../citation-BuBDvjag.mjs";
1
+ import { t as Citation } from "../citation-Cd8-o32w.mjs";
2
2
 
3
3
  //#region src/annotate/types.d.ts
4
4
  /**
@@ -55,6 +55,37 @@ interface PinciteInfo {
55
55
  */
56
56
  declare function parsePincite(raw: string): PinciteInfo | null;
57
57
  //#endregion
58
+ //#region src/extract/dates.d.ts
59
+ /**
60
+ * Date Parsing Utilities for Legal Citations
61
+ *
62
+ * Parses dates from parentheticals in legal citations. Supports three formats:
63
+ * 1. Abbreviated month: "Jan. 15, 2020"
64
+ * 2. Full month: "January 15, 2020"
65
+ * 3. Numeric US: "1/15/2020"
66
+ * 4. Year-only: "2020"
67
+ *
68
+ * @module extract/dates
69
+ */
70
+ /**
71
+ * Structured date components.
72
+ * Month and day are optional to support year-only dates.
73
+ */
74
+ interface ParsedDate {
75
+ year: number;
76
+ month?: number;
77
+ day?: number;
78
+ }
79
+ /**
80
+ * Date in both ISO string and structured format.
81
+ */
82
+ interface StructuredDate {
83
+ /** ISO 8601 format: YYYY-MM-DD, YYYY-MM, or YYYY */
84
+ iso: string;
85
+ /** Structured date components */
86
+ parsed: ParsedDate;
87
+ }
88
+ //#endregion
58
89
  //#region src/clean/segmentMap.d.ts
59
90
  /**
60
91
  * Segment-based position mapping.
@@ -617,6 +648,17 @@ interface StatuteCitation extends CitationBase {
617
648
  pincite?: string;
618
649
  /** True when "et seq." follows the citation */
619
650
  hasEtSeq?: boolean;
651
+ /**
652
+ * Year of the code edition cited, captured from a trailing parenthetical
653
+ * (`HRS § 91-14(a) (1985)`, `42 U.S.C. § 1983 (1976)`,
654
+ * `28 U.S.C. § 1331 (West 2018)`). #285
655
+ */
656
+ year?: number;
657
+ /**
658
+ * Publisher of an annotated code edition (`West`, `Lexis`), captured from
659
+ * `(Publisher YYYY)` parentheticals alongside `year`. #285
660
+ */
661
+ publisher?: string;
620
662
  /** Precise text positions for each parsed component of this citation. */
621
663
  spans?: StatuteComponentSpans;
622
664
  }
@@ -661,8 +703,19 @@ interface NeutralCitation extends CitationBase {
661
703
  type: "neutral";
662
704
  /** Year of decision */
663
705
  year: number;
664
- /** Court identifier (e.g., "WL", "U.S. LEXIS") */
665
- court: string;
706
+ /**
707
+ * Court identifier extracted from a real jurisdictional neutral cite
708
+ * (`Ohio`, `IL`, `NM`) or recovered from a trailing `(court date)`
709
+ * parenthetical on a database cite (`N.D. Cal.`, `Tex. App.`). Database
710
+ * identifiers (`WL`, `LEXIS`) live in `database`, NOT here. #294
711
+ */
712
+ court?: string;
713
+ /**
714
+ * Database identifier for vendor-database cites that have no inherent
715
+ * court value: `WL` (Westlaw), `LEXIS` / `U.S. LEXIS` / `Fed. App. LEXIS`,
716
+ * `BL` (Bloomberg Law). Set instead of `court` for these forms. #294
717
+ */
718
+ database?: string;
666
719
  /** Document number */
667
720
  documentNumber: string;
668
721
  /**
@@ -675,6 +728,11 @@ interface NeutralCitation extends CitationBase {
675
728
  pincite?: number;
676
729
  /** Structured pincite information (page, range, footnote, star-pagination). */
677
730
  pinciteInfo?: PinciteInfo;
731
+ /**
732
+ * Decision date recovered from a trailing `(court date)` parenthetical on
733
+ * a database cite, e.g. `2014 WL 1924465 (Tex. App. May 8, 2014)`. #294
734
+ */
735
+ date?: StructuredDate;
678
736
  /** Precise text positions for each parsed component of this citation. */
679
737
  spans?: NeutralComponentSpans;
680
738
  }
@@ -812,6 +870,15 @@ interface IdCitation extends CitationBase {
812
870
  pincite?: number;
813
871
  /** Structured pincite information (page, range, footnote, star-pagination). */
814
872
  pinciteInfo?: PinciteInfo;
873
+ /**
874
+ * Trailing parenthetical content (text between the parens, excluding the
875
+ * parens themselves) captured from `Id. at N (...)` forms. Common values
876
+ * include drop-citation markers (`citation omitted`, `internal quotation
877
+ * marks omitted`), short-form case identifiers (`Marsh`, `Serrano III`),
878
+ * and explanatory holdings (`holding that ...`). Unclassified — consumers
879
+ * can post-classify if needed. #303
880
+ */
881
+ parenthetical?: string;
815
882
  /** Component-level spans (currently just `pincite`; extend when needed). */
816
883
  spans?: IdComponentSpans;
817
884
  }
@@ -829,6 +896,12 @@ interface SupraCitation extends CitationBase {
829
896
  pincite?: number;
830
897
  /** Structured pincite information (page, range, footnote, star-pagination). */
831
898
  pinciteInfo?: PinciteInfo;
899
+ /**
900
+ * Trailing parenthetical content (text between the parens, excluding the
901
+ * parens themselves). See `IdCitation.parenthetical` for common shapes
902
+ * and rationale. #303
903
+ */
904
+ parenthetical?: string;
832
905
  /** Component-level spans (currently just `pincite`; extend when needed). */
833
906
  spans?: SupraComponentSpans;
834
907
  }
@@ -859,6 +932,12 @@ interface ShortFormCaseCitation extends CitationBase {
859
932
  * collapsed). Mirrors `defendantNormalized` / `plaintiffNormalized` on
860
933
  * `FullCaseCitation`. */
861
934
  partyNameNormalized?: string;
935
+ /**
936
+ * Trailing parenthetical content (text between the parens, excluding the
937
+ * parens themselves). See `IdCitation.parenthetical` for common shapes
938
+ * and rationale. #303
939
+ */
940
+ parenthetical?: string;
862
941
  }
863
942
  /**
864
943
  * Union type of all citation types.
@@ -910,4 +989,4 @@ type CitationOfType<T extends CitationType> = Extract<Citation, {
910
989
  type ExtractorMap = { [K in FullCitationType]: CitationOfType<K> };
911
990
  //#endregion
912
991
  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 };
913
- //# sourceMappingURL=citation-B7SBPpEl.d.cts.map
992
+ //# sourceMappingURL=citation-BzekGHct.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"citation-BzekGHct.d.cts","names":[],"sources":["../src/extract/pincite.ts","../src/extract/dates.ts","../src/clean/segmentMap.ts","../src/types/span.ts","../src/types/componentSpans.ts","../src/types/citation.ts"],"mappings":";;AAUA;;;;;;;;;UAAiB,WAAA;;EAEf,IAAA;;EAEA,OAAA;;;EAGA,QAAA;EAqDF;EAnDE,WAAA;;EAEA,OAAA;EAiDyC;;;EA7CzC,QAAA;ECTF;EDWE,SAAA;;EAEA,YAAA;;;;;;ACJF;;EDYE,kBAAA,GAAqB,WAAA;ECRb;EDUR,GAAA;AAAA;;;;;;;AE/BF;;;;;;;iBF8DgB,YAAA,CAAa,GAAA,WAAc,WAAA;;;;AA5D3C;;;;;;;;;;;;;;UCMiB,UAAA;EACf,IAAA;EACA,KAAA;EACA,GAAA;AAAA;;;;UAMe,cAAA;;EAEf,GAAA;EAXF;EAaE,MAAA,EAAQ,UAAA;AAAA;;;;ADnBV;;;;;;UEFiB,OAAA;;EAEf,QAAA;;EAEA,OAAA;;EAEA,GAAA;AAAA;AAAA,cAGW,UAAA;EAAA,SACF,QAAA,WAAmB,OAAA;EAE5B,WAAA,CAAY,QAAA,EAAU,OAAA;EFkDxB;;;EAAA,OE3CS,QAAA,CAAS,MAAA,WAAiB,UAAA;EF2CQ;;;;ACtD3C;EDsD2C,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GAAoB,UAAA,GAAa,aAAA,GAAgB,qBAAA;;;;;;;;;;KAWjD,cAAA,WAAyB,YAAA,IAAgB,OAAA,CAAQ,QAAA;EAAY,IAAA,EAAM,CAAA;AAAA;;;AAvG/E;;KA6GY,YAAA,WACJ,gBAAA,GAAmB,cAAA,CAAe,CAAA"}
@@ -55,6 +55,37 @@ interface PinciteInfo {
55
55
  */
56
56
  declare function parsePincite(raw: string): PinciteInfo | null;
57
57
  //#endregion
58
+ //#region src/extract/dates.d.ts
59
+ /**
60
+ * Date Parsing Utilities for Legal Citations
61
+ *
62
+ * Parses dates from parentheticals in legal citations. Supports three formats:
63
+ * 1. Abbreviated month: "Jan. 15, 2020"
64
+ * 2. Full month: "January 15, 2020"
65
+ * 3. Numeric US: "1/15/2020"
66
+ * 4. Year-only: "2020"
67
+ *
68
+ * @module extract/dates
69
+ */
70
+ /**
71
+ * Structured date components.
72
+ * Month and day are optional to support year-only dates.
73
+ */
74
+ interface ParsedDate {
75
+ year: number;
76
+ month?: number;
77
+ day?: number;
78
+ }
79
+ /**
80
+ * Date in both ISO string and structured format.
81
+ */
82
+ interface StructuredDate {
83
+ /** ISO 8601 format: YYYY-MM-DD, YYYY-MM, or YYYY */
84
+ iso: string;
85
+ /** Structured date components */
86
+ parsed: ParsedDate;
87
+ }
88
+ //#endregion
58
89
  //#region src/clean/segmentMap.d.ts
59
90
  /**
60
91
  * Segment-based position mapping.
@@ -617,6 +648,17 @@ interface StatuteCitation extends CitationBase {
617
648
  pincite?: string;
618
649
  /** True when "et seq." follows the citation */
619
650
  hasEtSeq?: boolean;
651
+ /**
652
+ * Year of the code edition cited, captured from a trailing parenthetical
653
+ * (`HRS § 91-14(a) (1985)`, `42 U.S.C. § 1983 (1976)`,
654
+ * `28 U.S.C. § 1331 (West 2018)`). #285
655
+ */
656
+ year?: number;
657
+ /**
658
+ * Publisher of an annotated code edition (`West`, `Lexis`), captured from
659
+ * `(Publisher YYYY)` parentheticals alongside `year`. #285
660
+ */
661
+ publisher?: string;
620
662
  /** Precise text positions for each parsed component of this citation. */
621
663
  spans?: StatuteComponentSpans;
622
664
  }
@@ -661,8 +703,19 @@ interface NeutralCitation extends CitationBase {
661
703
  type: "neutral";
662
704
  /** Year of decision */
663
705
  year: number;
664
- /** Court identifier (e.g., "WL", "U.S. LEXIS") */
665
- court: string;
706
+ /**
707
+ * Court identifier extracted from a real jurisdictional neutral cite
708
+ * (`Ohio`, `IL`, `NM`) or recovered from a trailing `(court date)`
709
+ * parenthetical on a database cite (`N.D. Cal.`, `Tex. App.`). Database
710
+ * identifiers (`WL`, `LEXIS`) live in `database`, NOT here. #294
711
+ */
712
+ court?: string;
713
+ /**
714
+ * Database identifier for vendor-database cites that have no inherent
715
+ * court value: `WL` (Westlaw), `LEXIS` / `U.S. LEXIS` / `Fed. App. LEXIS`,
716
+ * `BL` (Bloomberg Law). Set instead of `court` for these forms. #294
717
+ */
718
+ database?: string;
666
719
  /** Document number */
667
720
  documentNumber: string;
668
721
  /**
@@ -675,6 +728,11 @@ interface NeutralCitation extends CitationBase {
675
728
  pincite?: number;
676
729
  /** Structured pincite information (page, range, footnote, star-pagination). */
677
730
  pinciteInfo?: PinciteInfo;
731
+ /**
732
+ * Decision date recovered from a trailing `(court date)` parenthetical on
733
+ * a database cite, e.g. `2014 WL 1924465 (Tex. App. May 8, 2014)`. #294
734
+ */
735
+ date?: StructuredDate;
678
736
  /** Precise text positions for each parsed component of this citation. */
679
737
  spans?: NeutralComponentSpans;
680
738
  }
@@ -812,6 +870,15 @@ interface IdCitation extends CitationBase {
812
870
  pincite?: number;
813
871
  /** Structured pincite information (page, range, footnote, star-pagination). */
814
872
  pinciteInfo?: PinciteInfo;
873
+ /**
874
+ * Trailing parenthetical content (text between the parens, excluding the
875
+ * parens themselves) captured from `Id. at N (...)` forms. Common values
876
+ * include drop-citation markers (`citation omitted`, `internal quotation
877
+ * marks omitted`), short-form case identifiers (`Marsh`, `Serrano III`),
878
+ * and explanatory holdings (`holding that ...`). Unclassified — consumers
879
+ * can post-classify if needed. #303
880
+ */
881
+ parenthetical?: string;
815
882
  /** Component-level spans (currently just `pincite`; extend when needed). */
816
883
  spans?: IdComponentSpans;
817
884
  }
@@ -829,6 +896,12 @@ interface SupraCitation extends CitationBase {
829
896
  pincite?: number;
830
897
  /** Structured pincite information (page, range, footnote, star-pagination). */
831
898
  pinciteInfo?: PinciteInfo;
899
+ /**
900
+ * Trailing parenthetical content (text between the parens, excluding the
901
+ * parens themselves). See `IdCitation.parenthetical` for common shapes
902
+ * and rationale. #303
903
+ */
904
+ parenthetical?: string;
832
905
  /** Component-level spans (currently just `pincite`; extend when needed). */
833
906
  spans?: SupraComponentSpans;
834
907
  }
@@ -859,6 +932,12 @@ interface ShortFormCaseCitation extends CitationBase {
859
932
  * collapsed). Mirrors `defendantNormalized` / `plaintiffNormalized` on
860
933
  * `FullCaseCitation`. */
861
934
  partyNameNormalized?: string;
935
+ /**
936
+ * Trailing parenthetical content (text between the parens, excluding the
937
+ * parens themselves). See `IdCitation.parenthetical` for common shapes
938
+ * and rationale. #303
939
+ */
940
+ parenthetical?: string;
862
941
  }
863
942
  /**
864
943
  * Union type of all citation types.
@@ -910,4 +989,4 @@ type CitationOfType<T extends CitationType> = Extract<Citation, {
910
989
  type ExtractorMap = { [K in FullCitationType]: CitationOfType<K> };
911
990
  //#endregion
912
991
  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 };
913
- //# sourceMappingURL=citation-BuBDvjag.d.mts.map
992
+ //# sourceMappingURL=citation-Cd8-o32w.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"citation-Cd8-o32w.d.mts","names":[],"sources":["../src/extract/pincite.ts","../src/extract/dates.ts","../src/clean/segmentMap.ts","../src/types/span.ts","../src/types/componentSpans.ts","../src/types/citation.ts"],"mappings":";;AAUA;;;;;;;;;UAAiB,WAAA;;EAEf,IAAA;;EAEA,OAAA;;;EAGA,QAAA;EAqDF;EAnDE,WAAA;;EAEA,OAAA;EAiDyC;;;EA7CzC,QAAA;ECTF;EDWE,SAAA;;EAEA,YAAA;;;;;;ACJF;;EDYE,kBAAA,GAAqB,WAAA;ECRb;EDUR,GAAA;AAAA;;;;;;;AE/BF;;;;;;;iBF8DgB,YAAA,CAAa,GAAA,WAAc,WAAA;;;;AA5D3C;;;;;;;;;;;;;;UCMiB,UAAA;EACf,IAAA;EACA,KAAA;EACA,GAAA;AAAA;;;;UAMe,cAAA;;EAEf,GAAA;EAXF;EAaE,MAAA,EAAQ,UAAA;AAAA;;;;ADnBV;;;;;;UEFiB,OAAA;;EAEf,QAAA;;EAEA,OAAA;;EAEA,GAAA;AAAA;AAAA,cAGW,UAAA;EAAA,SACF,QAAA,WAAmB,OAAA;EAE5B,WAAA,CAAY,QAAA,EAAU,OAAA;EFkDxB;;;EAAA,OE3CS,QAAA,CAAS,MAAA,WAAiB,UAAA;EF2CQ;;;;ACtD3C;EDsD2C,OElClC,OAAA,CAAQ,GAAA,EAAK,GAAA,mBAAsB,UAAA;;;;;EAkC1C,MAAA,CAAO,QAAA;AAAA;;;;AF5DT;;;;;;;;;;;;;;;;UGOiB,IAAA;EHqDjB;EGnDE,UAAA;;EAGA,QAAA;EHgDyC;EG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