What we measure ourselves against, in plain sight.
We publish the 249 cases AIM LEX is tested on in Spanish law, each with its official source and with what a correct answer has to say; the criteria used to mark them; the marker, so that anyone can measure their own tool with it; and the results of each version, exactly as they come out.
v1.226.12 · regenerated with every version of the system
The latest results
General run published on . The detail, in Trust.
The benchmarks
Labour
Dismissals, contracts, working time, benefits and Social Security, branch by branch.
21 cases · latest measurement: 5 of 5
Commercial
Companies, commercial contracts, insolvency and competition.
24 cases
Tax
VAT, personal income tax, corporate tax, procedure and tax penalties.
11 cases
Foral and regional law
What changes by territory: foral civil law and foral taxes.
9 cases
Accuracy of figures
That the deadline, the amount or the percentage is the right one, not just that the citation exists.
6 cases
False premises
Questions that start from something untrue: the correct answer corrects it.
102 cases
Validity over time
The rule in force on the date that matters, and not a repealed version.
5 cases
Citation checking
Real citations that must be confirmed and false or impossible ones that must be caught.
45 cases
Retrieval of the rule
That the search reaches the article that answers, before anything is drafted.
26 cases
How it is marked
exige- The answer must contain at least one of the accepted forms (for example, «20 días» or «veinte días»). It is compared after normalising capitals, accents, spaces and the way figures are written.
prohibe- The answer must not contain any of these expressions: they are usually the repealed figure or the false premise.
espera- In the verification benchmark: «verde» (the citation exists and says that: it must be confirmed), «rojo» (it does not exist or is impossible: it must be caught), «no_rojo» (a correct citation must not be accused) or «no_verde» (what is not on record cannot be confirmed).
fallo- A case that fails is repeated twice more, because the system is not deterministic; it counts as a failure only if it fails all three times. Results are published exactly as they come out: runs are not picked.
error- Counted as an error: inventing a rule or a citation, relying on a repealed rule, not finding the expected source in a question that has an answer, or answering what should have been declined.
Measure your own tool
Download the reference marker (Python 3, no dependencies) and the cases. For each case, pass the question to your tool and mark its answer with corregir(caso, respuesta); in the verification benchmark, with evaluar_caso_banco(caso, citas).
import json, urllib.request
from corrector_aim_lex import corregir
casos = json.load(urllib.request.urlopen("https://www.aim-lex.ai/banco-abierto/laboral.json"))["casos"]
for c in casos:
respuesta = mi_herramienta(c["pregunta"])
print(c["id"], corregir(c, respuesta)["bien"])
Or mark online: send the case and the answer to POST /banco-abierto/corregir with the body {"caso": {...}, "respuesta": "..."}.