Re:Git repository of New Zealand legislation
by caf on Thursday January 24, 2013 @11:05PM
(#5113881)
This is interesting, but really needs to be taken a bit further. For example, the commit https://github.com/Br3nda/legislation/commit/ed9e389c5573c98... adds the Animal Welfare Treatment of Animals Amendment Bill - but the effect of this Bill is actually to amend the Animal Welfare Act 1999. In other words, this Bill is a legal patch, so it should probably be shown as a git branch that contains a commit modifying the Animal Welfare Act 1999 as well as adding the Amendment bill.
As a sidebar, it's interesting that the Statute of Marlborough (1267) is still in force in NZ.
Re:Git repository of New Zealand legislation
by peeters on Thursday January 24, 2013 @11:47PM
(#5114012)
I completely agree. I'd love for somebody to maintain a repository that follows in parallel the real life of a bill. Introducing it to Parliament is like creating a branch, then debating and process can further amend the branch/bill, then passing the bill and submitting it for royal assent is like submitting a pull request.
I'm sick of 3-page bills whose entire purpose is to remove a word or two from existing legislation. A diff is a much more powerful tool of examining the impact of a bill.
Edit: "Aaron's Law" is a good example:
> —Section 1030(e)(6) of title 18, United States Code, is amended by striking "alter;" and inserting the following: "alter, but does not include access in violation of an agreement..."
Re:Git repository of New Zealand legislation
by 6ren on Thursday January 24, 2013 @11:03PM
(#5113873)
Legislation has some similarities to source commits, in that many Acts amend other Acts. Something like: section 3: amend section 4(i) of the so-and-so Act 1958, replacing each occurrence of word A with word B.
It would be nice to store that as git commits, and have the functionality of diff, blame etc.
However, the dependence on the existing format, in terms of case-law, legislation, techniques for handling it, textbooks, articles, not to mention the decades of experience of solicitors, barristers, judges and legislators, make this hard to change. Back-compatibility is important. So the way to do it is to include the present format as meta-information.
Re:Git repository of New Zealand legislation
by mkl on Thursday January 24, 2013 @10:44PM
(#5113828)
While cool, note that this seems to be both incomplete and not up to date. The full list can be viewed with a search like http://www.legislation.govt.nz/all/results.aspx?search=ta_al... and the results are easily spidered - I did it a few years ago and ended up with ~5000 files totalling ~375MB.
Re:Git repository of New Zealand legislation
by tibbon on Friday January 25, 2013 @12:07AM
(#5114068)
I keep wondering why all legislation isn't done in a git-like format. It really seems to be the best platform for being able to attribute and track changes on complex text documents with a large body of contributors.
Re:Git repository of New Zealand legislation
by lloeki on Friday January 25, 2013 @03:43AM
(#5114610)
The problem is not forking and making changes (although you will have trouble using your local version), the problem is making a pull request and having it accepted.
Re:Git repository of New Zealand legislation
by linhat on Friday January 25, 2013 @08:40AM
(#5115300)
Since we are already talking about legislation, how good/bad of a climate does New Zealand's law present for entrepreneurs? Asking because I have been fascinated with the country ever since (and also with it being almost the opposite part of earth when you're from Germany it's the farthest you can possibly get away from home for a change ;-).
Re:Git repository of New Zealand legislation
by CognitiveLens on Friday January 25, 2013 @12:28AM
(#5114125)
Can someone shed some light on the xml format being used here? Is there a standard parser, or something that would make it more human-readable? I'd love it all to be Marked-down.
As a sidebar, it's interesting that the Statute of Marlborough (1267) is still in force in NZ.
I'm sick of 3-page bills whose entire purpose is to remove a word or two from existing legislation. A diff is a much more powerful tool of examining the impact of a bill.
Edit: "Aaron's Law" is a good example:
> —Section 1030(e)(6) of title 18, United States Code, is amended by striking "alter;" and inserting the following: "alter, but does not include access in violation of an agreement..."
Tell me a diff doesn't say that better.
It would be nice to store that as git commits, and have the functionality of diff, blame etc.
However, the dependence on the existing format, in terms of case-law, legislation, techniques for handling it, textbooks, articles, not to mention the decades of experience of solicitors, barristers, judges and legislators, make this hard to change. Back-compatibility is important. So the way to do it is to include the present format as meta-information.
So, any Kiwis around to give some insights?
https://github.com/bundestag/gesetze
Fully converted to markdown and the best:
Second, how are the dates set to 23 years ago, etc?