A collection of regular expressions to identify references to state laws.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
California.md
Delaware.md
Florida.md
Illinois.md
LICENSE
Louisana.md
Maryland.md
Michigan.md
New York.md
Ohio.md
Oklahoma.md
Oregon.md
Pennsylvania.md
README.md
Texas.md
Virginia.md
Washington-DC.md
Washington.md
Wyoming.md

README.md

Law Identifier

A collection of regular expressions to identify references to state laws within the United States.

There is one file for each state, containing both a regular expression and a textual description of what that regular expression does, and how it was derived. These are, by design, naïve regular expressions. For example, they make no attempt to recognize that § 18.2-100–18.2-105 describes a range of six sections in all, but instead would only pick up on § 18.2-100 and § 18.2-105.

Inevitable, some states are going to use identifiers that are not amenable to parsing with a single PCRE, or that require something more advanced than a regular expression in order to get a high rate of matches. A best effort will be made for every state.

TO DO

  • Create a JSON file containing all PCREs, with the state's abbreviation serving as the key.