San Francisco Open Legislation Civic Hack Night is taking place 7 August 2013 in San Francisco, California, USA.
The Twitter hashtag for the event seems to be #openlegislation
Online discussion about the event is taking place in a Google+ Hangout.
One product of the event appears to be: San Francisco City Administrative Code Browser.
Here is a description of the event:
Join the Mayor’s Office of Civic Innovation, sf.citi, GitHub, and Code for America’s SF Brigade for a special hack night focused on Open Legislation!
5:45 pm Arrive, get settled, grab pizza
6:00 pm Introduction and Team Formation
6:30 pm Hacking (GitHub will be there to help!)
8:30 pm Wrap up and share out
9:00 pm Event Ends
Participants will be invited to attend a recognition ceremony on August 9th at 5 pm at City Hall
What’s Open Legislation?
SF will be one of the first cities to officially release its legislative codes in a technologist-friendly format as Open Data; for now, the data will be in the form of a “snapshot” of the most up to date legislative code, but the city is currently working with its publisher to automate the process by which the code will be pushed to the portal as it is updated. In the future, this will allow platforms like GitHub to routinely download the code and enable developers to track changes over time, create deeper visualizations, etc. For the hack night, the city codes will be available in an RTF or HTML format ready for people to play with.
What can I work on at the hackathon?
While we do not know what specific uses or applications will be generated as a result of this effort, we anticipate the emergent technologies will increase overall accessibility of the administrative code and uncover new insights. Examples include visualizations of changes of the legal code over time, identification of arcane legislation that needs revision, identification of what the “hot” areas of legislative code (those that undergo constant revision ) are, etc.[…]
What to Prepare: At the start of the hackathon, lead OpenGov developer Chris Birk will give a quick rundown of how we have built off the awesome open source State Decoded project to create Open Law Cities. Chris put together a handy “homework” assignment for hackers attending (below).
Check out how we parsed the Municipal Code of Chicago
Parse the `AdminCode.TXT` file into separate files for each section according to the StateDecoded specification
Separate the content based on a regex matching ‘CHAPTER #:’ (some chapters also have letters following the chapter number). Regex may be something like ‘^CHAPTER\s(\d+[A-Z]*):\s*$’
Separate the content based on a regex matching ‘SEC. #.#. [The Section Title]‘. Regex may be something like ‘^SEC. (\d+\.\d+-?\d*\.)\s(.*)$’
Parse the section content into subsections based on matching the beginning of each line (ie. a, 1, A, etc.) and save the line identifier as the section prefix.
Save an XML file for each section with the chapter information and section information included as specified.
Selected resources related to the event are linked in the comments to this post.