Live data from Hacker News

French civil code now on GitHub

github.com

71–80 of 126 posts

Re: French civil code now on GitHub

#72

The README is so full of grammatical and spelling errors it obviously wasn't written by a French speaker. Urgh.

Oh no, this kind of grammatical errors show that it's clearly a native French speaker. We French suck at our own language - partly because it is fairly complicated, and partly because people don't bother learning.

Re: French civil code now on GitHub

#73

The README is so full of grammatical and spelling errors it obviously wasn't written by a French speaker. Urgh.

A bit ironic, no? That such a thing, almost exclusively useful for French people, has to come from a non-native speaker. And that the only obviously French comment so far is a critique about the style...

We sure do know how to complain. :)

(slightly unfair, of course---obviously the complaint about grammar had to come from a native speaker; who else would notice it in the first place..?)

Re: French civil code now on GitHub

#75
post #39

Legal documents are particularly bad to place under source control, because most of them already reference the previous code they are replacing. And, since the code is basically readonly what's the point of using github? I think legal documents do need a versioning system, but it would have to take into account the peculiarities of the domain (i.e. have each article as a node and amendments as graph links)

> Legal documents are particularly bad to place under source control, because most of them already reference the previous code they are replacing. And, since the code is basically readonly what's the point of using github?

The code is not readonly at all, each law within the domain covered by the code is an alteration to the code. Individual laws are reified as commits, and the repository tracks the evolution of the code as laws get voted in and applied.

Re: French civil code now on GitHub

#77
post #64
post #59

Earlier quoted context omitted.

Did you take a look at the repo? It doesn't track new laws, it tracks the entire Code Civil and considers each new law a "commit", so it works perfectly. Here, as an example, the commit/law that legalizes same-sex marriage : https://github.com/steeve/france.code-civil/commit/b805ecf05... You can clearly see that the "commit/law" changes the wordings of various files to replace "mother and father" by "parents" and "hu…

I see, that indeed looks like a good example. Does it only work for newly changed laws? i couldnt find any other versioncontrolled articles.

> i couldnt find any other versioncontrolled articles.

Did you look? All markdown files aside from the readme are articles. Or did you mean articles which were altered after their initial creation? https://github.com/steeve/france.code-civil/commits/master/L... is one, it was added in 1803 and modified in 1986 and 2014.

https://github.com/steeve/france.code-civil/commits/a191667d... is also one, with modifications in 1986, 1987, 2007 and 2013.

Re: French civil code now on GitHub

#78
Nioce job but it's too bad there's no licence and the building code is missing.

It's also not really new, Seb35 already did a great job on this previously as free software: - https://github.com/Seb35/CPI - https://github.com/Seb35/Archeo-Lex - http://blog.seb35.fr/billet/Arch%C3%A9o-Lex%2C-Pure-Histoire...

Also http://www.lafabriquedelaloi.fr proposes git versioning of the parliamlentary process for each bills: http://sunlightfoundation.com/blog/2014/06/25/opengov-voices...

Re: French civil code now on GitHub

#79
post #63

Earlier quoted context omitted.

Is this account actually maintained by Bundestag (or other actual piece of state administration), or is it just a mirror? Also, either German law is really mature and stable, or this repository is unmaintained: last commit oin master is Jan 2013. I'd love to see such a repository for the acts in my country, by the way, but the official source is a PDF, and most of the published acts are actually patches to existing (…

The Norwegian laws: https://lovdata.no/info/information_in_english It's a financially independent (it has a "pro" version) non-profit owned by the department of justice and the faculty of law of the University of Oslo. It is an official source and as such laws published there are officially, legally published and it has been that way since 2001. Laws relevant to private citizens are available for free. It's pretty ne…

FWIW french law is also available officially via http://www.legifrance.gouv.fr though that's not exactly sexy. All of the french code (and other sections of french laws) are available for free with full history e.g. http://www.legifrance.gouv.fr/affichCodeArticle.do?cidTexte=...

Re: French civil code now on GitHub

#80
post #40

Earlier quoted context omitted.

The author mention he did it in an afternoon of code, so it's definitely not manually generated : "Voici un petit hack, résultat d'une après-midi de code" I do agree that the technical details would be interesting.

I don't think it's possible to generate a general parser for the Journal Officiel in an afternoon. It would make the author a _very_ efficient worker.

It's probably possible to do that for a crawler of http://www.legifrance.gouv.fr though.
Post reply on HN