simplelex commited on
Commit
7c1488e
·
verified ·
1 Parent(s): d80e475

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +334 -0
README.md ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ configs:
3
+ - config_name: principal_legislation
4
+ data_files:
5
+ - split: train
6
+ path: frl_principal_legislation_all.jsonl
7
+ - config_name: amendment_history
8
+ data_files:
9
+ - split: train
10
+ path: frl_legislation_history_all.jsonl
11
+ - config_name: legislation_with_history
12
+ data_files:
13
+ - split: train
14
+ path: frl_legislation_with_history_all.jsonl
15
+ tags:
16
+ - law
17
+ - tax
18
+ - australia
19
+ - legislation
20
+ - statutes
21
+ - legal
22
+ - rag
23
+ - nlp
24
+ - legal-nlp
25
+ - amendment-history
26
+ - legislative-history
27
+ - itaa1997
28
+ - itaa1936
29
+ - gst
30
+ - domain-specific
31
+ - text-retrieval
32
+ - question-answering
33
+ - fine-tuning
34
+ language:
35
+ - en
36
+ license: cc-by-4.0
37
+ pretty_name: Australian Tax Legislation & Amendment History — ITAA 1997, ITAA 1936, GST Act
38
+ size_categories:
39
+ - 10K<n<100K
40
+ ---
41
+ # Australian Tax Legislation & Amendment History
42
+
43
+ > **The full text of every section of the 22 principal Acts the Australian Taxation Office administers** — Income Tax Assessment Act 1997, Income Tax Assessment Act 1936, the GST Act, FBTAA, the Taxation Administration Act 1953, the superannuation and fuel tax Acts and more — **each section joined to its complete amendment history**: which Act changed it, which schedule item, and when it commenced. Sourced from the [Federal Register of Legislation](https://www.legislation.gov.au) and structured for legal RAG, statutory retrieval, and LLM fine-tuning.
44
+
45
+ This rebuilds the "see history notes" view that commercial Australian tax services charge for — reconstructed entirely from the **freely licensed, Crown-copyright FRL compilation endnotes**, so it can be published under CC BY 4.0.
46
+
47
+ **Companion dataset:** ATO rulings, private advice, determinations and guidance are published separately at [**simplelex/ATO-Australian-Tax-Rulings-and-Guidance**](https://huggingface.co/datasets/simplelex/ATO-Australian-Tax-Rulings-and-Guidance). The two are designed to be used together — ATO documents cite provisions; this dataset resolves them.
48
+
49
+ ---
50
+
51
+ ## File formats
52
+
53
+ Each dataset is published in two parallel files with identical content and field order:
54
+
55
+ | Format | Filename pattern | Best for |
56
+ |---|---|---|
57
+ | **CSV** (UTF-8) | `<dataset>.csv` | Pandas, spreadsheets, SQL bulk-load |
58
+ | **NDJSON / JSON Lines** | `<dataset>.jsonl` | `datasets.load_dataset()`, streaming, jq, DuckDB, RAG ingestion |
59
+
60
+ JSON keys are identical to CSV column names — the schema tables below describe both formats.
61
+
62
+ ---
63
+
64
+ ## Contents
65
+
66
+ - [Dataset Splits](#dataset-splits)
67
+ - [Quick Start](#quick-start)
68
+ - [Schema](#schema)
69
+ - [Principal Legislation](#1-principal-legislation-principal_legislation)
70
+ - [Amendment History](#2-amendment-history-amendment_history)
71
+ - [Legislation + History Notes](#3-legislation--history-notes-legislation_with_history)
72
+ - [Acts Covered](#acts-covered)
73
+ - [Use Cases](#use-cases)
74
+ - [Limitations](#limitations)
75
+ - [Attribution — required wording](#attribution--required-wording)
76
+ - [Source & Licensing](#source--licensing)
77
+ - [Citation](#citation)
78
+ - [Terms of Service](#terms-of-service)
79
+
80
+ ---
81
+
82
+ ## Dataset Splits
83
+
84
+ | Split | Content | Est. Rows | Coverage | CSV file | NDJSON file |
85
+ |---|---|---|---|---|---|
86
+ | `principal_legislation` | Current in-force text of every section of the 22 ATO-administered Acts | ~10,000 sections | Latest compilation | `frl_principal_legislation_all.csv` | `frl_principal_legislation_all.jsonl` |
87
+ | `amendment_history` | One row per amendment event — provision, action, amending Act, commencement | ~43,000 events | 1986–present | `frl_legislation_history_all.csv` | `frl_legislation_history_all.jsonl` |
88
+ | `legislation_with_history` | **Flagship.** Each current section joined to its chronological amendment history | ~10,000 sections | Current + history | `frl_legislation_with_history_all.csv` | `frl_legislation_with_history_all.jsonl` |
89
+
90
+ ---
91
+
92
+ ## Quick Start
93
+
94
+ ### Option A — NDJSON via `datasets` (recommended for ML)
95
+
96
+ ```python
97
+ from datasets import load_dataset
98
+
99
+ ds = load_dataset(
100
+ "simplelex/Australian-Tax-Legislation-and-Amendment-History",
101
+ "legislation_with_history",
102
+ split="train",
103
+ )
104
+ print(ds[0])
105
+
106
+ # Available configs: principal_legislation · amendment_history · legislation_with_history
107
+ ```
108
+
109
+ ### Option B — NDJSON via pandas
110
+
111
+ ```python
112
+ import pandas as pd
113
+
114
+ df = pd.read_json("frl_legislation_with_history_all.jsonl", lines=True)
115
+
116
+ # What does ITAA 1997 s 6-5 say, and how has it changed?
117
+ s6_5 = df[(df["Act_Short_Name"] == "ITAA1997") & (df["Provision_Key"] == "s6-5")]
118
+ print(s6_5[["Heading", "Text", "Amendment_Count", "History_Notes"]].iloc[0])
119
+ ```
120
+
121
+ ### Option C — join provisions to their amendment events yourself
122
+
123
+ ```python
124
+ import pandas as pd
125
+
126
+ provisions = pd.read_json("frl_principal_legislation_all.jsonl", lines=True)
127
+ events = pd.read_json("frl_legislation_history_all.jsonl", lines=True)
128
+
129
+ joined = provisions.merge(events, on=["Act_FRL_Id", "Provision_Key"], how="left")
130
+
131
+ # Most-amended sections of the ITAA 1997
132
+ top = (
133
+ joined[joined["Act_Short_Name_x"] == "ITAA1997"]
134
+ .groupby(["Provision_x", "Heading"])
135
+ .size()
136
+ .sort_values(ascending=False)
137
+ )
138
+ print(top.head(10))
139
+ ```
140
+
141
+ Multi-value fields (`Amending_Acts`, `History_Notes`) use ` | ` as the internal delimiter in both formats.
142
+
143
+ ---
144
+
145
+ ## Schema
146
+
147
+ The column tables below apply to **both** the CSV and NDJSON variants — every CSV column maps 1:1 to a JSON key of the same name in the corresponding `.jsonl` file, in the same order.
148
+
149
+ ### Encoding conventions
150
+
151
+ | Convention | Detail |
152
+ |---|---|
153
+ | **Multi-value delimiter** | ` \| ` (space-pipe-space) within a single cell / string field |
154
+ | **Empty values** | Empty string `""` — never `NULL`, `N/A`, or JSON `null` |
155
+ | **Dates** | Verbatim as published by the FRL — no normalisation |
156
+ | **Defined terms** | `*` prefixes a defined term in provision text (the FRL's own convention, preserved) |
157
+
158
+ ---
159
+
160
+ ### 1. Principal Legislation (`principal_legislation`)
161
+
162
+ Current in-force text of **every section of the 22 principal Acts the ATO administers**. One row per provision.
163
+
164
+ | Column | Type | Nullable | Description |
165
+ |---|---|---|---|
166
+ | `Act_Short_Name` | string | No | Short code, e.g. `ITAA1997`, `FBTAA`, `GST`. |
167
+ | `Act_Title` | string | No | Full Act title, e.g. `Income Tax Assessment Act 1997`. |
168
+ | `Act_Year` | int | No | Year of the Act. |
169
+ | `Act_FRL_Id` | string | No | FRL **series** id, e.g. `C2004A05138`. Note this is not the compilation register id. |
170
+ | `Compilation_PiT` | string | No | Compilation point-in-time; `latest` for the current compilation. |
171
+ | `Provision` | string | No | Section label, e.g. `s 6-5`, `s 136`, `s 102UQ`. |
172
+ | `Provision_Key` | string | No | Normalised join key to the history datasets (`s 6-5`→`s6-5`, `Section 3`→`s3`; sub-provisions roll up to their section). |
173
+ | `Heading` | string | Yes | Section heading, e.g. `Income according to ordinary concepts (ordinary income)`. |
174
+ | `Text` | string | Yes | Full operative text (subsections/notes/tables concatenated). Genuinely empty for reserved and "Map of…" navigational sections. |
175
+ | `Source_URL` | string | No | `https://www.legislation.gov.au/{Act_FRL_Id}/latest/text#{provision}`. Resume key. |
176
+
177
+ ### 2. Amendment History (`amendment_history`)
178
+
179
+ One row per **amendment event**: which provision changed, the action taken, the amending Act, and when it commenced. Reconstructed from FRL compilation **endnotes** (Endnote 2 abbreviation key, Endnote 3 legislation history, Endnote 4 amendment history).
180
+
181
+ | Column | Type | Nullable | Description |
182
+ |---|---|---|---|
183
+ | `Act_Short_Name` / `Act_Title` / `Act_Year` / `Act_FRL_Id` | — | No | Identify the principal Act. |
184
+ | `Provision` | string | No | Provision affected, e.g. `s 5B`, `s. 41-5(1)`, `Note 1 to s. 41-5(1)`. |
185
+ | `Provision_Key` | string | No | Normalised key; joins to `principal_legislation`. Sub-provision and note amendments roll up to their section. |
186
+ | `Action_Code` | string | Yes | Raw endnote code: `am` amended, `ad` added/inserted, `rep` repealed, `rs` repealed & substituted. |
187
+ | `Action` | string | No | Expanded verb, e.g. `Amended`, `Inserted`, `Repealed`. |
188
+ | `Amending_Act_Number` | int | No | Number of the amending Act. |
189
+ | `Amending_Act_Year` | int | No | Year of the amending Act. |
190
+ | `Amending_Act_FRL_Id` | string | Yes | FRL id of the amending Act, e.g. `C2013A00124`. |
191
+ | `Amending_Item` | string | Yes | Schedule item that made the change, e.g. `Sch 11 item 10` (best-effort; ~58% filled — see Limitations). |
192
+ | `Commencement` | string | Yes | Commencement detail, e.g. `Sch 11 (items 10-25, 27): 30 June 2013`. |
193
+ | `Application_Saving_Transitional` | string | Yes | Application/saving/transitional provisions where present. |
194
+ | `History_Note` | string | No | Reconstructed note, e.g. `Amended by No 124 of 2013, effective 30 June 2013`. **Our wording, not the FRL's** — see Attribution. |
195
+ | `Source_URL` | string | No | Stable per-event URL (resume key). |
196
+
197
+ ### 3. Legislation + History Notes (`legislation_with_history`)
198
+
199
+ **The flagship dataset.** A left-join of #1 and #2 on `(Act_FRL_Id, Provision_Key)` — **one row per current section, carrying its full text AND its complete chronological amendment history.**
200
+
201
+ | Column | Type | Nullable | Description |
202
+ |---|---|---|---|
203
+ | `Act_Short_Name` / `Act_Title` / `Act_Year` / `Act_FRL_Id` | — | No | Identify the principal Act. |
204
+ | `Provision` / `Provision_Key` / `Heading` / `Text` | — | — | The current section text (as in #1). |
205
+ | `Amendment_Count` | int | No | Number of amendment events (0 = never amended since the Act commenced). |
206
+ | `First_Amended` | string | Yes | Earliest amending Act, e.g. `No 139 of 1987`. |
207
+ | `Last_Amended` | string | Yes | Most recent amending Act. |
208
+ | `Amending_Acts` | string | Yes | Distinct amending Acts in chronological order, ` \| `-separated. |
209
+ | `History_Notes` | string | Yes | Chronological reconstructed notes: `Amended by No 139 of 1987, effective 18 Dec 1987 \| Amended by No 145 of 1995, …`. |
210
+ | `Source_URL` | string | No | The provision's `/latest/text#{provision}` URL. |
211
+
212
+ ---
213
+
214
+ ## Acts Covered
215
+
216
+ The 22 principal Acts administered by the Australian Taxation Office, including:
217
+
218
+ - **Income Tax Assessment Act 1997** and **Income Tax Assessment Act 1936**
219
+ - **A New Tax System (Goods and Services Tax) Act 1999**, plus the Luxury Car Tax and Wine Equalisation Tax Acts
220
+ - **Fringe Benefits Tax Assessment Act 1986**
221
+ - **Taxation Administration Act 1953** (including the Schedule 1 administrative provisions)
222
+ - **Superannuation Industry (Supervision) Act 1993**, **Superannuation Guarantee (Administration) Act 1992** and related superannuation Acts
223
+ - **Fuel Tax Act 2006**, **Petroleum Resource Rent Tax Assessment Act 1987**
224
+ - **Tax Agent Services Act 2009**
225
+
226
+ ---
227
+
228
+ ## Use Cases
229
+
230
+ - **Statutory RAG** — each provision is a self-contained retrieval unit with a stable `Source_URL`; retrieve the section text and its amendment lineage together so generated answers cite both the current provision *and* when it last changed
231
+ - **Temporal legislation models** — train or evaluate on dated amendment events (`Commencement`, `Amending_Act_Year`, `Action`) for legislative change prediction, version diffing, or "law as at date X" retrieval
232
+ - **Legislative graph construction** — build provision-level change networks: which amending Acts touch which parts of the ITAA 1997, and how amendment activity clusters over time
233
+ - **Fine-tuning Australian tax LLMs** — the full operative text of the core tax statutes, section-segmented and cleanly labelled, as a grounding corpus
234
+ - **Cross-referencing ATO guidance** — explode `Relevant_Legislative_Provisions` in the [companion ATO dataset](https://huggingface.co/datasets/simplelex/ATO-Australian-Tax-Rulings-and-Guidance) and join on `Provision_Key` to see every ruling that interprets a given section
235
+ - **Compliance and drafting tooling** — surface the current text of a provision plus what changed and when, without a commercial subscription
236
+
237
+ ---
238
+
239
+ ## Limitations
240
+
241
+ - **Currency** — compilations are checked for amendments automatically and the datasets rebuilt when a new compilation is registered. Between checks, a recently commenced amendment may not yet be reflected. Always verify against [legislation.gov.au](https://www.legislation.gov.au) for official or time-sensitive purposes.
242
+ - **`Amending_Item` is ~58% filled** — the remaining blanks are genuinely unattributable from the endnotes: inserted sections that no schedule item names individually, and Acts published in the older OLDF endnote format (notably the Superannuation Guarantee Charge Act).
243
+ - **History notes are reconstructed, not reproduced** — `History_Note` and `History_Notes` are generated in our own wording from the endnote facts (provision, action, amending Act, commencement). They are not the ATO Legal Database's history notes, which are separately copyrighted.
244
+ - **Repealed provisions** — the joined dataset covers sections present in the *current* compilation. Provisions repealed or renumbered out of existence appear in `amendment_history` but have no row in `principal_legislation`, so they drop out of the left join.
245
+ - **Text extraction** — provision text is extracted from the FRL's compilation epub files. Complex tables, formulae, and diagrams may be flattened or lost; check `Source_URL` for anything structurally unusual.
246
+ - **Point-in-time text is not in this dataset** — per-compilation-version provision text (what any section said on any past date) exists but is served separately and is not published here.
247
+ - **Australian Commonwealth jurisdiction only** — no state or territory legislation, and no non-tax Commonwealth Acts.
248
+ - **Not legal advice** — see Terms of Service.
249
+
250
+ ---
251
+
252
+ ## Attribution — required wording
253
+
254
+ The Federal Register of Legislation licence requires attribution in **specific words**, not just a credit. If you redistribute this data or content derived from it, use the statement that matches what you are redistributing:
255
+
256
+ **For provision text reproduced substantially unchanged** (the `Text` and `Heading` columns):
257
+
258
+ > Sourced from the Federal Register of Legislation at [full date of download]. For the latest information on Australian Government law please go to https://www.legislation.gov.au.
259
+
260
+ **For the reconstructed history notes and any restructured or derived content** (`History_Note`, `History_Notes`, `Amendment_Count`, and the joined dataset generally):
261
+
262
+ > Based on content from the Federal Register of Legislation at [full date of download]. For the latest information on Australian Government legislation please go to https://www.legislation.gov.au.
263
+
264
+ Substitute the date you downloaded the data — for this dataset, the "Last updated" date shown on this repo. Most users of the joined dataset need the **"Based on"** form, since the amendment history is derived rather than reproduced.
265
+
266
+ ---
267
+
268
+ ## Source & Licensing
269
+
270
+ **Source:** [Federal Register of Legislation](https://www.legislation.gov.au) (legislation.gov.au), © Commonwealth of Australia.
271
+
272
+ All content on the Federal Register of Legislation is provided under the [Creative Commons Attribution 4.0 International licence (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/), **with the exception of the Commonwealth Coat of Arms and any material identified as third-party copyright**. Neither is reproduced in this dataset.
273
+
274
+ The licence permits commercial use, redistribution and adaptation, provided the attribution requirements above are met. This structured compilation is published by [SimpleLex](https://huggingface.co/simplelex) under the same CC BY 4.0 terms.
275
+
276
+ The amendment-history notes are **reconstructed in our own wording from the FRL's Crown-copyright compilation endnotes** — deliberately, so that no third-party commercial history notes are reproduced.
277
+
278
+ ---
279
+
280
+ ## Citation
281
+
282
+ ```bibtex
283
+ @dataset{simplelex_au_tax_legislation_2026,
284
+ author = {SimpleLex},
285
+ title = {Australian Tax Legislation \& Amendment History},
286
+ year = {2026},
287
+ publisher = {Hugging Face},
288
+ url = {https://huggingface.co/datasets/simplelex/Australian-Tax-Legislation-and-Amendment-History},
289
+ note = {Based on content from the Federal Register of Legislation,
290
+ https://www.legislation.gov.au, CC BY 4.0}
291
+ }
292
+ ```
293
+
294
+ ---
295
+
296
+ ## Terms of Service
297
+
298
+ **Last updated:** July 2026
299
+
300
+ ### What this product is
301
+
302
+ A structured dataset of the principal Acts administered by the Australian Taxation Office, together with reconstructed per-section amendment histories, sourced from the Federal Register of Legislation (legislation.gov.au) and compiled into machine-readable CSV and NDJSON format.
303
+
304
+ ### Permitted use
305
+
306
+ You may use this dataset for any lawful purpose, including research, analysis, building applications, and commercial projects. You do not need to ask permission. You **do** need to carry the FRL attribution wording set out above when redistributing the source content — that requirement comes from the Commonwealth's licence, not from us.
307
+
308
+ ### Source material and copyright
309
+
310
+ The underlying legislation is © Commonwealth of Australia, published under the [Creative Commons Attribution 4.0 licence](https://creativecommons.org/licenses/by/4.0/), excluding the Commonwealth Coat of Arms and any third-party copyright material. The Commonwealth retains copyright in the original materials. This dataset is a structured compilation and does not claim copyright in the original source material.
311
+
312
+ ### Not legal or tax advice
313
+
314
+ Nothing in this dataset constitutes legal or tax advice. It is a reproduction and restructuring of publicly available legislation, provided for informational purposes only. Always consult a registered tax agent or legal professional for advice about your specific situation.
315
+
316
+ ### Accuracy and currency
317
+
318
+ We make no warranties about the completeness, accuracy, or currency of the data. Legislation is amended continuously and a compilation may be superseded at any time. The authoritative text is the one published at [legislation.gov.au](https://www.legislation.gov.au) — always verify there for official or time-sensitive purposes.
319
+
320
+ ### No liability
321
+
322
+ To the maximum extent permitted by Australian law, simplelex accepts no liability for any direct, indirect, or consequential loss arising from use of or reliance on this dataset.
323
+
324
+ ### Changes
325
+
326
+ We may update these terms at any time. Continued use of the dataset following an update constitutes acceptance of the revised terms.
327
+
328
+ ---
329
+
330
+ ## Support the Project
331
+
332
+ This dataset is free. If it saves you time on data engineering, a coffee is appreciated:
333
+
334
+ **[☕ Buy Me a Coffee](https://buymeacoffee.com/simplelex)**