Earlier quoted context omitted.
The law can be interpreted as a set of rules matched against an action in a particular context to determine whether said action is legal. Right now lots of people do this manually. Maybe computers can do it better. If computers can do it better, maybe people could focus on writing new laws and refactoring old ones instead of repeatedly interpreting old laws for each case.
RobotWars for Lawyers invariably leading to digitizing the whole judicial process.
The entire US Code is now online in XML
191–200 of 244 posts
Re: The entire US Code is now online in XML
#192Earlier quoted context omitted.
In practice, it probably doesn't make any difference. Assuming, for the sake of argument, that XSD is expressive enough to allow the authors to say what they're trying to say, in an unambiguous way, it's more or less a moot point. RELAX/NG is awesome, sure... but to some extent the "war" between it and XSD is a religious war. Pretty much every popular & widely used language / platform has XSD support... hell, it's so…
The tragic part isn't that the schema is given in XSD but that it's defined in XSD. What I'm lamenting (yes more hyperbole) is that a schema this important wasn't defined in a schema language that had clear semantics and composability rules, fostering reuse and adoption for related domains, of which we would expect there to be many. (Later, of course, the definition could always be extruded into XSD and other popular…
I'm kinda curious to see what can be done with it in terms of transforming to RDF triples myself, but time will tell...
Re: The entire US Code is now online in XML
#193I find it amusing that here in Germany, we have that for years: http://www.gesetze-im-internet.de/ All laws are available in XML, HTML, PDF, etc. The site also provides an RSS feed. In addition, some enthusiasts regularily download stuff from there and apply those to a Git repository: https://github.com/bundestag/gesetze That way, this repository contains not only the current laws, but also the history of how the law…
Here's the post if interested.
Re: The entire US Code is now online in XML
#194Wow. I wonder what -uslm-lc does.
Re: The entire US Code is now online in XML
#195Caveat for for many of us overly rational thinkers: the powers that be deliberately are allowed to 'interpret' this code nondeterministically by many different means including its 'spirit,' admissibility of relevant information, manipulation of venue and participants, apparently even extrajudicial proceedings lately. In short, that allows a lawyer to answer almost any question with "it depends," and start billing.
With respect, only someone who hasn't studied law could say this. Law is complicated and filled with ambiguity because the world is complicated and filled with ambiguity. Unlike lawyers, we can simply will some of that away. We can make an enum which smooshes together disparate phenomena, that feeds a dropdown list and require the customers to use it. We can ignore very rare corner cases and include a comments field.…
True, yet I'm convinced by obvious ambiguity that it's on purpose, to feed the legal industry. That conviction is bolstered by all the "work" Congress does on reviving sunset clauses on laws that had no good reason to sunset.
Re: The entire US Code is now online in XML
#196I'm probably a little late to the party, but I think it's worth mentioning that some of the "XML" looks like this: Wow. I wonder what -uslm-lc does.
Re: The entire US Code is now online in XML
#197Earlier quoted context omitted.
With respect, only someone who hasn't studied law could say this. Law is complicated and filled with ambiguity because the world is complicated and filled with ambiguity. Unlike lawyers, we can simply will some of that away. We can make an enum which smooshes together disparate phenomena, that feeds a dropdown list and require the customers to use it. We can ignore very rare corner cases and include a comments field.…
> Law is complicated and filled with ambiguity because the world is complicated and filled with ambiguity. True, yet I'm convinced by obvious ambiguity that it's on purpose, to feed the legal industry. That conviction is bolstered by all the "work" Congress does on reviving sunset clauses on laws that had no good reason to sunset.
Law's complexity is not by design. Much of case law and legislation is about refactoring existing principles into something simpler.
The complexity of law is emergent from the problem domain. It doesn't require a conspiracy against the public to be that way. It merely requires the existence of a sufficiently large and diverse public.
Re: The entire US Code is now online in XML
#198Earlier quoted context omitted.
It's still recreating a word based diff from a line based diff. See diff.c line 793 for how it works.
It may be doing that conversion, but the conversion works. For example, committing the following text (with line breaks), then joining it all into one line, shows no differences when using 'git diff --word-diff'. Test the first. This will check if reflowing text actually produces git word-diff weirdness, or if it's actually decent. The line does get reproduced on the terminal (a line diff was seen), but no text is sh…
Re: The entire US Code is now online in XML
#199Earlier quoted context omitted.
Remember that diff is an algorithm to generate the smallest set of operations to produce version B from version A, not an accurate reconstruction of what happened. Diff algorithms are also often tuned not try as hard to find the smallest set of changes for larger documents, due to speed concerns.
I did some work & research about diffs when I tried to visualise progression of slovak law. My best attempt was a diff method that would understand the inner structure of the law. I ended up with simple draft but I am sure somebody more competent could look into that.
If nothing prevents you, you ought to throw this up for others to see. Worst comes to worst, no one finds it useful.
Re: The entire US Code is now online in XML
#200Earlier quoted context omitted.
Actually, you wouldn't. This is the US code, not the legislative info :) I actually tried to create this once (with a team behind me, in fact) with what's available or possible with the legislative info. THOMAS theoretically published in XML, but it's missing a lot of info. Not only is this info not published, it's not even stored. They still are literally passing bills around to each other in some cases. You'd have…
The US system of legislative development is quite flawed. There are a lot of places where changes can be made without attribution, emerging from committees without saying who added what. In most Parliamentary democracies you can only propose amendments from one of the two chambers, so any amendment can always be traced to the Parliamentarian who moved it.