ahmeabd/italia-corpus

A continuously updated, machine-readable corpus of Italian legislation. Clean structure, versioned updates, and ready-to-use data for parsing, search, and analysis.

What it solves

Italian legal texts are officially public but come in hard-to-parse formats or messy HTML. There was no ready-to-use, AI-friendly dataset of the law in force. This project solves that by providing clean, structured Markdown files for every act.

How it works

An open-source Python script pulls data from Normattiva's public API, converts each act into a Markdown file with YAML metadata, resolves cross-references, and commits changes to GitHub. Updates run daily, and only real changes trigger new commits, so you can track legal history with git.

Who it's for

Researchers, developers, and teams building legal RAG systems, fine-tuning LLMs on domain text, creating benchmarks, or analysing Italian law with NLP. It's also useful for anyone needing structured legal data for case law linking or citation graphs.

Highlights

  • Over 280,000 acts, split into 23 collections, synced daily.
  • Each act is a separate Markdown file with rich YAML frontmatter (type, date, URN, in-force flag, etc.).
  • Cross-references resolved internally to files, or to Normattiva when external.
  • Diff-driven updates: every legislative change is a git commit.
  • Public domain content and MIT-licensed generation script.

Related

  • Project
  • Project
  • Project
  • Project