Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 873 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 873 Bytes

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.