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.8

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.8
File Size Uploaded
tax_court_opinion_search-0.1.8.tar.gz 57.1 kB Details

Built distribution (wheel)

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

Total release size: 64.4 kB

Release files / tax_court_opinion_search-0.1.8.tar.gz

Download URL tax_court_opinion_search-0.1.8.tar.gz
Size 57.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9460bedf231c9f64b445c27dbeaf30ecbd1aa4d645af198427c48f7678f4439f
BLAKE2b-256 checksum
How to use checksums
7aaec93a94f703147f0560374663d6c8aa53724d84df48a32173a5479744d9ac
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.8-py3-none-any.whl

Download URL tax_court_opinion_search-0.1.8-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1d3659d9c6d0c73cd617138cdb53c8540ba5cdfe12a776565112a197fa6d862
BLAKE2b-256 checksum
How to use checksums
dc7771e9818a1994c513028072673da7d4a7301442c9821a02e7418a9a863be8
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

0.1.9

2 release files

This release

0.1.8 This release

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