TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

French civil code now on GitHub

453 点作者 Remiii大约 10 年前

34 条评论

gadders大约 10 年前
In contrast, the list of Wales-only laws is (or used to be) maintained by one French woman at a Welsh university:<p>&quot;But any queries may well be referred to Marie Navarro, the editor and chief researcher of Wales Legislation Online.<p>Like everyone in Wales, the judges use this website when they need to find out whether the law in Wales on a particular topic is different from English law.<p>The database is not run by the judiciary, by the Welsh Assembly Government or by one of the commercial publishers that pride themselves on keeping their subscribers up to date with English law.<p>It was set up in 1999 by Cardiff University Law School, and is run by Miss Navarro, a French lawyer who came to Wales on a European scholarship 13 years ago and decided to stay.&quot;<p><a href="http:&#x2F;&#x2F;www.bbc.co.uk&#x2F;news&#x2F;uk-12674539" rel="nofollow">http:&#x2F;&#x2F;www.bbc.co.uk&#x2F;news&#x2F;uk-12674539</a>
评论 #9295731 未加载
评论 #9295284 未加载
thomasbachem大约 10 年前
All German federal laws and regulations are here: <a href="https:&#x2F;&#x2F;github.com&#x2F;bundestag&#x2F;gesetze" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bundestag&#x2F;gesetze</a><p>I do especially like the GitHub avatar: <a href="https:&#x2F;&#x2F;avatars1.githubusercontent.com&#x2F;u&#x2F;1994383" rel="nofollow">https:&#x2F;&#x2F;avatars1.githubusercontent.com&#x2F;u&#x2F;1994383</a> ;)
评论 #9295296 未加载
评论 #9295249 未加载
评论 #9295357 未加载
andyjohnson0大约 10 年前
This github repo seems to treat the French legal code as a flat text file. Which is useful, but I&#x27;m guessing doesn&#x27;t do a good job of capturing <i>structural</i> changes to the legal code. Is this fair?<p>So I&#x27;m curious: how do legal scholars and practising lawyers track changes to legal systems over time? Do they use trees, DAGs, or something else? Do they have concepts similar to change dependencies and regressions? What special concepts or techniques does the domain require?<p>The UK has legislation.gov.uk [1], which seems to treat acts of the UK parliament as some kind of structured objects. Amendments can be accessed, and there is a timeline feature (for example [2]) that shows changes over time. It does have the feeling of being incomplete, though, and lagging behind changes as they happen. So is there some other, canonical, data source that this site tracks? What is it?<p>Anyone knowledgeable care to comment?<p>[1] <a href="http:&#x2F;&#x2F;www.legislation.gov.uk&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.legislation.gov.uk&#x2F;</a><p>[2] <a href="http:&#x2F;&#x2F;www.legislation.gov.uk&#x2F;ukpga&#x2F;1974&#x2F;39&#x2F;section&#x2F;21?timeline=true" rel="nofollow">http:&#x2F;&#x2F;www.legislation.gov.uk&#x2F;ukpga&#x2F;1974&#x2F;39&#x2F;section&#x2F;21?timel...</a>
评论 #9295695 未加载
评论 #9299868 未加载
steeve大约 10 年前
I just woke up and wow. Well, I&#x27;d be happy to answer any questions you might have of course.
评论 #9295558 未加载
评论 #9296445 未加载
评论 #9295442 未加载
rouxrc大约 10 年前
Nioce job but it&#x27;s too bad there&#x27;s no licence and the building code is missing.<p>It&#x27;s also not really new, Seb35 already did a great job on this previously as free software: - <a href="https:&#x2F;&#x2F;github.com&#x2F;Seb35&#x2F;CPI" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Seb35&#x2F;CPI</a> - <a href="https:&#x2F;&#x2F;github.com&#x2F;Seb35&#x2F;Archeo-Lex" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Seb35&#x2F;Archeo-Lex</a> - <a href="http:&#x2F;&#x2F;blog.seb35.fr&#x2F;billet&#x2F;Arch%C3%A9o-Lex%2C-Pure-Histoire-de-la-Loi-fran%C3%A7aise%2C-pour-%C3%A9tudier-son-%C3%A9volution" rel="nofollow">http:&#x2F;&#x2F;blog.seb35.fr&#x2F;billet&#x2F;Arch%C3%A9o-Lex%2C-Pure-Histoire...</a><p>Also <a href="http:&#x2F;&#x2F;www.lafabriquedelaloi.fr" rel="nofollow">http:&#x2F;&#x2F;www.lafabriquedelaloi.fr</a> proposes git versioning of the parliamlentary process for each bills: <a href="http:&#x2F;&#x2F;sunlightfoundation.com&#x2F;blog&#x2F;2014&#x2F;06&#x2F;25&#x2F;opengov-voices-how-gitlaw-turns-the-french-parliamentary-process-into-open-data&#x2F;" rel="nofollow">http:&#x2F;&#x2F;sunlightfoundation.com&#x2F;blog&#x2F;2014&#x2F;06&#x2F;25&#x2F;opengov-voices...</a>
highCs大约 10 年前
<i>Finalement, le Code Civil, c&#x27;est une partie du code source de la France. Et le code source, ca va sur un source control. Point.</i><p>Which means - correct me if I&#x27;m wrong: &quot;The civil code is like a part of the source code of France. And then, it should be in a source control.&quot;
评论 #9295058 未加载
评论 #9296292 未加载
BertrandBordage大约 10 年前
I already made something similar (but more user-friendly) a few years ago using Django: <a href="https:&#x2F;&#x2F;criminocorpus.org&#x2F;fr&#x2F;legislation&#x2F;civil&#x2F;" rel="nofollow">https:&#x2F;&#x2F;criminocorpus.org&#x2F;fr&#x2F;legislation&#x2F;civil&#x2F;</a>.<p>And there are similar diff possibilities: <a href="https:&#x2F;&#x2F;criminocorpus.org&#x2F;fr&#x2F;legislation&#x2F;versions&#x2F;689&#x2F;1&#x2F;diff&#x2F;pdf&#x2F;" rel="nofollow">https:&#x2F;&#x2F;criminocorpus.org&#x2F;fr&#x2F;legislation&#x2F;versions&#x2F;689&#x2F;1&#x2F;diff...</a> :)
评论 #9295191 未加载
nathanappere大约 10 年前
Interesting!<p>This looks like a demo day project of Le Wagon, a french bootcamp in Paris (I found a link from their demo day <a href="https:&#x2F;&#x2F;youtu.be&#x2F;hHPOV8vz5Q8?t=503" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;hHPOV8vz5Q8?t=503</a> ).<p>Where you part of that bootcamp too ? (It seems to reuse the same &quot;Nul n&#x27;est cense ignorer la loi.&quot; gimmick!)
mintplant大约 10 年前
I need to keep in practice with my French, so I&#x27;ve translated the README below. Let me know if I got anything wrong.<p>------<p><i>The French Civil Code, in Git</i><p><i>Introduction</i><p>Here is a little hack, the result of an afternoon of code: the Civil Code in Git.<p>If one considers the law as a set of texts modified by the various assemblies of the state, one can consider them as a set of text files created collaboratively.<p>The members of government, and the various assemblies, work in collaboration on these files, which, once voted for, are written into the Code (here the Civil Code).<p>But there is another category of people who, for fifty years now, have worked on text files collaboratively, and excel at it: developers. They have created extremely effective collaboration and tracking tools for working on source code. The most popular to date is Git.<p>Git not only allows you to view the source at a time T (snapshot) but above all to easily visualize the changes in the source (commits). In the analogy to the Civil Code, this permits the tracking of the changes made by a law.<p>Combine all of this with the Open Source philosophy, and the second part of the analogy is made: the modification of source code in an open and public fashion.<p>Finally, the Civil Code is a part of the source code of France. And source code belongs in source control. Period.<p><i>Example</i><p>Here is for example the commit which authorizes marriage for all: <a href="https:&#x2F;&#x2F;github.com&#x2F;steeve&#x2F;france.code-civil&#x2F;commit&#x2F;b805ecf05a86162d149d3d182e04074ecf72" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;steeve&#x2F;france.code-civil&#x2F;commit&#x2F;b805ecf05...</a><p>This is more readable than, for example (cf <a href="http:&#x2F;&#x2F;www.assemblee-nationale.fr&#x2F;14&#x2F;ta&#x2F;ta0120.asp" rel="nofollow">http:&#x2F;&#x2F;www.assemblee-nationale.fr&#x2F;14&#x2F;ta&#x2F;ta0120.asp</a>):<p>&quot;At article 165 of the same code, the word: &#x27;before&#x27; is replaced by the words: &#x27;during a republican ceremony by&#x27;.&quot;<p><i>Technical Note</i><p>Git dates are based on the Unix epoch (01&#x2F;01&#x2F;1970), changes before these dates are all dated 01&#x2F;01&#x2F;1970, with incremental seconds; the commit message gives the correct date.<p><i>LICENSE</i><p>All files are licensed under Creative Commons (<a href="https:&#x2F;&#x2F;creativecommons.org&#x2F;licenses&#x2F;by&#x2F;4.0&#x2F;" rel="nofollow">https:&#x2F;&#x2F;creativecommons.org&#x2F;licenses&#x2F;by&#x2F;4.0&#x2F;</a>).
评论 #9295169 未加载
评论 #9295142 未加载
评论 #9295257 未加载
评论 #9295153 未加载
return0大约 10 年前
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&#x27;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)
评论 #9295300 未加载
评论 #9295264 未加载
评论 #9295377 未加载
passepartout大约 10 年前
Your licence should be more precise because you cannot put a CC licence on the legal texts, just on your ReadMe file.
评论 #9295509 未加载
zx2c4大约 10 年前
Too bad the date stamps only can go back to 1970-1-1. It&#x27;s neat, though, to be able to flip through the history like this.
评论 #9295140 未加载
评论 #9295055 未加载
svarog大约 10 年前
Do they accept pull requests if I find any bugs?
ptaipale大约 10 年前
What does this offer on top of Legifrance?<p><a href="http:&#x2F;&#x2F;eur-lex.europa.eu&#x2F;n-lex&#x2F;info&#x2F;info_fr&#x2F;index_en.htm" rel="nofollow">http:&#x2F;&#x2F;eur-lex.europa.eu&#x2F;n-lex&#x2F;info&#x2F;info_fr&#x2F;index_en.htm</a><p>(I don&#x27;t know any French and don&#x27;t know the particulars of French legal system that much, so I cannot really assess quickly based on what I can find in the net).
评论 #9295290 未加载
评论 #9295263 未加载
rtpg大约 10 年前
kind of curious as to how this got generated in the first place
评论 #9295319 未加载
评论 #9295070 未加载
评论 #9295240 未加载
jackbravo大约 10 年前
Mexican constitution: <a href="https:&#x2F;&#x2F;github.com&#x2F;ceyusa&#x2F;constitucion-mexicana" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ceyusa&#x2F;constitucion-mexicana</a>
cranium大约 10 年前
I wish all legal proposition was supplied with a diff.
评论 #9295082 未加载
peeters大约 10 年前
This makes me wonder about how legislators deal with merge conflicts. Since new laws are often written as &quot;Act X of 1972 is amended as follows: ...&quot;, I wonder if there are ever cases where two laws are in the House at the same time that would conflict, and how they resolve this. Do they amend the later law once the first has been signed&#x2F;given assent?
评论 #9300167 未加载
cellover大约 10 年前
Now let&#x27;s anarchy-fork!
haosdent大约 10 年前
China civil code is on the way. Github, hold on!
umadrab大约 10 年前
If there&#x27;s some people interested in french law, I did the French constitution in JSON <a href="https:&#x2F;&#x2F;github.com&#x2F;Felixaverlant&#x2F;French-Constitution" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Felixaverlant&#x2F;French-Constitution</a>
gtf21大约 10 年前
This would be a great idea in general for the legislature of any country, to be able to see exactly how and when the law was changed would be valuable for transparency and also research. Commit messages could reference transcripts of the debates surrounding changes.
评论 #9295501 未加载
评论 #9295228 未加载
thesorrow大约 10 年前
This is going fast after the announcement of a new Party proposal here in France (RebootFrance) : <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;RebootFrance" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;RebootFrance</a>
oelmekki大约 10 年前
Very nice! This will make lawmaking in France somewhat more understandable, and not something we hear reported now and then when it&#x27;s deemed newsworthy.<p>One thing that is not mentioned though : will it autoupdate? And if yes, at which rate?
dheera大约 10 年前
What&#x27;s the point of this? Are they taking pull requests?
评论 #9295781 未加载
troels大约 10 年前
A pity they can&#x27;t use dates before epoch.
joshguthrie大约 10 年前
Nice use of git, never thought of that. Who&#x27;s up for other countries law books?
评论 #9295166 未加载
briandear大约 10 年前
Do they accept pull requests?
nraynaud大约 10 年前
I can&#x27;t navigate easily, but I wonder if it goes all the way to Napoleon.
Aaronik大约 10 年前
Can&#x27;t believe there&#x27;re only 5 pull requests :D
sacado2大约 10 年前
That&#x27;s a wonderful effort. Thanks.
t_fatus大约 10 年前
Thank you so much!
b08aa8b0dcfce大约 10 年前
The README is so full of grammatical and spelling errors it obviously wasn&#x27;t written by a French speaker. Urgh.
评论 #9295371 未加载
评论 #9295362 未加载
评论 #9295373 未加载
评论 #9295364 未加载
评论 #9295374 未加载
评论 #9295372 未加载
wishiknew大约 10 年前
Couldn&#x27;t this have been done without taking gay marriage as the first example? Or does IT <i>always</i> need to go hand in hand with unconditional progressism?
评论 #9295088 未加载
评论 #9295237 未加载