kaos-citations 0.1.0a1__tar.gz
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.
- kaos_citations-0.1.0a1/.gitignore +19 -0
- kaos_citations-0.1.0a1/CHANGELOG.md +133 -0
- kaos_citations-0.1.0a1/LICENSE +201 -0
- kaos_citations-0.1.0a1/NOTICE +35 -0
- kaos_citations-0.1.0a1/PKG-INFO +354 -0
- kaos_citations-0.1.0a1/README.md +322 -0
- kaos_citations-0.1.0a1/kaos_citations/__init__.py +305 -0
- kaos_citations-0.1.0a1/kaos_citations/_nlp.py +127 -0
- kaos_citations-0.1.0a1/kaos_citations/_version.py +1 -0
- kaos_citations-0.1.0a1/kaos_citations/data/LICENSE.vendored +89 -0
- kaos_citations-0.1.0a1/kaos_citations/data/__init__.py +13 -0
- kaos_citations-0.1.0a1/kaos_citations/data/_loaders.py +425 -0
- kaos_citations-0.1.0a1/kaos_citations/data/case_name_abbreviations.json +191 -0
- kaos_citations-0.1.0a1/kaos_citations/data/courts.json +69815 -0
- kaos_citations-0.1.0a1/kaos_citations/data/courts_states.json +64 -0
- kaos_citations-0.1.0a1/kaos_citations/data/courts_variables.json +101 -0
- kaos_citations-0.1.0a1/kaos_citations/data/journals.json +9584 -0
- kaos_citations-0.1.0a1/kaos_citations/data/laws.json +6375 -0
- kaos_citations-0.1.0a1/kaos_citations/data/regexes.json +82 -0
- kaos_citations-0.1.0a1/kaos_citations/data/reporters.json +28738 -0
- kaos_citations-0.1.0a1/kaos_citations/data/state_abbreviations.json +52 -0
- kaos_citations-0.1.0a1/kaos_citations/errors.py +24 -0
- kaos_citations-0.1.0a1/kaos_citations/extract.py +353 -0
- kaos_citations-0.1.0a1/kaos_citations/matchers/__init__.py +303 -0
- kaos_citations-0.1.0a1/kaos_citations/model.py +1683 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/__init__.py +177 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/accounting.py +1066 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/agency.py +529 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/case.py +1098 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/cfr.py +86 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/constitution.py +137 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/federal_rules.py +297 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/identifiers/__init__.py +29 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/identifiers/arxiv.py +81 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/identifiers/doi.py +76 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/identifiers/pubmed.py +75 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/internet.py +174 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/legislative.py +481 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/regulatory.py +435 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/sec.py +1379 -0
- kaos_citations-0.1.0a1/kaos_citations/parsers/statute.py +227 -0
- kaos_citations-0.1.0a1/kaos_citations/postprocess.py +389 -0
- kaos_citations-0.1.0a1/kaos_citations/resources.py +283 -0
- kaos_citations-0.1.0a1/kaos_citations/serve.py +69 -0
- kaos_citations-0.1.0a1/kaos_citations/settings.py +34 -0
- kaos_citations-0.1.0a1/kaos_citations/tools.py +374 -0
- kaos_citations-0.1.0a1/pyproject.toml +156 -0
- kaos_citations-0.1.0a1/tests/__init__.py +0 -0
- kaos_citations-0.1.0a1/tests/benchmarks/__init__.py +0 -0
- kaos_citations-0.1.0a1/tests/benchmarks/corpus/accounting_excerpt.txt +17 -0
- kaos_citations-0.1.0a1/tests/benchmarks/corpus/negative_text.txt +18 -0
- kaos_citations-0.1.0a1/tests/benchmarks/corpus/scotus_excerpt.txt +13 -0
- kaos_citations-0.1.0a1/tests/benchmarks/corpus/sec_release_excerpt.txt +18 -0
- kaos_citations-0.1.0a1/tests/benchmarks/test_corpus_benchmark.py +319 -0
- kaos_citations-0.1.0a1/tests/fixtures/case-citations-golden.jsonl +15 -0
- kaos_citations-0.1.0a1/tests/fixtures/cfr-citations-golden.jsonl +20 -0
- kaos_citations-0.1.0a1/tests/fixtures/statute-citations-golden.jsonl +10 -0
- kaos_citations-0.1.0a1/tests/unit/__init__.py +0 -0
- kaos_citations-0.1.0a1/tests/unit/test_case_parser.py +333 -0
- kaos_citations-0.1.0a1/tests/unit/test_cfr_parser.py +189 -0
- kaos_citations-0.1.0a1/tests/unit/test_constitution_parser.py +131 -0
- kaos_citations-0.1.0a1/tests/unit/test_data_loaders.py +122 -0
- kaos_citations-0.1.0a1/tests/unit/test_federal_rules_parser.py +127 -0
- kaos_citations-0.1.0a1/tests/unit/test_identifier_parsers.py +199 -0
- kaos_citations-0.1.0a1/tests/unit/test_internet_parser.py +81 -0
- kaos_citations-0.1.0a1/tests/unit/test_legislative_parser.py +168 -0
- kaos_citations-0.1.0a1/tests/unit/test_matchers.py +144 -0
- kaos_citations-0.1.0a1/tests/unit/test_model.py +112 -0
- kaos_citations-0.1.0a1/tests/unit/test_nlp_boundary.py +57 -0
- kaos_citations-0.1.0a1/tests/unit/test_phase2_4_parsers.py +498 -0
- kaos_citations-0.1.0a1/tests/unit/test_postprocess.py +266 -0
- kaos_citations-0.1.0a1/tests/unit/test_regulatory_parser.py +133 -0
- kaos_citations-0.1.0a1/tests/unit/test_resources.py +69 -0
- kaos_citations-0.1.0a1/tests/unit/test_statute_parser.py +108 -0
- kaos_citations-0.1.0a1/tests/unit/test_tools.py +240 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.coverage
|
|
2
|
+
.pytest_cache/
|
|
3
|
+
.ruff_cache/
|
|
4
|
+
.venv/
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
dist/
|
|
8
|
+
build/
|
|
9
|
+
.env
|
|
10
|
+
.env.test
|
|
11
|
+
.env.local
|
|
12
|
+
# Per F009 lesson #4: uv.lock is gitignored at v0.1 of any package
|
|
13
|
+
# whose dev-group references unpublished siblings. Re-track at 0.1.0a2
|
|
14
|
+
# once kaos-mcp ships and is added to the dev group.
|
|
15
|
+
uv.lock
|
|
16
|
+
|
|
17
|
+
# Per F009 lesson: uv.lock gitignored at v0.1 because dev group
|
|
18
|
+
# references kaos-mcp / unpublished siblings. Re-track at 0.1.0a2.
|
|
19
|
+
uv.lock
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `kaos-citations` are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.1.0a1] — 2026-05-07
|
|
11
|
+
|
|
12
|
+
First public alpha release.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **`extract_citations(text, *, kinds=None, source_uri=None)`** — top-
|
|
17
|
+
level dispatcher across **60 supported `kind` literals** spanning
|
|
18
|
+
four domains:
|
|
19
|
+
- **Legal** (25 kinds): full-form + short-form case law (`case` /
|
|
20
|
+
`case_short` / `id` / `supra` / `case_ref`), journal articles
|
|
21
|
+
(`journal`), CFR, U.S. Code / I.R.C. / state codes (`statute`),
|
|
22
|
+
Federal Register, U.S. Constitution, Federal Rules + USSG, Treasury
|
|
23
|
+
Regulations, IRS guidance (Rev. Rul. / Rev. Proc. / Notice / PLR /
|
|
24
|
+
TAM / GCM / FSA / CCA / T.D. / IRB / IRM), executive actions
|
|
25
|
+
(E.O. / Proc. / Memo / Determination), public laws + bills +
|
|
26
|
+
reports + Cong. Rec., Restatements, Uniform Acts + Model Codes,
|
|
27
|
+
agency adjudications (NLRB / FERC / FCC / FTC / NTSB / EPA EAB /
|
|
28
|
+
BIA / PTAB / TTAB), agency manuals (MPEP / TMEP / POMS), AG / OLC
|
|
29
|
+
opinions, bar ethics opinions, internet URLs, archive URLs.
|
|
30
|
+
- **Financial** (19 kinds): SEC filings (20+ form types), SEC
|
|
31
|
+
releases (33-/34-/IC-/IA-/TIA-), SEC staff guidance (SAB / SLB /
|
|
32
|
+
C&DI / no-action), SEC named regulations (Reg. S-X / S-K / G /
|
|
33
|
+
AB / M / FD / BTR / S-T), FINRA rules + notices + disciplinary,
|
|
34
|
+
exchange rules (NYSE / Nasdaq / Cboe / MSRB / OCC), Federal
|
|
35
|
+
Reserve regs + SR/CA/OP letters, FDIC FILs, OCC bulletins +
|
|
36
|
+
interpretive letters + conditional approvals, CFPB bulletins +
|
|
37
|
+
circulars + advisory opinions, NCUA letters, Basel framework,
|
|
38
|
+
CFTC interpretive + no-action + advisory + orders, NAIC
|
|
39
|
+
bulletins + model acts, international finance bodies (FATF /
|
|
40
|
+
IOSCO), FFIEC call reports.
|
|
41
|
+
- **Accounting** (13 kinds): FASB ASC + ASU + legacy (FAS / FIN /
|
|
42
|
+
FSP / EITF / TB / CON / APB / ARB), PCAOB AS + Releases + Rules
|
|
43
|
+
+ Practice Alerts, AICPA SAS / SSAE / SSARS / SOP / TQA / Code,
|
|
44
|
+
IFRS family (IFRS / IAS / IFRIC / SIC / Practice Statement /
|
|
45
|
+
Conceptual Framework), IAASB (ISA / ISAE / ISRE / ISRS / ISQM /
|
|
46
|
+
ISQC), IESBA Code, GASB Statements + Implementation Guides +
|
|
47
|
+
Concepts + Tech Bulletins + Interpretations, FASAB SFFAS +
|
|
48
|
+
Concepts + Interpretations + Tech Bulletins, government audit
|
|
49
|
+
(OMB Circulars + Memos + GAO Reports + Yellow Book), NAIC SSAP,
|
|
50
|
+
sustainability frameworks (GRI / SASB / TCFD / ISSB / ESRS).
|
|
51
|
+
- **Identifier** (3 kinds): DOI, PubMed, arXiv (opt-in by default).
|
|
52
|
+
- **Three MCP tools** (`kaos-citations-extract`, `kaos-citations-validate`,
|
|
53
|
+
`kaos-citations-doctor`) — registered via
|
|
54
|
+
`register_citations_tools(runtime)`. All read-only, fully offline.
|
|
55
|
+
`kaos-citations-validate` rejects unknown `expected_kind` values
|
|
56
|
+
upfront with an error and near-match suggestions.
|
|
57
|
+
- **One MCP resource** — `kaos-citations://kinds` — static taxonomy
|
|
58
|
+
agents read for self-discovery: every `kind`, the broader family
|
|
59
|
+
(`legal` / `financial` / `accounting` / `identifier`), a Bluebook-
|
|
60
|
+
style example, and an `opt_in` flag. Registered via
|
|
61
|
+
`register_citations_resources(runtime)`. Unit tests cross-check the
|
|
62
|
+
table against the dispatcher's `_SUPPORTED_KINDS` so they cannot drift.
|
|
63
|
+
- **Typed `Citation` discriminated union** with frozen Pydantic
|
|
64
|
+
models per family — every `model.__all__` symbol is re-exported
|
|
65
|
+
from the package surface (`from kaos_citations import IFRSCitation`,
|
|
66
|
+
`SECFilingCitation`, `AgencyAdjudicationCitation`, etc.).
|
|
67
|
+
Citations carry stable provenance (`raw` / `normalized` / `span` /
|
|
68
|
+
`source_uri`), a per-extraction `cite_id` (`c0001`, `c0002`, ...),
|
|
69
|
+
and Bluebook-modifier fields on the base class: `signal`,
|
|
70
|
+
`pin_cite`, `pin_cite_kind`, `parenthetical`, `parenthetical_kind`,
|
|
71
|
+
`weight`, `back_ref`, `string_cite_group`, `subsequent_history`.
|
|
72
|
+
- **Stable cite-id cross references** — `back_ref` and the second
|
|
73
|
+
tuple element of `subsequent_history` reference other citations by
|
|
74
|
+
their `cite_id` (string), not by list index. Filtering or
|
|
75
|
+
re-sorting the result list never breaks the cross-references.
|
|
76
|
+
- **Bluebook-correct case parenthetical handling** — date parens
|
|
77
|
+
(`(1954)`, `(5th Cir. 1996)`) populate `year` and `court` only;
|
|
78
|
+
weight parens (`(per curiam)` / `(en banc)`) populate `weight`;
|
|
79
|
+
judge parens (`(Sotomayor, J., dissenting)`) populate `judges`.
|
|
80
|
+
Only Bluebook R1.5 explanatory text spills into `parenthetical`.
|
|
81
|
+
Multi-paren chains like `(2014) (per curiam) (holding ...)` are
|
|
82
|
+
parsed correctly across all three slots.
|
|
83
|
+
- **Bluebook-correct case-name boundaries** — when extracting cite
|
|
84
|
+
N+1, the case-name walk-back is floored at cite N's right edge.
|
|
85
|
+
R10.7 subsequent-history connectors (`overruled by`, `aff'd`,
|
|
86
|
+
`rev'd`, `vacated`, `cert. denied`, etc.) are stripped from the
|
|
87
|
+
leading edge, so `Roe v. Wade, ..., overruled by Dobbs v. Jackson`
|
|
88
|
+
yields two clean `case_name` values rather than swallowing the
|
|
89
|
+
prior cite into the second.
|
|
90
|
+
- **kaos-nlp-core integration boundary** (`kaos_citations._nlp`):
|
|
91
|
+
`get_sentence_tokenizer()` returns the singleton Punkt tokenizer
|
|
92
|
+
initialized with the bundled legal model (~27,000 abbreviations).
|
|
93
|
+
Loader fails loudly via `PunktModelMissingError` if the embedded
|
|
94
|
+
model is missing or the abbreviation count is below threshold —
|
|
95
|
+
no silent fallback to an empty tokenizer.
|
|
96
|
+
- **`kaos_citations.matchers`** — single source of truth for all
|
|
97
|
+
matching: `regex(...)` (Rust regex), `multi_pattern(...)`
|
|
98
|
+
(Aho-Corasick), `tokenize_words(...)`, `sentence_tokenizer()`,
|
|
99
|
+
plus `FstSet` builders for reporters / courts / case-name
|
|
100
|
+
abbreviations / journals / statute reporters / US states.
|
|
101
|
+
- **Vendored data** — `reporters_db` and `courts_db` JSON ship under
|
|
102
|
+
`kaos_citations/data/` with the upstream BSD-2 license preserved
|
|
103
|
+
in `kaos_citations/data/LICENSE.vendored`. The runtime consumes
|
|
104
|
+
the JSON only; no upstream Python code is imported.
|
|
105
|
+
- **Bluebook post-processing passes** (`kaos_citations.postprocess`):
|
|
106
|
+
cite-id assignment, signal binding (R1.2), string-cite grouping
|
|
107
|
+
(R1.4), and subsequent-history detection (R10.7), all anchored to
|
|
108
|
+
Punkt-derived sentence boundaries.
|
|
109
|
+
- **`KaosCitationsSettings`** — `ModuleSettings` subclass with env
|
|
110
|
+
prefix `KAOS_CITATIONS_` (empty at this release; reserved).
|
|
111
|
+
- **Typed error hierarchy** rooted at
|
|
112
|
+
`KaosCitationsError(KaosCoreError)`: `CitationParseError`.
|
|
113
|
+
|
|
114
|
+
### Notes
|
|
115
|
+
|
|
116
|
+
- The runtime dependency graph is exactly two packages: `kaos-core`
|
|
117
|
+
(logging + settings + MCP tool primitives) and `kaos-nlp-core`
|
|
118
|
+
(matching + Punkt + tokenization). No `httpx`, no `eyecite`, no
|
|
119
|
+
`re`-module imports anywhere in the runtime.
|
|
120
|
+
- `kaos-citations` does NOT do citation resolution (URL building,
|
|
121
|
+
body fetching) or claim verification. Those responsibilities live
|
|
122
|
+
in the rest of the KAOS stack — `kaos-source` for typed source
|
|
123
|
+
connectors, `kaos-web` for generic search + fetch, `kaos-llm-core`
|
|
124
|
+
for in-process `Cited[T]` grounding, and `kaos-agents` for
|
|
125
|
+
orchestration. Compose them with the typed citations this package
|
|
126
|
+
produces.
|
|
127
|
+
- `kaos-mcp` is intentionally absent from extras at 0.1.0a1 — Wave 3,
|
|
128
|
+
not yet on PyPI. The MCP server entry point will work once
|
|
129
|
+
`kaos-mcp` publishes; until then, install `kaos-mcp` from source
|
|
130
|
+
alongside `kaos-citations`.
|
|
131
|
+
|
|
132
|
+
[Unreleased]: https://github.com/273v/kaos-citations/compare/v0.1.0a1...HEAD
|
|
133
|
+
[0.1.0a1]: https://github.com/273v/kaos-citations/releases/tag/v0.1.0a1
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 273 Ventures LLC
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
kaos-citations
|
|
2
|
+
Copyright 2026 273 Ventures LLC.
|
|
3
|
+
|
|
4
|
+
This product includes software developed at 273 Ventures LLC
|
|
5
|
+
(https://273ventures.com).
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0. See the LICENSE file
|
|
8
|
+
distributed with this software for the full text of the license.
|
|
9
|
+
|
|
10
|
+
----------------------------------------------------------------------
|
|
11
|
+
Third-party data
|
|
12
|
+
----------------------------------------------------------------------
|
|
13
|
+
|
|
14
|
+
This product includes vendored JSON data from two open-source projects
|
|
15
|
+
maintained by the Free Law Project, distributed under the BSD 2-Clause
|
|
16
|
+
License. The data files live in ``kaos_citations/data/``; the upstream
|
|
17
|
+
license texts are reproduced verbatim in
|
|
18
|
+
``kaos_citations/data/LICENSE.vendored``.
|
|
19
|
+
|
|
20
|
+
* reporters_db
|
|
21
|
+
Source: https://github.com/freelawproject/reporters-db
|
|
22
|
+
Files: reporters.json, case_name_abbreviations.json,
|
|
23
|
+
state_abbreviations.json, laws.json, journals.json,
|
|
24
|
+
regexes.json
|
|
25
|
+
Copyright (c) 2014, Free Law Project
|
|
26
|
+
License: BSD 2-Clause
|
|
27
|
+
|
|
28
|
+
* courts_db
|
|
29
|
+
Source: https://github.com/freelawproject/courts-db
|
|
30
|
+
Files: courts.json, courts_states.json, courts_variables.json
|
|
31
|
+
Copyright (c) 2020, Free Law Project
|
|
32
|
+
License: BSD 2-Clause
|
|
33
|
+
|
|
34
|
+
kaos-citations consumes these data files only — no Python code from
|
|
35
|
+
either upstream project is imported by the runtime.
|