# AI w prawie

EN: **AI and law (legal AI)** · id `legalai` · aliases: legal AI, AI and law, LegalAI, legal tech AI, sztuczna inteligencja w prawie, AI dla prawników

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › AI w prawie

## Description

- PL: Zastosowania AI w pracy z prawem: wyszukiwanie informacji prawnej, analiza umów, przegląd dokumentów w sporach, rozumowanie i predykcja oraz formalizacja przepisów.
- EN: AI applied to legal work: legal information retrieval, contract analysis, document review in litigation, reasoning and prediction, and formalising legislation.

## In one sentence

- PL: Programy, które pomagają szukać przepisów i orzeczeń, czytać umowy, przeglądać stosy dokumentów w sprawie i zapisywać reguły prawa tak, by liczył je komputer.
- EN: Software that helps find laws and rulings, read contracts, sift piles of case documents and write legal rules down so a computer can apply them.

## Problem it solves

- PL: Prawo to góry tekstu: przepisy, wyroki, umowy i akta. Prawnicy toną w czytaniu, a zwykły człowiek nie wie, gdzie zacząć.
- EN: Law is mountains of text: statutes, rulings, contracts and case files. Lawyers drown in reading, and ordinary people do not know where to start.

## What it does

- PL: Jak bystry aplikant, który w minutę przeczyta całe archiwum i podsunie fragmenty do sprawdzenia, ale podpis i odpowiedzialność zostają przy prawniku.
- EN: Like a sharp trainee who reads the whole archive in a minute and flags passages to check; the lawyer keeps the signature and responsibility.

## Everyday example

- PL: Przed podpisaniem umowy najmu wrzucasz ją do asystenta i pytasz, kiedy możesz ją wypowiedzieć; dostajesz odpowiedź z zaznaczonym paragrafem.
- EN: Before signing a lease you give it to an assistant and ask when you can terminate it; the answer comes back with the clause highlighted.

## This concerns you if you…

- PL: podpisujesz umowy i nie masz czasu ich czytać
- PL: pracujesz w kancelarii, dziale prawnym lub urzędzie
- PL: szukasz porady prawnej w czatbocie
- EN: sign contracts and have no time to read them
- EN: work in a law firm, legal department or public office
- EN: look for legal advice from a chatbot

## Keywords

legal NLP · legal information retrieval · contract review · e-discovery · technology-assisted review · legal judgment prediction · LegalBench · LexGLUE · COLIEE · CUAD · rules as code · computational models of argument · ICAIL · JURIX · legal RAG

## How it works

- PL: Dziedzina obejmuje dwa historycznie ważne nurty: symboliczny, oparty na regułach i reprezentacji wiedzy, oraz statystyczny, oparty na uczeniu maszynowym. Współczesne systemy łączą wyszukiwanie po bazach prawa, modele językowe, ekstrakcję informacji i klasyfikatory uczone na ocenach recenzentów.
- EN: The field includes two historically important strands: symbolic methods based on rules and knowledge representation, and statistical methods based on machine learning. Contemporary systems combine legal information retrieval, language models, information extraction, and classifiers trained on reviewer judgments.

## Limits

- PL: Modele zmyślają orzeczenia i cytaty, a prawo różni się między krajami i zmienia w czasie. Błąd ma realne skutki dla ludzi, więc potrzebna jest weryfikacja przez prawnika. Wiele danych jest poufnych, a publiczne zbiory obejmują głównie kilka jurysdykcji i język angielski.
- EN: Models invent rulings and quotations, and law differs between countries and changes over time. Mistakes have real consequences for people, so a lawyer must verify. Much data is confidential, and public datasets cover mainly a few jurisdictions and English.

## Key terms

- PL: **jurysdykcja**: Obszar i system prawny, w którym obowiązują dane przepisy i sądy.
- PL: **precedens**: Wcześniejsze orzeczenie, na które powołuje się sąd w podobnej sprawie.
- PL: **halucynacja prawna**: Zmyślony przez model wyrok, przepis lub cytat podany jako prawdziwy.
- PL: **legal tech**: Technologie wspierające pracę prawników i dostęp do prawa.
- EN: **jurisdiction**: The area and legal system in which given laws and courts apply.
- EN: **precedent**: An earlier ruling a court relies on in a similar case.
- EN: **legal hallucination**: A ruling, statute or quotation invented by a model and presented as real.
- EN: **legal tech**: Technology supporting lawyers' work and access to law.

## Know first

- [Wyszukiwanie i RAG (Retrieval-augmented generation)](https://aiatlasgraph.com/t/retrieval.md)
- [Wydobywanie informacji z tekstu (nazwy własne, relacje) (Information extraction (named entities and relations))](https://aiatlasgraph.com/t/infoextraction.md)

## Subtopics (7 direct, 29 in total)

- [Analiza umów (Contract analysis and review)](https://aiatlasgraph.com/t/contractai.md): Automated retrieval and classification of contract provisions, with identification of clauses that require human risk assessment.
  - [Przegląd umowy według zasad firmy (playbook) (Playbook-based contract review)](https://aiatlasgraph.com/t/playbookreview.md): Checking a contract against a company's set of standard positions and templates, locating deviations and missing provisions.
  - [Redagowanie i poprawianie umów z AI (AI contract drafting and redlining)](https://aiatlasgraph.com/t/contractdrafting.md): LLM generation of clauses and proposed edits to contract drafts, often with retrieval of precedents and scoring of edit acceptability.
  - [Sprawdzanie twierdzeń o umowie (Contract natural language inference)](https://aiatlasgraph.com/t/contractnli.md): Document-level inference: given a contract and a hypothesis, the model labels entailment, contradiction or not mentioned and identifies evidence spans.
  - [Wyszukiwanie klauzul w umowach (Contract clause extraction)](https://aiatlasgraph.com/t/clauseextraction.md): Locating contract passages matching defined provision categories, usually framed as question-answering-style span extraction.
- [Benchmarki modeli prawniczych (Legal AI benchmarks)](https://aiatlasgraph.com/t/legalbenchmarks.md): Task collections for evaluating models on legal text, covering language understanding, classification, and multiple forms of legal reasoning.
- [E-discovery i przegląd dokumentów (E-discovery and technology-assisted review)](https://aiatlasgraph.com/t/ediscovery.md): Identifying, reviewing and producing electronic evidence in proceedings; technology-assisted review is relevance classification trained on reviewers' judgements.
  - [Ciągłe aktywne uczenie w przeglądzie dokumentów (Continuous active learning for document review (CAL))](https://aiatlasgraph.com/t/calreview.md): A TAR protocol in which the classifier is retrained continuously on reviewer judgements and always offers the top-ranked unreviewed documents.
  - [Przegląd dokumentów przez modele językowe (LLM-based document review (generative TAR))](https://aiatlasgraph.com/t/llmdocreview.md): Relevance assessment of documents in e-discovery by an LLM prompted with the request or fine-tuned on a seed set, with a generated rationale.
  - [Wykrywanie dokumentów objętych tajemnicą adwokacką (Privilege review in e-discovery)](https://aiatlasgraph.com/t/privilegereview.md): Classifying documents for privilege alongside responsiveness, with cost-based selection of which documents a human reviews.
- [Formalizacja prawa (Computational law and formal legal models)](https://aiatlasgraph.com/t/computationallaw.md): The symbolic strand of AI and law: representing norms in logic and programming languages, and computational models of legal reasoning and argument.
  - [Automatyczne sprawdzanie zgodności z przepisami (Automated regulatory compliance checking)](https://aiatlasgraph.com/t/compliancechecking.md): Verifying business processes and documents against legal norms: classically with formal deontic rules, more recently also with LLMs and retrieval.
  - [Modele argumentacji prawniczej (Computational models of legal argument)](https://aiatlasgraph.com/t/legalargumentation.md): Formal and computational models for generating, evaluating and using legal arguments, especially precedent-based reasoning with factors and dimensions.
  - [Prawo jako kod (Rules as code)](https://aiatlasgraph.com/t/rulesascode.md): Creating a machine-executable version of legislation alongside the legal text, in dedicated languages or frameworks, ideally at the drafting stage.
  - [Ustrukturyzowane dokumenty prawne (Structured legal documents)](https://aiatlasgraph.com/t/machinereadablelaw.md): Standards for structured encoding and identification of legal documents in XML and RDF, enabling precise linking, versioning and consolidation.
- [Przetwarzanie tekstów prawnych (Legal text processing (legal NLP))](https://aiatlasgraph.com/t/legalnlp.md): NLP tasks adapted to legal text: entity recognition, judgment structuring, summarisation, anonymisation and language models trained on law.
  - [Anonimizacja orzeczeń sądowych (Anonymisation of court decisions)](https://aiatlasgraph.com/t/courtanonymization.md): Automatically detecting personal identifiers in court decisions and masking them before publication, and assessing re-identification risk.
  - [Modele językowe uczone na tekstach prawnych (Domain-adapted legal language models)](https://aiatlasgraph.com/t/legallm.md): Language models further pretrained or trained from scratch on legal corpora, sometimes with a custom vocabulary and instruction tuning on legal tasks.
  - [Podział wyroku na części (role retoryczne) (Rhetorical role labelling of court judgments)](https://aiatlasgraph.com/t/rhetoricalroles.md): Classifying each sentence of a judgment into a functional role such as facts, party arguments, analysis, ratio decidendi and decision.
  - [Rozpoznawanie nazw w tekstach prawnych (Legal named entity recognition)](https://aiatlasgraph.com/t/legalner.md): Tagging entities in legal texts with fine-grained domain classes such as court, judge, party, provision, precedent and case number.
  - [Streszczanie wyroków i aktów prawnych (Legal document summarisation)](https://aiatlasgraph.com/t/legalsummarization.md): Extractive and abstractive summarisation of long legal documents: judgments, case files and legislation, including multilingual settings.
- [Rozumowanie prawne i przewidywanie (Legal reasoning and outcome prediction)](https://aiatlasgraph.com/t/legalreasoning.md): Modelling and evaluating models' legal reasoning (issue spotting, rule application, conclusion) and predicting court outcomes from text.
  - [Przewidywanie wyroków (Legal judgment prediction)](https://aiatlasgraph.com/t/judgmentprediction.md): Classifying the outcome (e.g. violation of an article, which party wins) from case text; outcome identification is distinguished from genuine forecasting.
  - [Stosowanie przepisu do faktów (rozumowanie z ustaw) (Statutory reasoning)](https://aiatlasgraph.com/t/statutoryreasoning.md): Applying a given statute text to a described set of facts: deciding whether a provision applies or computing the legal outcome.
- [Wyszukiwanie informacji prawnej (Legal information retrieval and research)](https://aiatlasgraph.com/t/legalsearch.md): Retrieving and ranking rulings and statutes for a query or case description, increasingly combined with answer generation with citations (legal RAG).
  - [Agenci badań prawnych (Agentic legal research)](https://aiatlasgraph.com/t/legalresearchagents.md): Multi-step agent systems that plan queries, use search tools over legal databases and produce cited answers, often with a separate verifier.
  - [Odpowiedzi na pytania z przepisów (Statute retrieval and legal entailment)](https://aiatlasgraph.com/t/statuteqa.md): Retrieving the statute articles relevant to a question and yes/no inference on whether the question follows from those articles.
  - [Wyszukiwanie podobnych orzeczeń (Legal case retrieval (prior case retrieval))](https://aiatlasgraph.com/t/caseretrieval.md): The task of finding, in a large database of rulings, cases relevant to a query that is a case description or a whole document.
  - [Zmyślone orzeczenia i weryfikacja cytowań (Legal hallucinations and citation verification)](https://aiatlasgraph.com/t/citationcheck.md): Studying and detecting invented or misquoted legal authorities in model outputs, and automated verification of citations in filings.

## Related topics

Untyped, symmetric "see also" links.

- [Regulacje AI i klasy ryzyka (AI Act) (AI regulation and risk tiers (EU AI Act))](https://aiatlasgraph.com/t/airegulation.md)

## Sources

- [How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligence](<https://arxiv.org/abs/2004.12158>) `zhong-legalai-survey-2020` · by Haoxi Zhong, Chaojun Xiao, Cunchao Tu, Tianyang Zhang, Zhiyuan Liu, Maosong Sun
- [Promises and pitfalls of artificial intelligence for legal applications](<https://arxiv.org/abs/2402.01656>) `kapoor-legal-ai-pitfalls-2024` · by Sayash Kapoor, Peter Henderson, Arvind Narayanan

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/legalai · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
