Skip to main content

Tax Court Opinion Search

A small desktop GUI for searching the full text of U.S. Tax Court opinions (1995 to present, updated monthly) — no coding required.

Features

  • Search across all opinions with plain text or a full regex pattern
  • Plain-text search supports multiple terms (AND logic), "quoted phrases" for exact word sequences, and a -term prefix to exclude opinions containing that term
  • Matching is case-insensitive
  • Choose how many characters of surrounding context to show before/after each match
  • Results — including date, opinion type, docket number, judge, and taxpayer name for plain-text searches — are written to a text file that opens automatically when the search finishes

Installation

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
uv tool install tax-court-opinion-search
tc-search

The first command installs uv, a fast Python package/tool manager. Already have Python set up your own way? pip install tax-court-opinion-search works too, as long as tc-search ends up on your PATH.

The first time tc-search runs, it automatically downloads the opinion dataset (~180MB) from Hugging Face. That download only happens once — new opinions are added to the dataset monthly, but tc-search won't pick them up on its own. Run tax-court-opinion-search download-data any time to pull the latest version.

Usage

Fill in exactly one of the two search fields, then press Enter or click Search:

  • Regex Pattern — a standard Python regular expression, matched against each opinion's text.
  • Search Term(s) — one or more words to match, without regex syntax:
    • Every term must be present in an opinion for it to match (AND logic).
    • Wrap multiple words in quotes (e.g. "innocent spouse") to require that exact sequence.
    • Prefix a term with - (e.g. -partnership) to exclude opinions containing it.

Use the Number of characters before/after fields to control how much surrounding context is shown around each match (300 characters on each side by default).

When the search finishes, the results file opens automatically. It's also saved under your user data folder (e.g. %LOCALAPPDATA%\tax_court_opinion_search\tax_court_opinion_search\output\results.txt on Windows) if you want to find it again later.

Data

The dataset lives on Hugging Face and contains the text of 14,789 Tax Court opinions, with new opinions added monthly. The Tax Court publishes opinions as PDFs; these were converted to text and compiled into a single parquet file, with one row per opinion including its date, opinion type, number of pages, docket number, judge, taxpayer's name, and full text.

Older opinions were converted using OCR, and text for opinions from 2009–2012 in particular is less accurate than other years.

License

MIT

Release files for tax-court-opinion-search 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tax-court-opinion-search 0.1.9
File Size Uploaded
tax_court_opinion_search-0.1.9.tar.gz 57.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tax-court-opinion-search 0.1.9
File Interpreter ABI Platform
tax_court_opinion_search-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 64.4 kB

Release files / tax_court_opinion_search-0.1.9.tar.gz

Download URL tax_court_opinion_search-0.1.9.tar.gz
Size 57.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3365308a874b07df010f7e1d25a165078b99cae3b831d52caf60156dd91421a2
BLAKE2b-256 checksum
How to use checksums
a6b6d20fca159bfd0d33843473e3dc7ef2c00e44d47d5ce0b0f319817c595719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / tax_court_opinion_search-0.1.9-py3-none-any.whl

Download URL tax_court_opinion_search-0.1.9-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6aa699a1c00089b84aefbf09f5062be72b87a0c1c2eefef7dc8cc09aa4b67f18
BLAKE2b-256 checksum
How to use checksums
b092b44a32a7cb7ed48dd7373df34053b29c560f49f9819a6693cbb10571642f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page