simplelex commited on
Commit
4e426f9
·
verified ·
1 Parent(s): 81fe189

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +289 -0
README.md CHANGED
@@ -1,3 +1,292 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: cc-by-3.0
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - law
4
+ - tax
5
+ - australia
6
+ - rag
7
+ - nlp
8
+ - legal
9
+ - finance
10
+ - ato
11
+ - ATOLaw
12
+ - taxation
13
+ - rulings
14
+ - advice
15
+ language:
16
+ - en
17
  license: cc-by-3.0
18
+ pretty_name: ATO Tax Legal Rulings — Structured AI Dataset
19
+ size_categories:
20
+ - 10K<n<100K
21
  ---
22
+ # Australian Taxation Office Legal Database — Machine-Readable
23
+
24
+ **60,000+ ATO rulings, determinations, and private advice. Structured CSV. RAG-ready on day one.**
25
+
26
+ The ATO Legal Database spans 15 years of Australian tax law — private advice, interpretative decisions, public rulings, and compliance guidelines. It's all public. It's all messy HTML. Getting it into a format an LLM can actually use takes weeks of data engineering.
27
+
28
+ This dataset skips that. Every document is one CSV row. Every logical section is its own column. Source URLs included.
29
+
30
+ > If this dataset saves you time, consider supporting the project:
31
+ >
32
+ > **[☕ Buy Me a Coffee](https://buymeacoffee.com/simplelex)**
33
+ ---
34
+
35
+ ## Contents
36
+
37
+ - [Dataset Splits](#dataset-splits)
38
+ - [Quick Start](#quick-start)
39
+ - [Schema](#schema)
40
+ - [Edited Private Advice](#1-edited-private-advice-edited_private_advice)
41
+ - [ATO Interpretative Decisions](#2-ato-interpretative-decisions-ato_interpretative_decisions)
42
+ - [Public Rulings & Determinations](#3-public-rulings--determinations-public_rulings)
43
+ - [Practical Compliance Guidelines](#4-practical-compliance-guidelines-practical_compliance_guidelines)
44
+ - [Use Cases](#use-cases)
45
+ - [Support the Project](#support-the-project)
46
+ - [Source & Licensing](#source--licensing)
47
+ - [Citation](#citation)
48
+ - [Terms of Service](#terms-of-service)
49
+ - [Privacy Policy](#privacy-policy)
50
+ - [Refund Policy](#refund-policy)
51
+
52
+ ---
53
+
54
+ ## Dataset Splits
55
+
56
+ | Split | Document Type | Est. Documents | Coverage |
57
+ |---|---|---|---|
58
+ | `edited_private_advice` | Edited Private Advice (EPA) — all years in one file | ~50,000 | 2011–present |
59
+ | `ato_interpretative_decisions` | ATO Interpretative Decisions (ATO ID) | ~10,000 | All years |
60
+ | `public_rulings` | Public Rulings & Determinations | ~2,000 | All years |
61
+ | `practical_compliance_guidelines` | Practical Compliance Guidelines (PCG) | ~200 | All years |
62
+
63
+ ---
64
+
65
+ ## Quick Start
66
+
67
+ ```python
68
+ import pandas as pd
69
+ # Load one split
70
+ df = pd.read_csv("edited_private_advice_all.csv")
71
+ # Filter to active (non-archived) documents
72
+ active = df[df["Is_Archived"] == False]
73
+ print(active[["Authorisation_Number", "Subject", "Date_of_Advice"]].head())
74
+ ```
75
+
76
+ Multi-value fields (legislative references, ruling periods, related documents) use ` | ` as the internal delimiter:
77
+
78
+ ```python
79
+ # Explode pipe-delimited legislative references into one row per provision
80
+ provisions = (
81
+ active["Relevant_Legislative_Provisions"]
82
+ .str.split(" | ")
83
+ .explode()
84
+ .str.strip()
85
+ .value_counts()
86
+ )
87
+ print(provisions.head(10))
88
+ ```
89
+
90
+ ---
91
+
92
+ ## Schema
93
+
94
+ ### Encoding conventions
95
+
96
+ | Convention | Detail |
97
+ |---|---|
98
+ | **Multi-value delimiter** | ` \| ` (space-pipe-space) within a single cell |
99
+ | **Empty values** | Empty string `""` — never `NULL` or `N/A` |
100
+ | **Booleans** | `True` / `False` |
101
+ | **Dates** | Verbatim as published by the ATO — no normalisation |
102
+
103
+ ---
104
+
105
+ ### 1. Edited Private Advice (`edited_private_advice`)
106
+
107
+ Private rulings issued to individual taxpayers, anonymised and edited for publication.
108
+
109
+ | Column | Type | Nullable | Description |
110
+ |---|---|---|---|
111
+ | `Authorisation_Number` | string | No | Primary key. ATO-assigned identifier, e.g. `1-2ABCDEF`. |
112
+ | `Date_of_Advice` | string | Yes | Date the private advice was issued, e.g. `1 July 2024`. Blank for older documents. |
113
+ | `Subject` | string | Yes | Single-sentence topic description, e.g. `Capital gains tax — main residence exemption`. |
114
+ | `Ruling` | string | Yes | All Q&A pairs concatenated: `Q1: [text] \| A1: [text] \| Q2: [text] \| A2: [text]`. |
115
+ | `Ruling_Period` | string | Yes | Income years the ruling applies to: `Year ending 30 June 20XX \| Year ending 30 June 20XX`. |
116
+ | `Date_Scheme_Commenced` | string | Yes | Date the relevant arrangement commenced. Blank when not stated. |
117
+ | `Relevant_Facts_and_Circumstances` | string | Yes | Full facts section, collapsed to single-space prose. |
118
+ | `Relevant_Legislative_Provisions` | string | Yes | Act/section references, e.g. `ITAA 1997 s104-10 \| ITAA 1997 s116-20`. |
119
+ | `Reasons_for_Decision` | string | Yes | Summary plus all sub-headings: `Summary: [text] \| Detailed Reasoning - [Sub-heading]: [text]`. |
120
+ | `Is_Archived` | boolean | No | `True` if the document carries an archival disclaimer. |
121
+ | `Source_URL` | string | No | Full URL, e.g. `https://www.ato.gov.au/law/view/document?docid=AEA/1-2ABCDEF`. |
122
+
123
+ ---
124
+
125
+ ### 2. ATO Interpretative Decisions (`ato_interpretative_decisions`)
126
+
127
+ Edited summaries of Tax Office internal decisions, released under FOI obligations.
128
+
129
+ | Column | Type | Nullable | Description |
130
+ |---|---|---|---|
131
+ | `ATO_ID_Number` | string | No | Primary key, e.g. `ATO ID 2010/101`. |
132
+ | `Status` | string | Yes | FOI/editorial status note as published. |
133
+ | `Title` | string | Yes | Short title of the decision. |
134
+ | `Issue` | string | Yes | The question put to the ATO. |
135
+ | `Decision` | string | Yes | The ATO's answer. |
136
+ | `Facts` | string | Yes | Relevant facts and circumstances. |
137
+ | `Reasons_for_Decision` | string | Yes | Reasoning supporting the decision. |
138
+ | `Date_of_Decision` | string | Yes | Date the decision was made, e.g. `2010/06/15`. |
139
+ | `Year_of_Income` | string | Yes | Income year to which the decision relates. |
140
+ | `Legislative_References` | string | Yes | Pipe-separated act/section references. |
141
+ | `Related_Public_Rulings_and_Determinations` | string | Yes | Related TR/TD/IT references, pipe-separated. |
142
+ | `Related_ATO_Interpretative_Decisions` | string | Yes | Related ATO ID numbers, pipe-separated. |
143
+ | `Subject_References` | string | Yes | ATO subject taxonomy tags, pipe-separated. |
144
+ | `Business_Line` | string | Yes | ATO business line that issued the decision. |
145
+ | `Is_Archived` | boolean | No | `True` if the document is archived/superseded. |
146
+ | `Source_URL` | string | No | Full URL, e.g. `https://www.ato.gov.au/law/view/document?docid=AID/2010/101`. |
147
+
148
+ ---
149
+
150
+ ### 3. Public Rulings & Determinations (`public_rulings`)
151
+
152
+ Binding public rulings (TR, TD, IT, CR, PR) and legislative instruments issued by the Commissioner.
153
+
154
+ | Column | Type | Nullable | Description |
155
+ |---|---|---|---|
156
+ | `Document_Reference` | string | No | Primary key, e.g. `TR 2024/1`. |
157
+ | `Document_Type` | string | No | Full type name, e.g. `Ruling`, `Determination`. |
158
+ | `Document_Type_Code` | string | No | Short code: `TR`, `TD`, `IT`, `CR`, `PR`, etc. |
159
+ | `Title` | string | Yes | Full document title. |
160
+ | `Status` | string | Yes | `Final`, `Draft`, `Withdrawn`. |
161
+ | `Date_of_Issue` | string | Yes | Publication date, e.g. `1 July 2024`. |
162
+ | `Date_of_Effect` | string | Yes | Date from which the ruling applies. |
163
+ | `Date_of_Withdrawal` | string | Yes | Withdrawal date, if applicable. |
164
+ | `What_This_Ruling_Is_About` | string | Yes | Scope statement from the document. |
165
+ | `Class_of_Entities_or_Scheme` | string | Yes | Who or what the ruling applies to. |
166
+ | `Ruling` | string | Yes | The operative ruling paragraphs. |
167
+ | `Examples` | string | Yes | Worked examples from the ruling. |
168
+ | `Appendix_Explanation` | string | Yes | Explanatory appendix text. |
169
+ | `Other_Appendices` | string | Yes | Any additional appendices. |
170
+ | `Previous_Rulings` | string | Yes | Documents this ruling replaces, pipe-separated. |
171
+ | `Related_Rulings` | string | Yes | Related ATO publications, pipe-separated. |
172
+ | `Legislative_References` | string | Yes | Act/section references, pipe-separated. |
173
+ | `Case_References` | string | Yes | Court/tribunal cases cited, pipe-separated. |
174
+ | `Subject_References` | string | Yes | ATO subject taxonomy tags, pipe-separated. |
175
+ | `ATO_References` | string | Yes | Internal ATO reference numbers. |
176
+ | `Is_Withdrawn` | boolean | No | `True` if the ruling has been withdrawn. |
177
+ | `Source_URL` | string | No | Full URL, e.g. `https://www.ato.gov.au/law/view/document?docid=TR/TR_2024/1`. |
178
+
179
+ ---
180
+
181
+ ### 4. Practical Compliance Guidelines (`practical_compliance_guidelines`)
182
+
183
+ Guidelines explaining how the ATO will administer specific areas of tax law, including safe harbours.
184
+
185
+ | Column | Type | Nullable | Description |
186
+ |---|---|---|---|
187
+ | `PCG_Number` | string | No | Primary key, e.g. `PCG 2020/2`. |
188
+ | `Document_Type` | string | No | `Final PCG` or `Draft PCG`. |
189
+ | `Title` | string | Yes | Full document title. |
190
+ | `Status` | string | Yes | `Current`, `Withdrawn`, `Draft`. |
191
+ | `Date_of_Issue` | string | Yes | Publication date. |
192
+ | `Date_of_Effect` | string | Yes | Date from which the guideline applies. |
193
+ | `Date_of_Withdrawal` | string | Yes | Withdrawal date, if applicable. |
194
+ | `Replaces` | string | Yes | Predecessor document(s), e.g. `PS LA 2011/18`. |
195
+ | `Related_Rulings_and_Determinations` | string | Yes | Related ATO publications, pipe-separated. |
196
+ | `Legislative_References` | string | Yes | Act/section references, pipe-separated. |
197
+ | `Summary` | string | Yes | One-paragraph executive summary. |
198
+ | `Purpose_and_Scope` | string | Yes | Who the guideline applies to and why. |
199
+ | `Background` | string | Yes | Context and policy history. |
200
+ | `Compliance_Approach` | string | Yes | The ATO's stated enforcement stance, including safe harbour thresholds. |
201
+ | `Examples` | string | Yes | Worked examples from the document. |
202
+ | `Appendices` | string | Yes | Appendix content. |
203
+ | `Other_Sections` | string | Yes | Any additional named sections. |
204
+ | `Compendium_Reference` | string | Yes | Reference to associated ruling compendium, if any. |
205
+ | `Is_Archived` | boolean | No | `True` if the document is archived. |
206
+ | `Is_Draft` | boolean | No | `True` if the document is a draft. |
207
+ | `Source_URL` | string | No | Full URL, e.g. `https://www.ato.gov.au/law/view/document?docid=PCG/PCG_2020/2`. |
208
+
209
+ ---
210
+
211
+ ## Use Cases
212
+
213
+ - **RAG pipelines** — each row is a self-contained retrieval unit; chunk on `Ruling`, `Reasons_for_Decision`, or `Compliance_Approach`
214
+ - **Legal NLP** — classification, summarisation, and named-entity recognition on Australian tax law
215
+ - **Legislative graph construction** — explode `Legislative_References` to build provision co-citation networks
216
+ - **Compliance tooling** — filter on `Document_Type_Code` + `Is_Withdrawn == False` to surface current binding obligations
217
+
218
+ ---
219
+
220
+ ## Support the Project
221
+
222
+ This dataset is free. If it saves you time on data engineering, a coffee is appreciated:
223
+
224
+ **[☕ Buy Me a Coffee](https://buymeacoffee.com/simplelex)**
225
+
226
+ ---
227
+
228
+ ## Source & Licensing
229
+
230
+ Data sourced from the [ATO Legal Database](https://www.ato.gov.au/single-page-applications/legaldatabase#Law) (© Commonwealth of Australia). ATO public legal documents are made available under the [Creative Commons Attribution 3.0](https://creativecommons.org/licenses/by/3.0/) licence. This structured dataset is published by [SimpleLex](https://huggingface.co/simplelex) under the same terms.
231
+
232
+ ---
233
+
234
+ ## Citation
235
+
236
+ ```bibtex
237
+ @dataset{simplelex_ato_rulings_2026,
238
+ author = {SimpleLex},
239
+ title = {ATO Tax Legal Rulings — Structured AI Dataset},
240
+ year = {2026},
241
+ publisher = {Hugging Face},
242
+ url = {https://huggingface.co/datasets/simplelex/Aussie-Tax-Legal-Database}
243
+ }
244
+ ```
245
+
246
+ ---
247
+
248
+ ## Terms of Service
249
+
250
+ **Last updated:** May 2026
251
+
252
+ ### What this product is
253
+
254
+ The Aussie Tax Legal Database is a structured dataset of publicly available legal documents
255
+ published by the Australian Taxation Office (ATO) at ato.gov.au. Documents include Edited
256
+ Private Advice, Public Rulings, Determinations, ATO Interpretive Decisions, and Practical
257
+ Compliance Guidelines, compiled into machine-readable CSV format.
258
+
259
+ ### Permitted use
260
+
261
+ You may use this dataset for any lawful purpose, including research, analysis, building
262
+ applications, and commercial projects. You do not need to ask permission. Attribution is
263
+ appreciated but not required for the compilation itself.
264
+
265
+ ### Source material and copyright
266
+
267
+ The underlying ATO documents are published under the
268
+ [Creative Commons Attribution 3.0 Australia licence](https://creativecommons.org/licenses/by/3.0/au/deed.en).
269
+ The ATO retains copyright in the original documents. This dataset is a structured compilation
270
+ and does not claim copyright in the original source material.
271
+
272
+ ### Not legal or tax advice
273
+
274
+ Nothing in this dataset constitutes legal or tax advice. Documents are reproductions of publicly
275
+ available ATO materials provided for informational purposes only. Always consult a registered tax
276
+ agent or legal professional for advice about your specific situation.
277
+
278
+ ### Accuracy and currency
279
+
280
+ We make no warranties about the completeness, accuracy, or currency of the data. ATO documents
281
+ may be updated, withdrawn, or replaced after the dataset was last scraped. Always verify against
282
+ the [ATO Legal Database](https://www.ato.gov.au/law/) for official or time-sensitive purposes.
283
+
284
+ ### No liability
285
+
286
+ To the maximum extent permitted by Australian law, simplelex accepts no liability for any direct,
287
+ indirect, or consequential loss arising from use of or reliance on this dataset.
288
+
289
+ ### Changes
290
+
291
+ We may update these terms at any time. Continued use of the dataset following an update
292
+ constitutes acceptance of the revised terms.