Spanish case law monitoring with classification and email digests
Follows the rulings published in CENDOJ, classifies them with rules that show which passage they rely on, writes a summary with citations and sends each recipient a daily email digest based on their filters. Includes a module that analyzes bank statements against precedents.
Keeping up with the rulings on a subject means checking the CENDOJ search engine (the Spanish judiciary's case law database) and reading long judgments. This Spanish case law monitoring software finds new rulings from the Supreme Court (Tribunal Supremo), the National High Court (Audiencia Nacional), the regional High Courts of Justice (TSJ) and whichever provincial courts you configure, classifies them, summarizes them and sends an email digest every morning based on each recipient's filters. It includes a module that matches bank statements against that case law.
Who it is for
- Criminal and compliance law firms that follow a specific line of case law, such as money laundering.
- Anti-money laundering departments and obliged entities.
- Legal publishers and legal information services that want a topic digest of their own.
- Forensic experts and financial analysts looking for precedents to support their conclusions.
The source is Spanish case law, the anti-money laundering angle follows Spain's Anti-Money Laundering Law (Ley 10/2010) and the interface is in Spanish.
What Spanish case law monitoring solves
- Too much noise. Many decisions only mention the subject in passing. The tool separates rulings where it is the main issue from those that only cite it.
- Classifications nobody can check. Each classification shows the exact passage it is based on.
- Borderline cases. Rulings that do not reach the threshold go to a review queue instead of being sent.
What you can do with it
Ruling tracking
- Search for new rulings by terms and dates, within the court scope you choose. Rulings you already have are not downloaded again.
- Get the text of each ruling split into background, established facts, legal grounds and judgment.
Classification and summary
- Classify each ruling by its relation to the subject: direct criminal, administrative AML, incidental reference or none, with a relevance score and a confidence score.
- See the excerpts that justify each classification, and set the thresholds for automatic sending and for review.
- Get a summary of each ruling with court, date, ROJ, ECLI, subjects detected, judgment and key excerpts.
Email digest
- Create named filters that group keywords and laws.
- Subscribe each recipient to specific filters or to all of them.
- Schedule the daily digest, preview it before sending, send it by hand, resend it and check the history, from any SMTP server.
- Check rulings, the review queue, coverage by court and alerts in a dashboard with username and password.
Case file analysis module
- Load bank statements in CSV and Excel, which are read on your server, and also PDF, Word and images.
- Apply sixteen risk pattern detectors, such as structuring, cash, pass-through accounts, round-tripping of funds, high-risk jurisdictions or crypto-assets.
- Match each fact against the case law collected, with the arguments cited and linked to the passage.
- Validate each finding: every finding comes in as proposed and an analyst confirms it, with a record.
- Protect the data: before anything is sent to an AI provider, personal identifiers are searched for and a person in charge authorizes the sending, with the reason.
- Ask questions in a chat that answers only with what it finds in the rulings and case files, with citations.
- Export the report in Markdown, JSON, CSV or PDF.
- Work with several users and roles (owner, administrator, reviewer and reader). Each user sees only their own case files.
Benefits
- You read only the rulings that matter for your subject.
- You can check why each ruling was classified the way it was.
- You offer your clients or subscribers a topic digest of your own.
Industry context
General industry data with its public source. These are not results of this product.
- All Spanish courts must send the General Council of the Judiciary (Consejo General del Poder Judicial, CGPJ), through the Judicial Documentation Center (CENDOJ), a copy of all their judgments for official publication. Source: Regulation 1/2005 on ancillary aspects of judicial proceedings (Reglamento 1/2005, de los aspectos accesorios de las actuaciones judiciales), Article 7.
What you get with each license
Price upon request, depending on license type and scope. Maintenance and support are contracted separately for every license type.
- The software installed on your server or in your cloud, under a license to use.
- Initial setup: courts, search terms, filters, recipients and email.
- Initial training for administrators.
- The complete source code, to adapt the rules to other subjects or integrate it into your legal platform.
- Installation and configuration documentation.
- A technical handover session with your team.
- A warranty against defects for the agreed period.
- Everything in the source code license.
- Our commitment not to license the product to third parties in the agreed sector or territory for the agreed term; for example, a single legal information service in one subject.
- The right to embed the asset in a commercial product of your own, identified in the contract.
- The right to distribute it to your customers as part of that product, without asking for authorization for each installation and with no limit on end customers, unless otherwise agreed.
- It does not include reselling or sublicensing it on its own.
- It is not exclusive, unless otherwise agreed.
- Maintenance, support and adaptations are contracted separately.
Technical specifications
Language and runtime: TypeScript 5.9 on Node.js. Minimum supported version: Node.js 20.18.1 for monitoring and Node.js 22 for case file analysis (required by cheerio and unpdf, which are installed).
Frameworks: Next.js 16.2 (monitoring) and 16.3 (case file analysis), with React 19.2 and Drizzle ORM 0.45.
Database: PostgreSQL, one database per application. Minimum supported version: 13 (it uses the native gen_random_uuid function). Case file analysis also uses the unaccent extension and connects through Neon's serverless driver over WebSocket: Neon, or PostgreSQL with a compatible WebSocket proxy.
Operating systems: Linux, Windows or macOS with Node.js.
Interface languages: Spanish.
Required infrastructure:
- Two PostgreSQL databases, one per application.
- Apify to download rulings (requires your own account).
- An SMTP server.
- A task scheduler that triggers the ruling downloads and the digests over HTTP, with a secret.
- An AI provider: OpenAI or Anthropic, for case file analysis (requires your own account).
- Datalab for scanned documents (optional; requires your own account).
- Sentry for error logging in the analysis module (optional; requires your own account).
Private deployment: Needs a connection to Apify and to CENDOJ to download rulings and, for case file analysis, to the AI provider. Datalab and Sentry are optional. The databases and email can run on your infrastructure.
Main libraries:
| Library | Version | License |
|---|---|---|
| next | 16.2.12 and 16.3.0 | MIT |
| react | 19.2.4 | MIT |
| drizzle-orm | 0.45.2 | Apache-2.0 |
| postgres | 3.4.9 | Unlicense |
| @neondatabase/serverless | 1.1.0 | MIT |
| nodemailer | 9.0.3 and 9.0.4 | MIT-0 |
| @react-email/components | 1.0.12 | MIT |
| cheerio | 1.2.0 | MIT |
| unpdf | 1.7.0 and 1.8.0 | MIT |
| exceljs | 4.4.0 | MIT |
| papaparse | 5.5.4 | MIT |
| zod | 4.4.3 | MIT |
Dependencies with specific license terms:
- jszip 3.10 (transitive dependency of exceljs, in case file analysis): MIT OR GPL-3.0-or-later.
- buffers 0.1.1 (transitive dependency of exceljs, in case file analysis): MIT/X11. The license does not appear in the package published on npm: its author declared it in the original repository (commit 1b745ee).
- @img/sharp-libvips-* 1.2 in monitoring and 1.3 in analysis (libvips binaries installed by sharp, an optional dependency of Next.js): LGPL-3.0-or-later. The sharp binaries for Windows and WebAssembly declare Apache-2.0 AND LGPL-3.0-or-later.
- @sentry/cli 2.58 and its platform binaries, in analysis (Sentry tool used at build time): FSL-1.1-MIT.
Compatibility and integrations: Apify API v2, CENDOJ, OpenAI Chat Completions API v1, Anthropic Messages API (version 2023-06-01), Datalab API v1, SMTP, CSV and XLSX.
Redistribution terms
The asset's own code can be embedded in the licensee's commercial products under the source code, sector or territory exclusive and OEM licenses, on the terms of the contract. With the installed license, the software is used and not redistributed. Specific license terms apply to jszip (MIT OR GPL-3.0-or-later), the libvips binaries (LGPL-3.0-or-later) and @sentry/cli (FSL-1.1-MIT); see the list under Technical specifications.
Installation requirements
Monitoring and case file analysis are installed separately on your server or in your cloud, each with its own PostgreSQL database and a task scheduler. Downloading rulings needs an Apify account in your name, and the digest needs an SMTP server. Analysis uses your OpenAI or Anthropic key and, for scanned documents, your Datalab key. You pay for that usage directly to the provider.
Integrations
CENDOJ, Apify, SMTP email (Microsoft 365, Amazon SES or your own server), OpenAI, Anthropic and Datalab.
Frequently asked questions
Where do the rulings come from?
From CENDOJ, the public search engine of the Spanish judiciary. Commercial use requires the CGPJ's reuse license, which the licensee applies for. The access terms are agreed with that license too.
Is the classification done by AI?
Not in monitoring: it uses fixed rules that store the excerpt they rely on. The analysis module does use language models, always with human validation.
Can it be used for subjects other than money laundering?
The filters and recipients work for any subject. The classification rules are designed for money laundering; another subject needs its own rule set.
Does the system state that money laundering took place?
No. The detectors and the matching against case law propose indicators with their support, and the score never reaches the maximum. An analyst always validates the assessment.
Is maintenance included?
No. Maintenance (updates and bug fixes) and support (questions, training and adaptations) are contracted separately.
Request
Request information on P-JUR-01
Fill in the form with the asset reference and the license type you're considering. I reply in writing. If you need to review code, tick the NDA box and we'll sign one before anything is shared.