Hi HN. AI models often get European law wrong, quoting old versions or making up text. Pandex gives them the official text instead.
It covers EU, Germany, France, Netherlands, UK, Austria, Switzerland, Luxembourg and ECHR case law, with every past version of each law. Updated every night.
Works as an MCP server, no key needed:
claude mcp add --transport http pandex https://api.pandex.io/mcp
Exactly, and if you were talking about state law, you wouldn’t call it "US law", "law of the US", "USA law" and so on - you’d specifically mention that it applies to only some specific states.
Also the EU is not a federation and whether the countries' constitutions are "below" EU regulations is "a heated discussion" (whereas US federal law basically always tops state law, they have the Supremacy Clause). If any member state would disagree with EU regulations, it can "just" leave the EU - unilaterally, a state leaving the US on the other hand is unconstitutional.
That is a ridiculous idea, I’m sorry. Laws aren’t programs or mathematical statements, and they are interpreted by courts using much more than the words on the page. You can’t feed them into a program and “look for loopholes.”
You're absolutely right! This is precisely why loopholes in tax systems, which come into being as a result of legislature, have remained a purely theoretical threat to government budgets, all over the world.
Tax loopholes are mostly intentional. If the government actually wanted to close them, they would; it's not that hard. There's just no political will to do it.
My wife is a lawyer. She has specialized in international law as it relates to financial institutions for decades. She gets really bent out of shape by people who’ve just read the law books and think that they know everything there is to know. These are the same type of people who are usually stupid enough to try to defend themselves in court. Her sister’s ex-husband is one of those.
My wife always says that the law is like a tripod. There is one leg that is formed by the laws as they are written down. There is a second leg that is formed by the precedents and case law that have developed around the written law. And then there is the third leg which is formed by the courts as they apply the law to individual cases.
And exactly how this works out is different by country and locality within that country. That’s why each state in the US has their own bar exam, and their own bar associations. That’s why most cities and other localities have their own bar associations, and they may have their own additional bar exams.
For example, in China, if all you did was read the laws as written in the books, you might think they have a very modern legal system, with lots of reasonable choices. But I am told that the law in China is actually whatever the judge says it is, and their judgement is final. So, you can ignore the other two legs of the tripod in China. And who appoints those judges? Who promotes those judges? To whom do those judges all kowtow?
In France, the official laws are written only in French. Anything you read in a different language is a translation, and not the actual law itself. There are other differences up in France as well.
So, having a system that lets you search the written laws and the precedents that have formed around them, that is a very useful thing. And it’s a very expensive service called LexisNexis. And it’s even more useful if it lets you look at the history of the way that a particular judge has ruled on specific cases. Which I believe that LexisNexis does.
If you can give me an API to the laws as they are written and nothing else, that might have some value for some people. But it’s hard to compete against LexisNexis or other legal research tools in this space.
Law text alone aren't enough to know how the rules are applied. So it needs court decisions too. That wouldn't be enough either because ton of things aren't in either laws or courts.
You need to see stuff like refusals to issue a permit or licence, waiting times or what not.
A lot of things aren't in public record or any record at all
"This database tracks legal decisions in cases where generative AI produced hallucinated content – typically fake citations, but also other types of AI-generated arguments. It does not track the (necessarily wider) universe of all fake citations or use of AI in court filings."
How does it work internally? Is this agent to agent with a MCP in between? From my experience this domain is pretty hard to get right. Often multiple LLM passes are needed over different kinds of structured data. RAG, indices, raw texts, DB search, with extra validations and more.
We have a similar internal systems. Each question takes about 2 to 5 minutes and costs about 1 to 2 dollars in tokens. Simply injecting raw law books into your LLM will not have enough reliability.
The problem with law is that there is usually no machine readable collection to search. Parsing natural language is still an unsolved problem. We cannot formalize legal texts like computer programs. There are attempts, eurlex, akino ntoso etc. but these are not wide-spread.
AI's that work with law can't work well with raw APIs like this (neither do lawyers). Just giving the latest text is not enough (you can get the latest directly from official free portals).
What you want is interfaces that retrieve official statutes/judgments and link every claim back to the exact paragraph. Otherwise your AI hallucinates those references and get them wrong.
I wonder how this deals with temporal edge cases, i.e. when an ordinance says "valid from 1st of January 2027" (happens when copy/pasting EU law into national), but the ordinance is promulgated after the 1st of January.
Countries deal with this differently, i.e. in Switzerland this means the law is in effect the day it was properly promulgated, in Austria its the day after. Who's going to be the poor shmuck dealing with the unavoidable hallucinations that come from naive slop interpretations of our laws?
[OP] vasie | a day ago
It covers EU, Germany, France, Netherlands, UK, Austria, Switzerland, Luxembourg and ECHR case law, with every past version of each law. Updated every night.
Works as an MCP server, no key needed: claude mcp add --transport http pandex https://api.pandex.io/mcp
Which countries should we add next?
jwr | 20 hours ago
therealalexz | 20 hours ago
sebmellen | 18 hours ago
yoaviram | 11 hours ago
sublimefire | 9 hours ago
nani8ot | 9 hours ago
Timwi | 8 hours ago
Longhanks | 7 hours ago
Also the EU is not a federation and whether the countries' constitutions are "below" EU regulations is "a heated discussion" (whereas US federal law basically always tops state law, they have the Supremacy Clause). If any member state would disagree with EU regulations, it can "just" leave the EU - unilaterally, a state leaving the US on the other hand is unconstitutional.
layer8 | 8 hours ago
Also, why is this .io and not .eu?
And a picture of the US Supreme Court? This all looks like AI-generated slop.
gumby | 20 hours ago
As well, there was recently a post on HN on using Lean to look for loopholes in US laws — this will make the same thing possible in Europe.
rafram | 17 hours ago
evujumenuk | 16 hours ago
nonethewiser | 13 hours ago
Timwi | 8 hours ago
mik1998 | 8 hours ago
bradknowles | 12 hours ago
My wife always says that the law is like a tripod. There is one leg that is formed by the laws as they are written down. There is a second leg that is formed by the precedents and case law that have developed around the written law. And then there is the third leg which is formed by the courts as they apply the law to individual cases.
And exactly how this works out is different by country and locality within that country. That’s why each state in the US has their own bar exam, and their own bar associations. That’s why most cities and other localities have their own bar associations, and they may have their own additional bar exams.
For example, in China, if all you did was read the laws as written in the books, you might think they have a very modern legal system, with lots of reasonable choices. But I am told that the law in China is actually whatever the judge says it is, and their judgement is final. So, you can ignore the other two legs of the tripod in China. And who appoints those judges? Who promotes those judges? To whom do those judges all kowtow?
In France, the official laws are written only in French. Anything you read in a different language is a translation, and not the actual law itself. There are other differences up in France as well.
So, having a system that lets you search the written laws and the precedents that have formed around them, that is a very useful thing. And it’s a very expensive service called LexisNexis. And it’s even more useful if it lets you look at the history of the way that a particular judge has ruled on specific cases. Which I believe that LexisNexis does.
If you can give me an API to the laws as they are written and nothing else, that might have some value for some people. But it’s hard to compete against LexisNexis or other legal research tools in this space.
lokar | 4 hours ago
Almost every legal outcome is, appropriately, a balance of the facts and the factors you listed.
skwon816 | 19 hours ago
Muromec | 19 hours ago
You need to see stuff like refusals to issue a permit or licence, waiting times or what not.
A lot of things aren't in public record or any record at all
namibj | 13 hours ago
ahartman00 | 4 hours ago
"This database tracks legal decisions in cases where generative AI produced hallucinated content – typically fake citations, but also other types of AI-generated arguments. It does not track the (necessarily wider) universe of all fake citations or use of AI in court filings."
https://www.damiencharlotin.com/hallucinations/
kaladin-jasnah | 17 hours ago
etatester | 13 hours ago
holoduke | 14 hours ago
terminalcommand | 29 minutes ago
u1hcw9nx | 11 hours ago
What you want is interfaces that retrieve official statutes/judgments and link every claim back to the exact paragraph. Otherwise your AI hallucinates those references and get them wrong.
Competition (European):
https://venato.ai
https://ovviously.com
https://digibeetle.eu
ulrischa | 11 hours ago
totetsu | 11 hours ago
est | 11 hours ago
rcbdev | 11 hours ago
Countries deal with this differently, i.e. in Switzerland this means the law is in effect the day it was properly promulgated, in Austria its the day after. Who's going to be the poor shmuck dealing with the unavoidable hallucinations that come from naive slop interpretations of our laws?
operaopera | 9 hours ago
It should be trivial to extend Pandex with this :).
d1sxeyes | 50 minutes ago