TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Git repository of New Zealand legislation

91 pointsby ghewgillover 12 years ago

13 comments

cafover 12 years ago
This is interesting, but really needs to be taken a bit further. For example, the commit <a href="https://github.com/Br3nda/legislation/commit/ed9e389c5573c98ce8e3b7a3a07c614469303da4" rel="nofollow">https://github.com/Br3nda/legislation/commit/ed9e389c5573c98...</a> adds the <i>Animal Welfare Treatment of Animals Amendment Bill</i> - but the effect of this Bill is actually to amend the <i>Animal Welfare Act 1999</i>. 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 <i>Animal Welfare Act 1999</i> as well as adding the Amendment bill.<p>As a sidebar, it's interesting that the <i>Statute of Marlborough (1267)</i> is still in force in NZ.
评论 #5114012 未加载
评论 #5114032 未加载
6renover 12 years ago
Legislation has some similarities to source commits, in that many Acts amend other Acts. Something like: <i>section 3: amend section 4(i) of the so-and-so Act 1958, replacing each occurrence of word A with word B.</i><p>It would be nice to store that <i>as</i> git commits, and have the functionality of diff, blame etc.<p>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.
mklover 12 years ago
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 <a href="http://www.legislation.govt.nz/all/results.aspx?search=ta_all%40act%40regulation_" rel="nofollow">http://www.legislation.govt.nz/all/results.aspx?search=ta_al...</a> and the results are easily spidered - I did it a few years ago and ended up with ~5000 files totalling ~375MB.
melloclelloover 12 years ago
There's so many pull requests I'd like to submit...
tibbonover 12 years ago
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.
pippyover 12 years ago
Now this is cool. If only we could fork it in real life.
评论 #5114610 未加载
linhatover 12 years ago
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 ;-).<p>So, any Kiwis around to give some insights?
评论 #5115669 未加载
janerikover 12 years ago
There exists something similar for the German law:<p><a href="https://github.com/bundestag/gesetze" rel="nofollow">https://github.com/bundestag/gesetze</a><p>Fully converted to markdown and the best:<p><pre><code> You are encouraged to open pull request. Of course only valid legislation voted on by the Bundestag will be merged.</code></pre>
sergiotapiaover 12 years ago
First off, why is this interesting? At least, I find it pretty uninspiring.<p>Second, how are the dates set to 23 years ago, etc?
评论 #5113773 未加载
randartieover 12 years ago
Now we know who to 'blame'
CognitiveLensover 12 years ago
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.
评论 #5114541 未加载
hexasquidover 12 years ago
No tests?
clubhiover 12 years ago
This legislation is poorly written. Plus, we already have US legislation. This seems redundant. Reading it made my eyes bleed.