bartoszkobylinski1/aplikacje-prawnicze-mcq
Polish Legal Apprenticeship Entrance Exams — adwokacka/radcowska, notarialna, komornicza (2007–2025) Native-Polish, single-choice (A/B/C) legal MCQ benchmark built from the official entrance examinations for the Polish legal apprenticeships, published by the Ministry of Justice: adwokacka + radcowska (advocate + legal counsel — a single shared test from 2009 on; two separate exams in 2007), notarialna (notary), komornicza (court-enforcement officer / bailiff). Each item… See the full description on the dataset page: https://huggingface.co/datasets/bartoszkobylinski1/aplikacje-prawnicze-mcq.
Polish Legal Apprenticeship Entrance Exams — adwokacka/radcowska, notarialna, komornicza (2007–2025)
Native-Polish, single-choice (A/B/C) legal MCQ benchmark built from the official entrance examinations for the Polish legal apprenticeships, published by the Ministry of Justice:
- adwokacka + radcowska (advocate + legal counsel — a single shared test from 2009 on; two separate exams in 2007),
- notarialna (notary),
- komornicza (court-enforcement officer / bailiff).
Each item carries the published `legal_basis` (the exact statute provision the correct answer rests on), which makes the set usable not only for accuracy scoring but for citation / legal-grounding evaluation — does a model name the right provision, not just pick the right letter?
To the best of our knowledge no equivalent dataset existed publicly on the Hugging Face Hub, GitHub, or in the literature (the closest prior art, GAIus / arXiv:2507.01259, covers ~146 Civil-Code questions and was never released).
Dataset at a glance
Items per track × year
2007 is a special vintage: the advocate and legal-counsel exams were separate, each exam had 250 questions (not 150), and there was no komornicza track:
2009–2025 (150 questions per exam; advocate + counsel share one combined test):
(notarialna total 2650 = 2550 above + 250 from 2007.)
Schema
One JSON object per line (aplikacje_2007_2025.jsonl):
{
"year": 2022,
"track": "adwokacka-radcowska",
"q_no": 1,
"question": "Zgodnie z Kodeksem karnym, w stosunku do sprawcy usiłowania ...:",
"options": [
"stosuje nadzwyczajne złagodzenie kary,",
"może zastosować nadzwyczajne złagodzenie kary,",
"odstępuje od wymierzenia kary."
],
"answer": "B",
"answer_idx": 1,
"legal_basis": "art. 15 § 2 w zw. z art. 15 § 1 k.k."
}The natural item key is (year, track, q_no).
Domain coverage (by legal_basis)
Number of questions citing each code (a question may cite more than one act; *3391 items cite a named ustawa / Prawo o … / treaty* — e.g. Prawo o adwokaturze, ustawa o radcach prawnych, Prawo o notariacie, ustawa o komornikach sądowych — rather than a code):
The civil / commercial / civil-procedure emphasis is heavier than a single-track set, because the notarialna and komornicza tracks lean strongly on k.c., k.p.c. and k.s.h.
Source & provenance
- Publisher: Ministerstwo Sprawiedliwości (Polish Ministry of Justice).
- 2016–2025 hub: https://www.gov.pl/web/sprawiedliwosc/zestawy-pytan-testowych — each year publishes, free of charge, the 150-question set and the official answer key (with legal basis) for every track.
- 2007 + 2009–2015 come from the Ministry's archived BIP (the pre-2019 CMS, e.g.
arch-bip.ms.gov.pl). Same publisher, same official material — only the host differs; archival hosting does not change the legal status (materiały urzędowe). Exact source attachment URLs are recorded in the build provenance. - From 2009 on, the advocate and legal-counsel exams are a single combined test, so one set per year covers both professions. In 2007 they were two separate exams (both included).
- Source formats vary by year: text-layer PDF (2007, 2017–2020, 2023–2025), RTF (2009–2010), legacy .doc (2011–2016, 2021 keys), and .docx (2021–2022 questions). All are digital text — no scans, no OCR.
Build method
- Questions: PDFs via
pdftotext -layout; RTF and legacy.docvia LibreOffice headless (soffice --convert-to txt);.docxvia the same. Stem anchored on^\d+\., optionsA./B./C.(a missing period is tolerated), wrapped lines re-joined, page markers / form-feeds / BOMs stripped. A numbered instruction preamble (where present) is skipped by locating the first1.that is followed by anA./B./C.option. - Answer key + `legal_basis`: the key is a 3-column table
nr pytania | (prawidłowa) odpowiedź | podstawa prawna. PDF keys viapdfplumber.extract_table(strategy="lines")(so vertically-centred, multi-line legal-basis cells join within their real cell boundaries); RTF /.doc/.docxkeys parsed from the tab/space-separated table text. - Per-exam validation gate: exactly 150 questions and 150 key rows (250 in 2007); every item has 3 non-empty options, gold ∈ {A,B,C} matching
answer_idx, and a non-emptylegal_basis. All 53 exam-units passed clean (8250/8250). - Encoding: one font-encoding glitch in the 2007 PDFs (
żrendered asŜ, 11 cells) was corrected; article-number superscripts (art. 36¹,art. 8³) are genuine and preserved.
Important caveats
- *Statute drift — answers are correct według stanu prawnego on the exam day. Polish law changes; an option correct in 2009 may be wrong in 2025. Every item is anchored to its `year` — treat each year as its own legal snapshot and never mix years silently when scoring or fine-tuning. The 18-year span makes this set especially useful for studying* drift, but also makes year-mixing especially hazardous.
- Recurring questions (a feature, kept on purpose). Across the corpus 607 question stems recur (826 extra rows). They are kept as distinct items keyed by
(year, track, q_no), because each is a separate exam instance. In 404 of those groups the gold answer differs between instances — options get reordered and statutes change over time, so the recurrences directly illustrate statute drift / option shuffling. Only 29 rows are exact duplicates (identical stem + options + gold + basis); they are retained for provenance completeness. No semantic deduplication was applied — dedupe downstream if your use case needs it. - 2007 is special. Advocate and legal-counsel were two separate exams (tracks
adwokackaandradcowska), each exam had 250 questions, and there was no komornicza track that year. From 2009 on, adw/radc is the single jointadwokacka-radcowskatrack at 150 questions. - 2008 is absent — a genuine gap (no exam archived for that year), not a collection failure.
- komornicza 2009–2018 was an "egzamin konkursowy" (competitive exam), renamed "egzamin wstępny" from 2019. Same 150 × 3-option format; derive the distinction from
yearif needed. - 2018 notarialna is intentionally absent. On gov.pl, the 2018 notarialna question file is byte-identical to the 2018 adw/radc question file (the wstępny exam shared one question set across adw/radc/notarialna that year), while its published key matched a different set (agreed on only 65/150). To avoid a mismatched question↔key pairing, the 2018 notarialna split was dropped; 2018 adw/radc (with its own matching key) is kept.
- *Invalidated questions (pytania unieważnione).* Questions struck during the official appeals process are not republished separately; the published key is treated as ground truth.
- Scope. Covers 2007 and 2009–2025. The KSSiP judicial/prosecutorial track (konkurs ASiAP) is not yet included (its papers are scans requiring OCR).
License
- Content is materiały urzędowe (official materials) — under art. 4 of the Polish Copyright Act (ustawa o prawie autorskim i prawach pokrewnych) such materials are excluded from copyright.
- gov.pl content is additionally made available under CC BY-SA 4.0.
- Attribute Ministerstwo Sprawiedliwości as the source and share-alike on redistribution.
- ⚠️ This dataset is built only from the official Ministry of Justice publications. It does not include any content from commercial exam-prep services (ArsLege, testy-prawnicze.pl, zostanaplikantem.pl, etc.), whose materials are proprietary.
Intended uses
- MCQ accuracy on Polish professional-legal reasoning, across three legal professions and 18 years.
- Legal-grounding / citation eval via
legal_basis. - Per-act, per-track, per-year breakdowns of legal-domain competence and statute drift.
Citation
Polish Legal Apprenticeship Entrance Exams (adw/radc, notarialna, komornicza) 2007–2025.
Source: Ministerstwo Sprawiedliwości (gov.pl + archived BIP).
Materiały urzędowe (art. 4 pr. aut.) · CC BY-SA 4.0.