Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Library to parse internal citations in the U.S. Code
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
autoparser.py
namedacts.pkl
namedactsabbr.pkl
splithtml.py
usc-regex.txt

README.md

uscites

Library to parse internal citations in the U.S. Code

License: MIT (http://www.opensource.org/licenses/mit-license.php)

This library is used to parse the internal citations within the U.S. Code on tax26.com, a site for tax law professionals to navigate the Code and regulations.

The regex are in the file usc-regex.txt, and are used by the file autoparse.py in a number of passes through each section, to identify many kinds of citations in the Code.

The .pkl files contain a list of all of the Named Acts, since many of the Code citations are to acts (e.g. section XXX of the Internal Revenue Act of 1986). We do not have a comprehensive solution to linking these references to their sources yet.

If you have questions on this library, or are passionate about linked legislative data, feel free to contact aih at tabulaw dot com. No guarantees I remember how any given regex works, however.

Something went wrong with that request. Please try again.