nik_control_reports_pl: NIK state-audit control reports (4,576 docs / 305M chars)

#117
artifacts/source_findings.md CHANGED
@@ -2412,3 +2412,32 @@ decisions (every speech scoring 0.3 or more, byte-identical).
2412
  **Not established** — the hand checks in the card still date from Hub PR 76. The 573 rows whose
2413
  speaker no allowlist rule matches stay here until the allowlist is applied to this source
2414
  (slayerlabs/polish-dynaword-v2#99).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2412
  **Not established** — the hand checks in the card still date from Hub PR 76. The 573 rows whose
2413
  speaker no allowlist rule matches stay here until the allowlist is applied to this source
2414
  (slayerlabs/polish-dynaword-v2#99).
2415
+
2416
+ ## nik_control_reports_pl (NIK control reports, Najwyższa Izba Kontroli)
2417
+
2418
+ - **Investigated** — 2026-10-09/10. 4,621 documents from 2,962 controls (2005–2026) fetched
2419
+ first-hand from nik.gov.pl (report PDFs, text layer via pypdf; the results listing is a JS
2420
+ pager, so the inventory sweeps the official record numbers P|D|I/RR/NNN).
2421
+ - **Verdict** — admit with `release: None`. Basis: official documents outside copyright,
2422
+ Copyright Act art. 4 pkt 2 (verbatim quote + hash in the evidence file); Open Data Act
2423
+ (Dz.U. 2023 poz. 1524) as supporting context (I). No CC grant asserted (fail-closed).
2424
+ - **What was checked** — chain of title (authors = NIK officials acting officially; publisher
2425
+ NIK; no intermediaries — no snapshot involved); stratified recorded-seed sample (20261010)
2426
+ of 220/4,621 documents over control-prefix strata: quote spans 40+ chars in 184/220
2427
+ (Wilson 95% 78.2–87.9%), third-party citation references 104/220 (40.8–53.9%), persons'
2428
+ names as published 132/220 (53.4–66.2%), identifier residuals 0/220 (0–1.7%); quote spans
2429
+ cover 59.7% of sampled characters (regex, I). Cleaning (dehyphenation, page furniture,
2430
+ frequency-detected boilerplate with calibrated thresholds, identifier redaction) lives in
2431
+ `src/clean_nik_control_reports_pl.py` with contract tests.
2432
+ - **Caveat** — reports quote party letters, audited-entity documents and cited rulings at
2433
+ length; whether art. 4 pkt 2 clears works quoted inside an official document is an open
2434
+ legal question (as for uodo_orzeczenia_pl). Documents are not filtered.
2435
+ - **Not checked** — art. 4 coverage of inner quotes (open); scanned annexes without a text
2436
+ layer (absent from the shard, count unknown); year-precision dates; nik.gov.pl terms of
2437
+ use and robots.txt; whether art. 4 reads identically in consolidations later than
2438
+ Dz.U. 2000 poz. 904 (I: unchanged); NERGAL not run (pattern-level redaction only —
2439
+ `release: None` until re-run); whether every redacted 11-digit number was a PESEL (I).
2440
+ - **Cross-note for the maintainer** — `uodo_orzeczenia_pl.license-evidence.json` cites
2441
+ "Dz.U. 1994 nr 24 poz. 83" and `eli.gov.pl/api/acts/DU/2025/24` for art. 4 pkt 2; that
2442
+ citation looks wrong (the act is Dz.U. 1994 Nr 43 poz. 175; the linked PDF is the 2025
2443
+ amending act and contains no such provision). Worth fixing in the UODO PR before release.
data/nik_control_reports_pl/nik_control_reports_pl.license-evidence.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": "nik_control_reports_pl",
3
+ "checked_at": "2026-10-10",
4
+ "license": "public-domain (official documents)",
5
+ "spdx": "LicenseRef-Polish-Official-Documents",
6
+ "license_spdx": "LicenseRef-Polish-Official-Documents",
7
+ "status": "documented-statutory-basis-review-needed",
8
+ "evidence_url": "https://eli.gov.pl/api/acts/DU/2000/904/text/O/D20000904.pdf",
9
+ "sha256": "438ecdbfb23b6c9d9f07a709217ea71fb13d6c88a44a2b4ccbb9ad4da4099939",
10
+ "provider": "Najwyzsza Izba Kontroli (NIK, Supreme Audit Office) - nik.gov.pl. Control reports ('Informacja o wynikach kontroli', wystapienia pokontrolne, protokoly and their attachments) are issued by NIK officers and the Kolegium NIK acting officially and published by NIK as official documents.",
11
+ "official_source": "https://www.nik.gov.pl/kontrole/wyniki-kontroli-nik/",
12
+ "official_source_documentation": "https://www.nik.gov.pl/o-nik/informacje-podstawowe/",
13
+ "review_scope": "Licence basis and third-party quotation sampling over 4,621 documents extracted from the published report PDFs of 2,962 controls (2005-2026), fetched first-hand from nik.gov.pl on 2026-10-09/10 (official record-number sweep P|D|I/RR/NNN over public detail pages, because the results listing is a JS pager). V = read first-hand on the retrieval date; I = inferred, not verified, not lawyer-signed-off.",
14
+ "finding": "The texts are official documents outside copyright under Polish Copyright Act art. 4 pkt 2, the same basis recorded for dziennik_ustaw, sejm_interpellations and uodo_orzeczenia_pl; reuse of public-sector information is governed by the Polish Open Data Act arts. 2(12), 5, 14 and 17 (I: not re-verified that NIK is an obliged body; no explicit licence grant exists on nik.gov.pl - fail-closed: no CC grant is asserted). Caveats. (1) Quoted third-party text inside official documents: reports quote party letters, audited-entity documents and cited rulings at length. In a stratified recorded-seed sample of 220 documents (seed 20261010, strata = control-number prefix), 184/220 contain quote spans of 40+ characters (Wilson 95%: 78.2%-87.9%) and 104/220 reference third-party correspondence or cited rulings (Wilson 95%: 40.8%-53.9%); quote spans cover 59.7% of sampled characters (regex measure, I-level - unbalanced quote marks can extend a span). Whether art. 4 pkt 2 clears works quoted inside an official document is an open legal question (as for uodo_orzeczenia_pl); documents are not filtered. (2) Names of natural persons appear as published in official documents (132/220 sampled documents, Wilson 95%: 53.4%-66.2%); officers and audited-entity personnel acting officially stay in text per repo policy. (3) Pattern-level identifier redaction only (PESEL, bank accounts -> [PII]: 146 + 3 hits over the shard); 0/220 residual identifiers in the post-cleaning sample (Wilson 95%: 0%-1.7%). SlayerLab/NERGAL has not run; the source merges with release: None until it does.",
15
+ "copyright_basis": {
16
+ "mark": "V",
17
+ "act": "Ustawa z dnia 4 lutego 1994 r. o prawie autorskich i prawach pokrewnych (Dz.U. 1994 Nr 43 poz. 175), art. 4 pkt 2 (text as published in the consolidated text, Dz.U. 2000 Nr 80 poz. 904): 'Nie stanowia przedmiotu prawa autorskiego: (...) 2) urzadowe dokumenty, materialy, znaki i symbole'.",
18
+ "verbatim_quote_repaired": "Art. 4. Nie stanowią przedmiotu prawa autorskiego: 1) akty normatywne lub ich urzędowe projekty, 2) urzędowe dokumenty, materiały, znaki i symbole, 3) opublikowane opisy patentowe lub ochronne, 4) proste informacje prasowe.",
19
+ "quote_note": "V, read first-hand on 2026-10-10 from the consolidated-text PDF at evidence_url (Dz.U. 2000 Nr 80 poz. 904, attachment to the MKiDN notice of 2000-08-01). The PDF text layer has font-encoding damage (ł -> ∏, ż -> ˝/´, ą -> à); the hash in 'sha256' is over the RAW extracted segment (reproducible with pypdf), the repaired reading above fixes only those glyph mappings. That art. 4 pkt 2 still reads identically in later consolidated texts is I (no later consolidated text re-read; ISAP redirect loops from this machine).",
20
+ "url": "https://eli.gov.pl/api/acts/DU/2000/904/text/O/D20000904.pdf",
21
+ "citation_correction_note": "The uodo_orzeczenia_pl evidence file cites 'Dz.U. 1994 nr 24 poz. 83' and the URL eli.gov.pl/api/acts/DU/2025/24 (the 2025 amending act) for this provision; both look wrong (the act is Dz.U. 1994 Nr 43 poz. 175 and the linked PDF does not contain art. 4 of the Copyright Act). Flagged for the maintainer; this file cites what was verified here."
22
+ },
23
+ "open_data_basis": {
24
+ "mark": "I",
25
+ "act": "Ustawa o otwartych danych i ponownym wykorzystywaniu informacji sektora publicznego (Dz.U. 2023 poz. 1524), arts. 2(12), 5, 14, 17.",
26
+ "url": "https://eli.gov.pl/api/acts/DU/2023/1524/text.html",
27
+ "note": "Supporting context only; the statutory basis for official documents carries the verdict. No primary source naming NIK as an obliged body was re-read."
28
+ },
29
+ "chain_of_title": [
30
+ {"hop": "author", "party": "NIK officers and Kolegium NIK acting officially", "statement": "reports are issued as 'Informacja o wynikach kontroli' / 'Wystapienie pokontrolne' over the officer's or President's signature (V: seen on the fetched document pages)", "url": "https://www.nik.gov.pl/kontrole/wyniki-kontroli-nik/", "retrieved": "2026-10-09", "sha256_or_snapshot": "per-document PDFs hashed in the fetch inventory (inventory.jsonl.gz kept locally)"},
31
+ {"hop": "publisher", "party": "Najwyzsza Izba Kontroli (nik.gov.pl)", "statement": "published free of charge on the public results site; no per-document licence field exists (V: page read 2026-10-09)", "url": "https://www.nik.gov.pl/kontrole/wyniki-kontroli-nik/", "retrieved": "2026-10-09", "sha256_or_snapshot": null},
32
+ {"hop": "intermediary", "party": "none", "statement": "fetched first-hand from the publisher; no snapshot, dump or third-party copy involved", "url": null, "retrieved": null, "sha256_or_snapshot": null}
33
+ ],
34
+ "sampling": {
35
+ "mark": "V",
36
+ "method": "stratified uniform random sample without replacement; strata = control-number prefix of record_id (P, I, K, S, R)",
37
+ "seed": 20261010,
38
+ "population": 4621,
39
+ "sample_n": 220,
40
+ "strata": {"P": {"population": 3340, "sample_n": 60}, "I": {"population": 481, "sample_n": 40}, "K": {"population": 385, "sample_n": 40}, "R": {"population": 233, "sample_n": 40}, "S": {"population": 182, "sample_n": 40}},
41
+ "checks": {
42
+ "quote_spans_40plus_chars": {"hits": 184, "wilson_95": [0.782, 0.879]},
43
+ "third_party_citation_refs": {"hits": 104, "wilson_95": [0.408, 0.539]},
44
+ "named_person_pan_pani_pattern": {"hits": 132, "wilson_95": [0.534, 0.662]},
45
+ "pesel_or_account_residual": {"hits": 0, "wilson_95": [0.0, 0.017]}
46
+ },
47
+ "flagged_char_share": 0.5971,
48
+ "interpretation": "Quote-heavy register is a property of the source (reports quote party letters, audited-entity documents and cited rulings by design), not an extraction defect; the 0/220 identifier residual still allows up to ~1.7% of documents (Wilson 95%), so this is a result, not a clean bill. Per-item classes and IDs: data/nik_control_reports_pl/nik_control_reports_pl.sampling.json (classification I-level regex heuristics; 12 documents hand-read on 2026-10-10 matched their heuristic class - those 12 are V)."
49
+ },
50
+ "not_checked": [
51
+ "Whether art. 4 pkt 2 covers third-party works quoted inside the reports (open legal question; documents are not filtered).",
52
+ "Scanned annexes without a PDF text layer (pypdf extraction empty) are not in the shard; how many exist is unknown.",
53
+ "Publication dates are kept at year precision (full dates appeared only on listing pages, not in the PDFs).",
54
+ "nik.gov.pl terms of use and robots.txt were not read (documents are published free of charge; fetching was polite: 3 workers, 0.15 s delay).",
55
+ "Whether art. 4 pkt 2 wording is unchanged in consolidations later than Dz.U. 2000 poz. 904 (I: unchanged; no later consolidated text re-read).",
56
+ "SlayerLab/NERGAL has not run over this shard (pattern-level redaction only); the source is not admitted to a release until it does.",
57
+ "Whether every redacted 11-digit number was in fact a PESEL (regex-based redaction is I-level)."
58
+ ],
59
+ "quotes": [
60
+ {
61
+ "mark": "V",
62
+ "url": "https://eli.gov.pl/api/acts/DU/2000/904/text/O/D20000904.pdf",
63
+ "text": "Art. 4. Nie stanowią przedmiotu prawa autorskiego: 1) akty normatywne lub ich urzędowe projekty, 2) urzędowe dokumenty, materiały, znaki i symbole, 3) opublikowane opisy patentowe lub ochronne, 4) proste informacje prasowe. (repaired reading of the raw segment hashed above)"
64
+ },
65
+ {
66
+ "mark": "V",
67
+ "url": "https://www.nik.gov.pl/kontrole/P/14/018",
68
+ "text": "Zarządu PGE Elektrownia Opole S.A. nr 140/2008 z dnia 14 kwietnia 2008 r. i nr 239/2008 z dnia 2 czerwca 2008 r. (a cited company document reference inside the report - quoted third-party material of the kind the sampling measures)"
69
+ },
70
+ {
71
+ "mark": "V",
72
+ "url": "https://www.nik.gov.pl/kontrole/I/25/001",
73
+ "text": "Wystąpienie pokontrolne zmienione zgodnie z treścią uchwały nr 88/2026 Kolegium Najwyższej Izby Kontroli z dnia 30 września 2026 r. oraz w związku z sprostowaniem oczywistych omyłek pisarskich (typowy nagłówek dokumentu urzędowego NIK)"
74
+ }
75
+ ]
76
+ }
data/nik_control_reports_pl/nik_control_reports_pl.md ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # nik_control_reports_pl — NIK control reports (Najwyższa Izba Kontroli)
2
+
3
+ Added: 2026-10-10. Release: `None` (on main, not in any release yet).
4
+
5
+ ## What the data is
6
+
7
+ State-audit reports of the Supreme Audit Office (Najwyższa Izba Kontroli, NIK):
8
+ the published "Informacja o wynikach kontroli", wystąpienia pokontrolne, protokoły
9
+ and their annexes — analytical Polish prose (audit findings, legal reasoning,
10
+ statistical tables rendered as text) plus quoted source documents. 4,621 documents
11
+ from 2,962 controls, 2005–2026 (created at year precision), 309,053,905 characters.
12
+ Register: formal administrative/analytical; genre: official control documents.
13
+ Not OCR: the text is the PDF text layer of born-digital publications (pypdf);
14
+ scanned annexes without a text layer are not in the shard (see Not checked).
15
+
16
+ ## Where it comes from
17
+
18
+ First-hand from the publisher: <https://www.nik.gov.pl/kontrole/wyniki-kontroli-nik/>.
19
+ The public results listing is a JS pager (every `/strona,N` URL returns page 1;
20
+ no sitemap), so `src/fetch_nik_control_reports_pl.py` sweeps the official record
21
+ numbers (Nr ewidencyjny `P|D|I/RR/NNN`, 2004–2026, 10 prefixes, gap-tolerant
22
+ blocks journaled to `inventory.done`) over public detail pages, then downloads
23
+ each report PDF ("Informacja o wynikach kontroli" and attachments) and extracts
24
+ its text layer with pypdf. No intermediary snapshot, no dump, no third-party copy.
25
+
26
+ ## Rights
27
+
28
+ - **Licence/basis**: official documents outside copyright under the Polish
29
+ Copyright Act art. 4 pkt 2 ("urzędowe dokumenty, materiały, znaki i symbole");
30
+ the same basis recorded for `dziennik_ustaw`, `sejm_interpellations`,
31
+ `uodo_orzeczenia_pl`. Reuse of public-sector information is governed by the
32
+ Polish Open Data Act (Dz.U. 2023 poz. 1524) arts. 2(12), 5, 14, 17 (I).
33
+ - **Where the statement lives**: the statute, not the site — nik.gov.pl publishes
34
+ no per-document licence field (V, page read 2026-10-09). Provision quoted
35
+ verbatim + hashed in
36
+ `nik_control_reports_pl.license-evidence.json` (consolidated text Dz.U. 2000
37
+ Nr 80 poz. 904, <https://eli.gov.pl/api/acts/DU/2000/904/text/O/D20000904.pdf>).
38
+ Fail-closed: no CC grant is asserted anywhere.
39
+ - **Chain of title**: authors = NIK officers / Kolegium NIK acting officially →
40
+ publisher NIK (nik.gov.pl) → this repo; no intermediaries (full table in the
41
+ evidence file).
42
+ - **Third-party text inside the reports** (the material caveat): reports quote
43
+ party letters, audited-entity documents and cited rulings at length. Recorded
44
+ seed 20261010, stratified sample of 220/4,621 documents (strata = control
45
+ prefix): quote spans 40+ chars in 184/220 (Wilson 95% 78.2–87.9%), third-party
46
+ citation references 104/220 (40.8–53.9%), quote spans cover 59.7% of sampled
47
+ characters (regex measure, I). Whether art. 4 pkt 2 clears works quoted inside
48
+ an official document is an open legal question; documents are **not filtered**.
49
+ Per-item classes and IDs: `nik_control_reports_pl.sampling.json`.
50
+ - **Persons and identifiers**: names of natural persons stay as published in
51
+ official documents (132/220 sample documents contain Pan/Pani + name patterns);
52
+ pattern-level redaction of identifiers only — PESEL and bank accounts become
53
+ `[PII]` (146 + 3 hits over the shard; 0/220 residual in the sample, Wilson 95%
54
+ 0–1.7%). **Scrubber: pattern-level only; SlayerLab/NERGAL has not run.** The
55
+ source merges with `release: None` and is not admitted to a release until its
56
+ shard has been re-run through NERGAL.
57
+
58
+ ## Collection, normalization, filtering
59
+
60
+ Committed scripts: `src/fetch_nik_control_reports_pl.py` (acquisition + pypdf
61
+ extraction) and `src/clean_nik_control_reports_pl.py` (normalization, tested by
62
+ `src/test_nik_control_reports_pl_contract.py`). Cleaning steps:
63
+
64
+ - Unicode NFKC; soft hyphens dropped; control characters dropped; space zoo
65
+ collapsed; blank runs capped at one empty line (paragraph structure kept).
66
+ - De-hyphenation: `słowo-\nsłowo` joined between lowercase fragments (layout
67
+ break); mid-line hyphens and pre-uppercase breaks kept.
68
+ - Page furniture: `strona N z M` markers and standalone page numbers dropped;
69
+ section numbering (I., 1.1, Art. 5) kept — it is content in these reports.
70
+ - Boilerplate: frequency-detected, not hand-listed. Rule 1: exact line ≥ 20 chars
71
+ in ≥ 33% of documents. Rule 2: exact line ≥ 3 chars with ≥ 300 occurrences,
72
+ recurring ≥ 5× per containing document (per-page running headers) in ≥ 50
73
+ documents. 21 lines dropped (running section headers with pypdf ligature
74
+ variants, table labels). Calibrated on the shard's top-line frequency table;
75
+ single wrapped words (`faktycznego` at 3.4× per containing document) fall
76
+ below the floors and are kept. Known limit: pypdf ligature damage (`Ż` → `Ŝ`
77
+ etc.) splits header variants into separate lines; each variant is detected
78
+ on its own, damaged occurrences whose variant is rare can survive.
79
+ - Identifier redaction as above. `build_dynaword.py` gates: length �� 200,
80
+ diacritic ratio, OCR alpha ratio, exact sha1 dedup.
81
+
82
+ Numbers (from the clean run): 4,621 rows in, 311,654,583 chars in,
83
+ 309,053,905 chars out, 21 boilerplate lines dropped, 146 + 3 identifiers
84
+ redacted.
85
+
86
+ ## Why include it / what it adds
87
+
88
+ DynaWord's government/administrative slice is short on long-form analytical
89
+ prose: NIK reports are structured argument (problem statement → evidence →
90
+ assessment → recommendations) with dense legal and statistical vocabulary — a
91
+ register between `dziennik_ustaw`'s normative texts and `parliamentary`'s
92
+ speeches, and the largest state-audit corpus published openly in Poland.
93
+
94
+ Bias and quality caveats a downstream user should weigh: register is legalese-
95
+ analytical, not conversational; only NIK's own published wording is included
96
+ (consolidated/updated versions and pre-2005 GIODO-era material are not); PDF
97
+ text-layer extraction leaves wrapped single words on their own lines and rare
98
+ ligature artifacts; created is year-precision.
99
+
100
+ ## Not checked
101
+
102
+ - Whether art. 4 pkt 2 covers third-party works quoted inside the reports
103
+ (open legal question; documents are not filtered).
104
+ - Scanned annexes without a PDF text layer (extraction empty) are not in the
105
+ shard; how many exist is unknown.
106
+ - Publication dates kept at year precision (full dates were only on listings).
107
+ - nik.gov.pl terms of use and robots.txt not read (fetching polite: 3 workers,
108
+ 0.15 s delay).
109
+ - Whether art. 4 pkt 2 is unchanged in consolidations later than Dz.U. 2000
110
+ poz. 904 (I: unchanged).
111
+ - SlayerLab/NERGAL not run over this shard (pattern-level redaction only).
112
+ - Whether every redacted 11-digit number was a PESEL (regex-based, I-level).
data/nik_control_reports_pl/nik_control_reports_pl.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:423bc5fa57236757fe3240f064ed265cc357eae89b7afd628eb5997f783355c1
3
+ size 99544079
data/nik_control_reports_pl/nik_control_reports_pl.sampling.json ADDED
@@ -0,0 +1,2041 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "seed": 20261010,
3
+ "method": "stratified uniform random sample without replacement, strata = control-number prefix (record_id P|I|K|S|R, rest = other)",
4
+ "strata": {
5
+ "I": {
6
+ "population": 481,
7
+ "sample_n": 40
8
+ },
9
+ "K": {
10
+ "population": 385,
11
+ "sample_n": 40
12
+ },
13
+ "P": {
14
+ "population": 3340,
15
+ "sample_n": 60
16
+ },
17
+ "R": {
18
+ "population": 233,
19
+ "sample_n": 40
20
+ },
21
+ "S": {
22
+ "population": 182,
23
+ "sample_n": 40
24
+ }
25
+ },
26
+ "sample_n": 220,
27
+ "checks": {
28
+ "quote_spans_40plus_chars": {
29
+ "hits": 184,
30
+ "wilson_95": [
31
+ 0.782,
32
+ 0.879
33
+ ]
34
+ },
35
+ "third_party_citation_refs": {
36
+ "hits": 104,
37
+ "wilson_95": [
38
+ 0.408,
39
+ 0.539
40
+ ]
41
+ },
42
+ "named_person_pan_pani_pattern": {
43
+ "hits": 132,
44
+ "wilson_95": [
45
+ 0.534,
46
+ 0.662
47
+ ]
48
+ },
49
+ "pesel_or_account_residual": {
50
+ "hits": 0,
51
+ "wilson_95": [
52
+ 0.0,
53
+ 0.017
54
+ ]
55
+ }
56
+ },
57
+ "flagged_char_share": 0.5971,
58
+ "classification_level": "I (regex heuristics; 12 documents hand-read on 2026-10-10 and matched the heuristic class - those 12 are V)",
59
+ "items": [
60
+ {
61
+ "record_id": "I/10/010#41",
62
+ "stratum": "I",
63
+ "class": "mixed (quoted third-party text inside an official document)",
64
+ "quote_chars": 139,
65
+ "citation_ref": false,
66
+ "person_name": true,
67
+ "identifier_residual": false
68
+ },
69
+ {
70
+ "record_id": "I/10/003#5",
71
+ "stratum": "I",
72
+ "class": "mixed (quoted third-party text inside an official document)",
73
+ "quote_chars": 1966,
74
+ "citation_ref": false,
75
+ "person_name": true,
76
+ "identifier_residual": false
77
+ },
78
+ {
79
+ "record_id": "I/14/004#2",
80
+ "stratum": "I",
81
+ "class": "mixed (quoted third-party text inside an official document)",
82
+ "quote_chars": 4480,
83
+ "citation_ref": true,
84
+ "person_name": false,
85
+ "identifier_residual": false
86
+ },
87
+ {
88
+ "record_id": "I/17/004#14",
89
+ "stratum": "I",
90
+ "class": "official-document (NIK authored)",
91
+ "quote_chars": 0,
92
+ "citation_ref": false,
93
+ "person_name": true,
94
+ "identifier_residual": false
95
+ },
96
+ {
97
+ "record_id": "I/06/015#9",
98
+ "stratum": "I",
99
+ "class": "mixed (quoted third-party text inside an official document)",
100
+ "quote_chars": 3834,
101
+ "citation_ref": false,
102
+ "person_name": true,
103
+ "identifier_residual": false
104
+ },
105
+ {
106
+ "record_id": "I/15/006#6",
107
+ "stratum": "I",
108
+ "class": "mixed (quoted third-party text inside an official document)",
109
+ "quote_chars": 3729,
110
+ "citation_ref": false,
111
+ "person_name": false,
112
+ "identifier_residual": false
113
+ },
114
+ {
115
+ "record_id": "I/18/009#1",
116
+ "stratum": "I",
117
+ "class": "mixed (quoted third-party text inside an official document)",
118
+ "quote_chars": 19094,
119
+ "citation_ref": false,
120
+ "person_name": true,
121
+ "identifier_residual": false
122
+ },
123
+ {
124
+ "record_id": "I/10/007#0",
125
+ "stratum": "I",
126
+ "class": "official-document (NIK authored)",
127
+ "quote_chars": 0,
128
+ "citation_ref": false,
129
+ "person_name": true,
130
+ "identifier_residual": false
131
+ },
132
+ {
133
+ "record_id": "I/10/010#30",
134
+ "stratum": "I",
135
+ "class": "mixed (quoted third-party text inside an official document)",
136
+ "quote_chars": 112,
137
+ "citation_ref": false,
138
+ "person_name": true,
139
+ "identifier_residual": false
140
+ },
141
+ {
142
+ "record_id": "I/10/031#2",
143
+ "stratum": "I",
144
+ "class": "mixed (quoted third-party text inside an official document)",
145
+ "quote_chars": 666,
146
+ "citation_ref": false,
147
+ "person_name": true,
148
+ "identifier_residual": false
149
+ },
150
+ {
151
+ "record_id": "I/10/010#29",
152
+ "stratum": "I",
153
+ "class": "mixed (quoted third-party text inside an official document)",
154
+ "quote_chars": 149,
155
+ "citation_ref": false,
156
+ "person_name": true,
157
+ "identifier_residual": false
158
+ },
159
+ {
160
+ "record_id": "I/10/010#44",
161
+ "stratum": "I",
162
+ "class": "mixed (quoted third-party text inside an official document)",
163
+ "quote_chars": 135,
164
+ "citation_ref": false,
165
+ "person_name": true,
166
+ "identifier_residual": false
167
+ },
168
+ {
169
+ "record_id": "I/10/006#3",
170
+ "stratum": "I",
171
+ "class": "mixed (quoted third-party text inside an official document)",
172
+ "quote_chars": 894,
173
+ "citation_ref": true,
174
+ "person_name": true,
175
+ "identifier_residual": false
176
+ },
177
+ {
178
+ "record_id": "I/13/013#2",
179
+ "stratum": "I",
180
+ "class": "mixed (quoted third-party text inside an official document)",
181
+ "quote_chars": 7902,
182
+ "citation_ref": false,
183
+ "person_name": false,
184
+ "identifier_residual": false
185
+ },
186
+ {
187
+ "record_id": "I/09/012#0",
188
+ "stratum": "I",
189
+ "class": "official-document (NIK authored)",
190
+ "quote_chars": 0,
191
+ "citation_ref": false,
192
+ "person_name": true,
193
+ "identifier_residual": false
194
+ },
195
+ {
196
+ "record_id": "I/09/008#0",
197
+ "stratum": "I",
198
+ "class": "mixed (quoted third-party text inside an official document)",
199
+ "quote_chars": 2655,
200
+ "citation_ref": false,
201
+ "person_name": true,
202
+ "identifier_residual": false
203
+ },
204
+ {
205
+ "record_id": "I/10/025#1",
206
+ "stratum": "I",
207
+ "class": "mixed (quoted third-party text inside an official document)",
208
+ "quote_chars": 13163,
209
+ "citation_ref": true,
210
+ "person_name": true,
211
+ "identifier_residual": false
212
+ },
213
+ {
214
+ "record_id": "I/17/002#1",
215
+ "stratum": "I",
216
+ "class": "mixed (quoted third-party text inside an official document)",
217
+ "quote_chars": 204,
218
+ "citation_ref": true,
219
+ "person_name": true,
220
+ "identifier_residual": false
221
+ },
222
+ {
223
+ "record_id": "I/12/003#3",
224
+ "stratum": "I",
225
+ "class": "mixed (quoted third-party text inside an official document)",
226
+ "quote_chars": 4428,
227
+ "citation_ref": false,
228
+ "person_name": true,
229
+ "identifier_residual": false
230
+ },
231
+ {
232
+ "record_id": "I/25/001#1",
233
+ "stratum": "I",
234
+ "class": "mixed (quoted third-party text inside an official document)",
235
+ "quote_chars": 66436,
236
+ "citation_ref": true,
237
+ "person_name": true,
238
+ "identifier_residual": false
239
+ },
240
+ {
241
+ "record_id": "I/17/004#6",
242
+ "stratum": "I",
243
+ "class": "mixed (quoted third-party text inside an official document)",
244
+ "quote_chars": 13396,
245
+ "citation_ref": false,
246
+ "person_name": false,
247
+ "identifier_residual": false
248
+ },
249
+ {
250
+ "record_id": "I/13/002#5",
251
+ "stratum": "I",
252
+ "class": "mixed (quoted third-party text inside an official document)",
253
+ "quote_chars": 26637,
254
+ "citation_ref": true,
255
+ "person_name": true,
256
+ "identifier_residual": false
257
+ },
258
+ {
259
+ "record_id": "I/12/009#17",
260
+ "stratum": "I",
261
+ "class": "official-document (NIK authored)",
262
+ "quote_chars": 0,
263
+ "citation_ref": false,
264
+ "person_name": true,
265
+ "identifier_residual": false
266
+ },
267
+ {
268
+ "record_id": "I/10/010#12",
269
+ "stratum": "I",
270
+ "class": "mixed (quoted third-party text inside an official document)",
271
+ "quote_chars": 145,
272
+ "citation_ref": false,
273
+ "person_name": true,
274
+ "identifier_residual": false
275
+ },
276
+ {
277
+ "record_id": "I/12/002#2",
278
+ "stratum": "I",
279
+ "class": "official-document (NIK authored)",
280
+ "quote_chars": 0,
281
+ "citation_ref": false,
282
+ "person_name": true,
283
+ "identifier_residual": false
284
+ },
285
+ {
286
+ "record_id": "I/13/008#3",
287
+ "stratum": "I",
288
+ "class": "mixed (quoted third-party text inside an official document)",
289
+ "quote_chars": 2742,
290
+ "citation_ref": false,
291
+ "person_name": false,
292
+ "identifier_residual": false
293
+ },
294
+ {
295
+ "record_id": "I/17/004#4",
296
+ "stratum": "I",
297
+ "class": "mixed (quoted third-party text inside an official document)",
298
+ "quote_chars": 12089,
299
+ "citation_ref": false,
300
+ "person_name": false,
301
+ "identifier_residual": false
302
+ },
303
+ {
304
+ "record_id": "I/09/009#0",
305
+ "stratum": "I",
306
+ "class": "official-document (NIK authored)",
307
+ "quote_chars": 0,
308
+ "citation_ref": false,
309
+ "person_name": true,
310
+ "identifier_residual": false
311
+ },
312
+ {
313
+ "record_id": "I/09/012#10",
314
+ "stratum": "I",
315
+ "class": "mixed (quoted third-party text inside an official document)",
316
+ "quote_chars": 1042,
317
+ "citation_ref": false,
318
+ "person_name": true,
319
+ "identifier_residual": false
320
+ },
321
+ {
322
+ "record_id": "I/10/010#38",
323
+ "stratum": "I",
324
+ "class": "official-document (NIK authored)",
325
+ "quote_chars": 0,
326
+ "citation_ref": false,
327
+ "person_name": true,
328
+ "identifier_residual": false
329
+ },
330
+ {
331
+ "record_id": "I/10/010#10",
332
+ "stratum": "I",
333
+ "class": "mixed (quoted third-party text inside an official document)",
334
+ "quote_chars": 133,
335
+ "citation_ref": false,
336
+ "person_name": true,
337
+ "identifier_residual": false
338
+ },
339
+ {
340
+ "record_id": "I/10/010#15",
341
+ "stratum": "I",
342
+ "class": "mixed (quoted third-party text inside an official document)",
343
+ "quote_chars": 118,
344
+ "citation_ref": false,
345
+ "person_name": true,
346
+ "identifier_residual": false
347
+ },
348
+ {
349
+ "record_id": "I/08/009#0",
350
+ "stratum": "I",
351
+ "class": "mixed (quoted third-party text inside an official document)",
352
+ "quote_chars": 297,
353
+ "citation_ref": false,
354
+ "person_name": true,
355
+ "identifier_residual": false
356
+ },
357
+ {
358
+ "record_id": "I/17/001#5",
359
+ "stratum": "I",
360
+ "class": "mixed (quoted third-party text inside an official document)",
361
+ "quote_chars": 5917,
362
+ "citation_ref": false,
363
+ "person_name": true,
364
+ "identifier_residual": false
365
+ },
366
+ {
367
+ "record_id": "I/08/006#3",
368
+ "stratum": "I",
369
+ "class": "official-document (NIK authored)",
370
+ "quote_chars": 0,
371
+ "citation_ref": false,
372
+ "person_name": false,
373
+ "identifier_residual": false
374
+ },
375
+ {
376
+ "record_id": "I/14/006#1",
377
+ "stratum": "I",
378
+ "class": "mixed (quoted third-party text inside an official document)",
379
+ "quote_chars": 886,
380
+ "citation_ref": true,
381
+ "person_name": true,
382
+ "identifier_residual": false
383
+ },
384
+ {
385
+ "record_id": "I/08/002#1",
386
+ "stratum": "I",
387
+ "class": "official-document (NIK authored)",
388
+ "quote_chars": 0,
389
+ "citation_ref": true,
390
+ "person_name": true,
391
+ "identifier_residual": false
392
+ },
393
+ {
394
+ "record_id": "I/08/005#2",
395
+ "stratum": "I",
396
+ "class": "official-document (NIK authored)",
397
+ "quote_chars": 0,
398
+ "citation_ref": false,
399
+ "person_name": true,
400
+ "identifier_residual": false
401
+ },
402
+ {
403
+ "record_id": "I/10/009#3",
404
+ "stratum": "I",
405
+ "class": "mixed (quoted third-party text inside an official document)",
406
+ "quote_chars": 862,
407
+ "citation_ref": false,
408
+ "person_name": true,
409
+ "identifier_residual": false
410
+ },
411
+ {
412
+ "record_id": "I/10/010#25",
413
+ "stratum": "I",
414
+ "class": "mixed (quoted third-party text inside an official document)",
415
+ "quote_chars": 5603,
416
+ "citation_ref": false,
417
+ "person_name": true,
418
+ "identifier_residual": false
419
+ },
420
+ {
421
+ "record_id": "K/12/005#7",
422
+ "stratum": "K",
423
+ "class": "mixed (quoted third-party text inside an official document)",
424
+ "quote_chars": 98,
425
+ "citation_ref": false,
426
+ "person_name": true,
427
+ "identifier_residual": false
428
+ },
429
+ {
430
+ "record_id": "K/10/020#0",
431
+ "stratum": "K",
432
+ "class": "official-document (NIK authored)",
433
+ "quote_chars": 0,
434
+ "citation_ref": false,
435
+ "person_name": true,
436
+ "identifier_residual": false
437
+ },
438
+ {
439
+ "record_id": "K/19/001#2",
440
+ "stratum": "K",
441
+ "class": "mixed (quoted third-party text inside an official document)",
442
+ "quote_chars": 5612,
443
+ "citation_ref": true,
444
+ "person_name": true,
445
+ "identifier_residual": false
446
+ },
447
+ {
448
+ "record_id": "K/08/008#2",
449
+ "stratum": "K",
450
+ "class": "mixed (quoted third-party text inside an official document)",
451
+ "quote_chars": 4149,
452
+ "citation_ref": true,
453
+ "person_name": true,
454
+ "identifier_residual": false
455
+ },
456
+ {
457
+ "record_id": "K/13/010#0",
458
+ "stratum": "K",
459
+ "class": "official-document (NIK authored)",
460
+ "quote_chars": 0,
461
+ "citation_ref": false,
462
+ "person_name": false,
463
+ "identifier_residual": false
464
+ },
465
+ {
466
+ "record_id": "K/12/005#3",
467
+ "stratum": "K",
468
+ "class": "mixed (quoted third-party text inside an official document)",
469
+ "quote_chars": 3291,
470
+ "citation_ref": false,
471
+ "person_name": true,
472
+ "identifier_residual": false
473
+ },
474
+ {
475
+ "record_id": "K/08/020#0",
476
+ "stratum": "K",
477
+ "class": "official-document (NIK authored)",
478
+ "quote_chars": 0,
479
+ "citation_ref": false,
480
+ "person_name": false,
481
+ "identifier_residual": false
482
+ },
483
+ {
484
+ "record_id": "K/22/002#9",
485
+ "stratum": "K",
486
+ "class": "mixed (quoted third-party text inside an official document)",
487
+ "quote_chars": 2101,
488
+ "citation_ref": true,
489
+ "person_name": true,
490
+ "identifier_residual": false
491
+ },
492
+ {
493
+ "record_id": "K/12/006#0",
494
+ "stratum": "K",
495
+ "class": "mixed (quoted third-party text inside an official document)",
496
+ "quote_chars": 158,
497
+ "citation_ref": false,
498
+ "person_name": false,
499
+ "identifier_residual": false
500
+ },
501
+ {
502
+ "record_id": "K/15/005#1",
503
+ "stratum": "K",
504
+ "class": "mixed (quoted third-party text inside an official document)",
505
+ "quote_chars": 46006,
506
+ "citation_ref": false,
507
+ "person_name": false,
508
+ "identifier_residual": false
509
+ },
510
+ {
511
+ "record_id": "K/15/002#2",
512
+ "stratum": "K",
513
+ "class": "mixed (quoted third-party text inside an official document)",
514
+ "quote_chars": 8578,
515
+ "citation_ref": true,
516
+ "person_name": false,
517
+ "identifier_residual": false
518
+ },
519
+ {
520
+ "record_id": "K/08/006#4",
521
+ "stratum": "K",
522
+ "class": "official-document (NIK authored)",
523
+ "quote_chars": 0,
524
+ "citation_ref": true,
525
+ "person_name": true,
526
+ "identifier_residual": false
527
+ },
528
+ {
529
+ "record_id": "K/15/002#3",
530
+ "stratum": "K",
531
+ "class": "mixed (quoted third-party text inside an official document)",
532
+ "quote_chars": 19849,
533
+ "citation_ref": true,
534
+ "person_name": false,
535
+ "identifier_residual": false
536
+ },
537
+ {
538
+ "record_id": "K/13/001#3",
539
+ "stratum": "K",
540
+ "class": "mixed (quoted third-party text inside an official document)",
541
+ "quote_chars": 14153,
542
+ "citation_ref": true,
543
+ "person_name": false,
544
+ "identifier_residual": false
545
+ },
546
+ {
547
+ "record_id": "K/09/006#1",
548
+ "stratum": "K",
549
+ "class": "mixed (quoted third-party text inside an official document)",
550
+ "quote_chars": 2715,
551
+ "citation_ref": false,
552
+ "person_name": true,
553
+ "identifier_residual": false
554
+ },
555
+ {
556
+ "record_id": "K/17/002#0",
557
+ "stratum": "K",
558
+ "class": "mixed (quoted third-party text inside an official document)",
559
+ "quote_chars": 6166,
560
+ "citation_ref": false,
561
+ "person_name": false,
562
+ "identifier_residual": false
563
+ },
564
+ {
565
+ "record_id": "K/09/012#2",
566
+ "stratum": "K",
567
+ "class": "official-document (NIK authored)",
568
+ "quote_chars": 0,
569
+ "citation_ref": false,
570
+ "person_name": true,
571
+ "identifier_residual": false
572
+ },
573
+ {
574
+ "record_id": "K/08/009#0",
575
+ "stratum": "K",
576
+ "class": "official-document (NIK authored)",
577
+ "quote_chars": 0,
578
+ "citation_ref": true,
579
+ "person_name": true,
580
+ "identifier_residual": false
581
+ },
582
+ {
583
+ "record_id": "K/10/037#0",
584
+ "stratum": "K",
585
+ "class": "official-document (NIK authored)",
586
+ "quote_chars": 0,
587
+ "citation_ref": false,
588
+ "person_name": true,
589
+ "identifier_residual": false
590
+ },
591
+ {
592
+ "record_id": "K/10/030#3",
593
+ "stratum": "K",
594
+ "class": "official-document (NIK authored)",
595
+ "quote_chars": 0,
596
+ "citation_ref": true,
597
+ "person_name": true,
598
+ "identifier_residual": false
599
+ },
600
+ {
601
+ "record_id": "K/17/003#0",
602
+ "stratum": "K",
603
+ "class": "mixed (quoted third-party text inside an official document)",
604
+ "quote_chars": 688,
605
+ "citation_ref": true,
606
+ "person_name": false,
607
+ "identifier_residual": false
608
+ },
609
+ {
610
+ "record_id": "K/16/003#0",
611
+ "stratum": "K",
612
+ "class": "mixed (quoted third-party text inside an official document)",
613
+ "quote_chars": 5088,
614
+ "citation_ref": false,
615
+ "person_name": true,
616
+ "identifier_residual": false
617
+ },
618
+ {
619
+ "record_id": "K/19/003#0",
620
+ "stratum": "K",
621
+ "class": "mixed (quoted third-party text inside an official document)",
622
+ "quote_chars": 54,
623
+ "citation_ref": false,
624
+ "person_name": true,
625
+ "identifier_residual": false
626
+ },
627
+ {
628
+ "record_id": "K/17/003#1",
629
+ "stratum": "K",
630
+ "class": "mixed (quoted third-party text inside an official document)",
631
+ "quote_chars": 18156,
632
+ "citation_ref": true,
633
+ "person_name": false,
634
+ "identifier_residual": false
635
+ },
636
+ {
637
+ "record_id": "K/13/001#2",
638
+ "stratum": "K",
639
+ "class": "mixed (quoted third-party text inside an official document)",
640
+ "quote_chars": 8840,
641
+ "citation_ref": true,
642
+ "person_name": false,
643
+ "identifier_residual": false
644
+ },
645
+ {
646
+ "record_id": "K/14/007#1",
647
+ "stratum": "K",
648
+ "class": "mixed (quoted third-party text inside an official document)",
649
+ "quote_chars": 8307,
650
+ "citation_ref": true,
651
+ "person_name": false,
652
+ "identifier_residual": false
653
+ },
654
+ {
655
+ "record_id": "K/09/012#0",
656
+ "stratum": "K",
657
+ "class": "mixed (quoted third-party text inside an official document)",
658
+ "quote_chars": 128,
659
+ "citation_ref": false,
660
+ "person_name": true,
661
+ "identifier_residual": false
662
+ },
663
+ {
664
+ "record_id": "K/19/002#0",
665
+ "stratum": "K",
666
+ "class": "mixed (quoted third-party text inside an official document)",
667
+ "quote_chars": 15163,
668
+ "citation_ref": false,
669
+ "person_name": true,
670
+ "identifier_residual": false
671
+ },
672
+ {
673
+ "record_id": "K/14/011#0",
674
+ "stratum": "K",
675
+ "class": "official-document (NIK authored)",
676
+ "quote_chars": 0,
677
+ "citation_ref": false,
678
+ "person_name": false,
679
+ "identifier_residual": false
680
+ },
681
+ {
682
+ "record_id": "K/12/011#1",
683
+ "stratum": "K",
684
+ "class": "mixed (quoted third-party text inside an official document)",
685
+ "quote_chars": 113,
686
+ "citation_ref": true,
687
+ "person_name": false,
688
+ "identifier_residual": false
689
+ },
690
+ {
691
+ "record_id": "K/13/007#1",
692
+ "stratum": "K",
693
+ "class": "mixed (quoted third-party text inside an official document)",
694
+ "quote_chars": 9722,
695
+ "citation_ref": false,
696
+ "person_name": false,
697
+ "identifier_residual": false
698
+ },
699
+ {
700
+ "record_id": "K/08/011#4",
701
+ "stratum": "K",
702
+ "class": "mixed (quoted third-party text inside an official document)",
703
+ "quote_chars": 4736,
704
+ "citation_ref": false,
705
+ "person_name": true,
706
+ "identifier_residual": false
707
+ },
708
+ {
709
+ "record_id": "K/10/032#4",
710
+ "stratum": "K",
711
+ "class": "official-document (NIK authored)",
712
+ "quote_chars": 0,
713
+ "citation_ref": false,
714
+ "person_name": true,
715
+ "identifier_residual": false
716
+ },
717
+ {
718
+ "record_id": "K/07/010#0",
719
+ "stratum": "K",
720
+ "class": "official-document (NIK authored)",
721
+ "quote_chars": 0,
722
+ "citation_ref": true,
723
+ "person_name": true,
724
+ "identifier_residual": false
725
+ },
726
+ {
727
+ "record_id": "K/14/001#2",
728
+ "stratum": "K",
729
+ "class": "mixed (quoted third-party text inside an official document)",
730
+ "quote_chars": 263,
731
+ "citation_ref": true,
732
+ "person_name": false,
733
+ "identifier_residual": false
734
+ },
735
+ {
736
+ "record_id": "K/14/001#1",
737
+ "stratum": "K",
738
+ "class": "mixed (quoted third-party text inside an official document)",
739
+ "quote_chars": 2449,
740
+ "citation_ref": true,
741
+ "person_name": false,
742
+ "identifier_residual": false
743
+ },
744
+ {
745
+ "record_id": "K/15/002#1",
746
+ "stratum": "K",
747
+ "class": "mixed (quoted third-party text inside an official document)",
748
+ "quote_chars": 26774,
749
+ "citation_ref": false,
750
+ "person_name": false,
751
+ "identifier_residual": false
752
+ },
753
+ {
754
+ "record_id": "K/22/002#4",
755
+ "stratum": "K",
756
+ "class": "mixed (quoted third-party text inside an official document)",
757
+ "quote_chars": 26506,
758
+ "citation_ref": true,
759
+ "person_name": true,
760
+ "identifier_residual": false
761
+ },
762
+ {
763
+ "record_id": "K/10/008#2",
764
+ "stratum": "K",
765
+ "class": "mixed (quoted third-party text inside an official document)",
766
+ "quote_chars": 3398,
767
+ "citation_ref": false,
768
+ "person_name": true,
769
+ "identifier_residual": false
770
+ },
771
+ {
772
+ "record_id": "K/09/001#3",
773
+ "stratum": "K",
774
+ "class": "mixed (quoted third-party text inside an official document)",
775
+ "quote_chars": 326,
776
+ "citation_ref": true,
777
+ "person_name": false,
778
+ "identifier_residual": false
779
+ },
780
+ {
781
+ "record_id": "P/06/085#2",
782
+ "stratum": "P",
783
+ "class": "mixed (quoted third-party text inside an official document)",
784
+ "quote_chars": 32718,
785
+ "citation_ref": true,
786
+ "person_name": false,
787
+ "identifier_residual": false
788
+ },
789
+ {
790
+ "record_id": "P/18/078#0",
791
+ "stratum": "P",
792
+ "class": "mixed (quoted third-party text inside an official document)",
793
+ "quote_chars": 45166,
794
+ "citation_ref": true,
795
+ "person_name": false,
796
+ "identifier_residual": false
797
+ },
798
+ {
799
+ "record_id": "P/21/020#0",
800
+ "stratum": "P",
801
+ "class": "mixed (quoted third-party text inside an official document)",
802
+ "quote_chars": 188424,
803
+ "citation_ref": true,
804
+ "person_name": true,
805
+ "identifier_residual": false
806
+ },
807
+ {
808
+ "record_id": "P/14/018#4",
809
+ "stratum": "P",
810
+ "class": "mixed (quoted third-party text inside an official document)",
811
+ "quote_chars": 12730,
812
+ "citation_ref": false,
813
+ "person_name": false,
814
+ "identifier_residual": false
815
+ },
816
+ {
817
+ "record_id": "P/07/057#1",
818
+ "stratum": "P",
819
+ "class": "mixed (quoted third-party text inside an official document)",
820
+ "quote_chars": 449,
821
+ "citation_ref": false,
822
+ "person_name": true,
823
+ "identifier_residual": false
824
+ },
825
+ {
826
+ "record_id": "P/12/077#0",
827
+ "stratum": "P",
828
+ "class": "mixed (quoted third-party text inside an official document)",
829
+ "quote_chars": 148474,
830
+ "citation_ref": true,
831
+ "person_name": true,
832
+ "identifier_residual": false
833
+ },
834
+ {
835
+ "record_id": "P/08/029#0",
836
+ "stratum": "P",
837
+ "class": "mixed (quoted third-party text inside an official document)",
838
+ "quote_chars": 170,
839
+ "citation_ref": false,
840
+ "person_name": true,
841
+ "identifier_residual": false
842
+ },
843
+ {
844
+ "record_id": "P/24/017#1",
845
+ "stratum": "P",
846
+ "class": "mixed (quoted third-party text inside an official document)",
847
+ "quote_chars": 176475,
848
+ "citation_ref": true,
849
+ "person_name": false,
850
+ "identifier_residual": false
851
+ },
852
+ {
853
+ "record_id": "P/14/096#4",
854
+ "stratum": "P",
855
+ "class": "mixed (quoted third-party text inside an official document)",
856
+ "quote_chars": 30175,
857
+ "citation_ref": true,
858
+ "person_name": false,
859
+ "identifier_residual": false
860
+ },
861
+ {
862
+ "record_id": "P/12/116#3",
863
+ "stratum": "P",
864
+ "class": "mixed (quoted third-party text inside an official document)",
865
+ "quote_chars": 19434,
866
+ "citation_ref": true,
867
+ "person_name": true,
868
+ "identifier_residual": false
869
+ },
870
+ {
871
+ "record_id": "P/21/081#1",
872
+ "stratum": "P",
873
+ "class": "mixed (quoted third-party text inside an official document)",
874
+ "quote_chars": 3200,
875
+ "citation_ref": false,
876
+ "person_name": false,
877
+ "identifier_residual": false
878
+ },
879
+ {
880
+ "record_id": "P/13/141#2",
881
+ "stratum": "P",
882
+ "class": "mixed (quoted third-party text inside an official document)",
883
+ "quote_chars": 19212,
884
+ "citation_ref": true,
885
+ "person_name": false,
886
+ "identifier_residual": false
887
+ },
888
+ {
889
+ "record_id": "P/14/122#1",
890
+ "stratum": "P",
891
+ "class": "mixed (quoted third-party text inside an official document)",
892
+ "quote_chars": 19229,
893
+ "citation_ref": true,
894
+ "person_name": false,
895
+ "identifier_residual": false
896
+ },
897
+ {
898
+ "record_id": "P/09/185#0",
899
+ "stratum": "P",
900
+ "class": "mixed (quoted third-party text inside an official document)",
901
+ "quote_chars": 29689,
902
+ "citation_ref": true,
903
+ "person_name": false,
904
+ "identifier_residual": false
905
+ },
906
+ {
907
+ "record_id": "P/14/103#0",
908
+ "stratum": "P",
909
+ "class": "mixed (quoted third-party text inside an official document)",
910
+ "quote_chars": 82717,
911
+ "citation_ref": true,
912
+ "person_name": false,
913
+ "identifier_residual": false
914
+ },
915
+ {
916
+ "record_id": "P/08/166#10",
917
+ "stratum": "P",
918
+ "class": "mixed (quoted third-party text inside an official document)",
919
+ "quote_chars": 2086,
920
+ "citation_ref": false,
921
+ "person_name": true,
922
+ "identifier_residual": false
923
+ },
924
+ {
925
+ "record_id": "P/16/012#0",
926
+ "stratum": "P",
927
+ "class": "mixed (quoted third-party text inside an official document)",
928
+ "quote_chars": 142229,
929
+ "citation_ref": true,
930
+ "person_name": false,
931
+ "identifier_residual": false
932
+ },
933
+ {
934
+ "record_id": "P/08/144#1",
935
+ "stratum": "P",
936
+ "class": "mixed (quoted third-party text inside an official document)",
937
+ "quote_chars": 3395,
938
+ "citation_ref": true,
939
+ "person_name": true,
940
+ "identifier_residual": false
941
+ },
942
+ {
943
+ "record_id": "P/12/061#3",
944
+ "stratum": "P",
945
+ "class": "mixed (quoted third-party text inside an official document)",
946
+ "quote_chars": 19534,
947
+ "citation_ref": false,
948
+ "person_name": true,
949
+ "identifier_residual": false
950
+ },
951
+ {
952
+ "record_id": "P/18/081#10",
953
+ "stratum": "P",
954
+ "class": "mixed (quoted third-party text inside an official document)",
955
+ "quote_chars": 135,
956
+ "citation_ref": true,
957
+ "person_name": false,
958
+ "identifier_residual": false
959
+ },
960
+ {
961
+ "record_id": "P/10/092#4",
962
+ "stratum": "P",
963
+ "class": "mixed (quoted third-party text inside an official document)",
964
+ "quote_chars": 3753,
965
+ "citation_ref": false,
966
+ "person_name": true,
967
+ "identifier_residual": false
968
+ },
969
+ {
970
+ "record_id": "P/10/183#4",
971
+ "stratum": "P",
972
+ "class": "mixed (quoted third-party text inside an official document)",
973
+ "quote_chars": 131,
974
+ "citation_ref": false,
975
+ "person_name": true,
976
+ "identifier_residual": false
977
+ },
978
+ {
979
+ "record_id": "P/09/114#1",
980
+ "stratum": "P",
981
+ "class": "mixed (quoted third-party text inside an official document)",
982
+ "quote_chars": 7254,
983
+ "citation_ref": true,
984
+ "person_name": true,
985
+ "identifier_residual": false
986
+ },
987
+ {
988
+ "record_id": "P/07/045#0",
989
+ "stratum": "P",
990
+ "class": "official-document (NIK authored)",
991
+ "quote_chars": 0,
992
+ "citation_ref": false,
993
+ "person_name": true,
994
+ "identifier_residual": false
995
+ },
996
+ {
997
+ "record_id": "P/10/026#0",
998
+ "stratum": "P",
999
+ "class": "mixed (quoted third-party text inside an official document)",
1000
+ "quote_chars": 52956,
1001
+ "citation_ref": true,
1002
+ "person_name": false,
1003
+ "identifier_residual": false
1004
+ },
1005
+ {
1006
+ "record_id": "P/09/185#5",
1007
+ "stratum": "P",
1008
+ "class": "mixed (quoted third-party text inside an official document)",
1009
+ "quote_chars": 7246,
1010
+ "citation_ref": false,
1011
+ "person_name": true,
1012
+ "identifier_residual": false
1013
+ },
1014
+ {
1015
+ "record_id": "P/19/108#9",
1016
+ "stratum": "P",
1017
+ "class": "mixed (quoted third-party text inside an official document)",
1018
+ "quote_chars": 23736,
1019
+ "citation_ref": true,
1020
+ "person_name": false,
1021
+ "identifier_residual": false
1022
+ },
1023
+ {
1024
+ "record_id": "P/09/176#3",
1025
+ "stratum": "P",
1026
+ "class": "mixed (quoted third-party text inside an official document)",
1027
+ "quote_chars": 341,
1028
+ "citation_ref": false,
1029
+ "person_name": true,
1030
+ "identifier_residual": false
1031
+ },
1032
+ {
1033
+ "record_id": "P/06/131#0",
1034
+ "stratum": "P",
1035
+ "class": "mixed (quoted third-party text inside an official document)",
1036
+ "quote_chars": 240164,
1037
+ "citation_ref": true,
1038
+ "person_name": true,
1039
+ "identifier_residual": false
1040
+ },
1041
+ {
1042
+ "record_id": "P/06/096#1",
1043
+ "stratum": "P",
1044
+ "class": "mixed (quoted third-party text inside an official document)",
1045
+ "quote_chars": 177372,
1046
+ "citation_ref": true,
1047
+ "person_name": true,
1048
+ "identifier_residual": false
1049
+ },
1050
+ {
1051
+ "record_id": "P/14/015#1",
1052
+ "stratum": "P",
1053
+ "class": "mixed (quoted third-party text inside an official document)",
1054
+ "quote_chars": 43490,
1055
+ "citation_ref": true,
1056
+ "person_name": false,
1057
+ "identifier_residual": false
1058
+ },
1059
+ {
1060
+ "record_id": "P/19/019#5",
1061
+ "stratum": "P",
1062
+ "class": "mixed (quoted third-party text inside an official document)",
1063
+ "quote_chars": 32090,
1064
+ "citation_ref": false,
1065
+ "person_name": true,
1066
+ "identifier_residual": false
1067
+ },
1068
+ {
1069
+ "record_id": "P/08/026#3",
1070
+ "stratum": "P",
1071
+ "class": "official-document (NIK authored)",
1072
+ "quote_chars": 0,
1073
+ "citation_ref": true,
1074
+ "person_name": true,
1075
+ "identifier_residual": false
1076
+ },
1077
+ {
1078
+ "record_id": "P/09/055#1",
1079
+ "stratum": "P",
1080
+ "class": "mixed (quoted third-party text inside an official document)",
1081
+ "quote_chars": 16769,
1082
+ "citation_ref": true,
1083
+ "person_name": true,
1084
+ "identifier_residual": false
1085
+ },
1086
+ {
1087
+ "record_id": "P/18/018#7",
1088
+ "stratum": "P",
1089
+ "class": "mixed (quoted third-party text inside an official document)",
1090
+ "quote_chars": 69383,
1091
+ "citation_ref": true,
1092
+ "person_name": false,
1093
+ "identifier_residual": false
1094
+ },
1095
+ {
1096
+ "record_id": "P/09/136#1",
1097
+ "stratum": "P",
1098
+ "class": "mixed (quoted third-party text inside an official document)",
1099
+ "quote_chars": 102327,
1100
+ "citation_ref": true,
1101
+ "person_name": false,
1102
+ "identifier_residual": false
1103
+ },
1104
+ {
1105
+ "record_id": "P/19/108#6",
1106
+ "stratum": "P",
1107
+ "class": "mixed (quoted third-party text inside an official document)",
1108
+ "quote_chars": 64122,
1109
+ "citation_ref": true,
1110
+ "person_name": false,
1111
+ "identifier_residual": false
1112
+ },
1113
+ {
1114
+ "record_id": "P/06/113#1",
1115
+ "stratum": "P",
1116
+ "class": "mixed (quoted third-party text inside an official document)",
1117
+ "quote_chars": 15488,
1118
+ "citation_ref": false,
1119
+ "person_name": true,
1120
+ "identifier_residual": false
1121
+ },
1122
+ {
1123
+ "record_id": "P/25/051#2",
1124
+ "stratum": "P",
1125
+ "class": "mixed (quoted third-party text inside an official document)",
1126
+ "quote_chars": 81213,
1127
+ "citation_ref": false,
1128
+ "person_name": false,
1129
+ "identifier_residual": false
1130
+ },
1131
+ {
1132
+ "record_id": "P/08/170#0",
1133
+ "stratum": "P",
1134
+ "class": "mixed (quoted third-party text inside an official document)",
1135
+ "quote_chars": 57997,
1136
+ "citation_ref": true,
1137
+ "person_name": false,
1138
+ "identifier_residual": false
1139
+ },
1140
+ {
1141
+ "record_id": "P/08/012#0",
1142
+ "stratum": "P",
1143
+ "class": "mixed (quoted third-party text inside an official document)",
1144
+ "quote_chars": 76699,
1145
+ "citation_ref": true,
1146
+ "person_name": false,
1147
+ "identifier_residual": false
1148
+ },
1149
+ {
1150
+ "record_id": "P/20/058#17",
1151
+ "stratum": "P",
1152
+ "class": "mixed (quoted third-party text inside an official document)",
1153
+ "quote_chars": 25670,
1154
+ "citation_ref": false,
1155
+ "person_name": false,
1156
+ "identifier_residual": false
1157
+ },
1158
+ {
1159
+ "record_id": "P/15/041#0",
1160
+ "stratum": "P",
1161
+ "class": "mixed (quoted third-party text inside an official document)",
1162
+ "quote_chars": 349700,
1163
+ "citation_ref": true,
1164
+ "person_name": false,
1165
+ "identifier_residual": false
1166
+ },
1167
+ {
1168
+ "record_id": "P/17/086#12",
1169
+ "stratum": "P",
1170
+ "class": "mixed (quoted third-party text inside an official document)",
1171
+ "quote_chars": 24986,
1172
+ "citation_ref": false,
1173
+ "person_name": false,
1174
+ "identifier_residual": false
1175
+ },
1176
+ {
1177
+ "record_id": "P/14/013#0",
1178
+ "stratum": "P",
1179
+ "class": "mixed (quoted third-party text inside an official document)",
1180
+ "quote_chars": 192158,
1181
+ "citation_ref": true,
1182
+ "person_name": false,
1183
+ "identifier_residual": false
1184
+ },
1185
+ {
1186
+ "record_id": "P/19/112#3",
1187
+ "stratum": "P",
1188
+ "class": "mixed (quoted third-party text inside an official document)",
1189
+ "quote_chars": 64286,
1190
+ "citation_ref": true,
1191
+ "person_name": false,
1192
+ "identifier_residual": false
1193
+ },
1194
+ {
1195
+ "record_id": "P/07/147#17",
1196
+ "stratum": "P",
1197
+ "class": "mixed (quoted third-party text inside an official document)",
1198
+ "quote_chars": 1803,
1199
+ "citation_ref": false,
1200
+ "person_name": true,
1201
+ "identifier_residual": false
1202
+ },
1203
+ {
1204
+ "record_id": "P/19/087#0",
1205
+ "stratum": "P",
1206
+ "class": "mixed (quoted third-party text inside an official document)",
1207
+ "quote_chars": 62682,
1208
+ "citation_ref": false,
1209
+ "person_name": false,
1210
+ "identifier_residual": false
1211
+ },
1212
+ {
1213
+ "record_id": "P/06/110#4",
1214
+ "stratum": "P",
1215
+ "class": "mixed (quoted third-party text inside an official document)",
1216
+ "quote_chars": 77296,
1217
+ "citation_ref": true,
1218
+ "person_name": true,
1219
+ "identifier_residual": false
1220
+ },
1221
+ {
1222
+ "record_id": "P/13/191#0",
1223
+ "stratum": "P",
1224
+ "class": "mixed (quoted third-party text inside an official document)",
1225
+ "quote_chars": 44391,
1226
+ "citation_ref": true,
1227
+ "person_name": false,
1228
+ "identifier_residual": false
1229
+ },
1230
+ {
1231
+ "record_id": "P/24/053#7",
1232
+ "stratum": "P",
1233
+ "class": "mixed (quoted third-party text inside an official document)",
1234
+ "quote_chars": 44709,
1235
+ "citation_ref": false,
1236
+ "person_name": false,
1237
+ "identifier_residual": false
1238
+ },
1239
+ {
1240
+ "record_id": "P/08/142#4",
1241
+ "stratum": "P",
1242
+ "class": "mixed (quoted third-party text inside an official document)",
1243
+ "quote_chars": 1883,
1244
+ "citation_ref": false,
1245
+ "person_name": true,
1246
+ "identifier_residual": false
1247
+ },
1248
+ {
1249
+ "record_id": "P/09/010#1",
1250
+ "stratum": "P",
1251
+ "class": "mixed (quoted third-party text inside an official document)",
1252
+ "quote_chars": 21275,
1253
+ "citation_ref": false,
1254
+ "person_name": true,
1255
+ "identifier_residual": false
1256
+ },
1257
+ {
1258
+ "record_id": "P/11/165#5",
1259
+ "stratum": "P",
1260
+ "class": "mixed (quoted third-party text inside an official document)",
1261
+ "quote_chars": 2755,
1262
+ "citation_ref": false,
1263
+ "person_name": true,
1264
+ "identifier_residual": false
1265
+ },
1266
+ {
1267
+ "record_id": "P/07/159#4",
1268
+ "stratum": "P",
1269
+ "class": "official-document (NIK authored)",
1270
+ "quote_chars": 0,
1271
+ "citation_ref": false,
1272
+ "person_name": true,
1273
+ "identifier_residual": false
1274
+ },
1275
+ {
1276
+ "record_id": "P/23/065#5",
1277
+ "stratum": "P",
1278
+ "class": "mixed (quoted third-party text inside an official document)",
1279
+ "quote_chars": 436541,
1280
+ "citation_ref": true,
1281
+ "person_name": true,
1282
+ "identifier_residual": false
1283
+ },
1284
+ {
1285
+ "record_id": "P/14/102#3",
1286
+ "stratum": "P",
1287
+ "class": "mixed (quoted third-party text inside an official document)",
1288
+ "quote_chars": 13416,
1289
+ "citation_ref": false,
1290
+ "person_name": true,
1291
+ "identifier_residual": false
1292
+ },
1293
+ {
1294
+ "record_id": "P/21/016#7",
1295
+ "stratum": "P",
1296
+ "class": "mixed (quoted third-party text inside an official document)",
1297
+ "quote_chars": 18643,
1298
+ "citation_ref": true,
1299
+ "person_name": true,
1300
+ "identifier_residual": false
1301
+ },
1302
+ {
1303
+ "record_id": "P/07/168#2",
1304
+ "stratum": "P",
1305
+ "class": "mixed (quoted third-party text inside an official document)",
1306
+ "quote_chars": 8680,
1307
+ "citation_ref": false,
1308
+ "person_name": false,
1309
+ "identifier_residual": false
1310
+ },
1311
+ {
1312
+ "record_id": "P/14/122#3",
1313
+ "stratum": "P",
1314
+ "class": "mixed (quoted third-party text inside an official document)",
1315
+ "quote_chars": 44912,
1316
+ "citation_ref": false,
1317
+ "person_name": true,
1318
+ "identifier_residual": false
1319
+ },
1320
+ {
1321
+ "record_id": "R/14/005#3",
1322
+ "stratum": "R",
1323
+ "class": "mixed (quoted third-party text inside an official document)",
1324
+ "quote_chars": 24903,
1325
+ "citation_ref": false,
1326
+ "person_name": true,
1327
+ "identifier_residual": false
1328
+ },
1329
+ {
1330
+ "record_id": "R/09/006#7",
1331
+ "stratum": "R",
1332
+ "class": "mixed (quoted third-party text inside an official document)",
1333
+ "quote_chars": 4541,
1334
+ "citation_ref": false,
1335
+ "person_name": true,
1336
+ "identifier_residual": false
1337
+ },
1338
+ {
1339
+ "record_id": "R/07/005#0",
1340
+ "stratum": "R",
1341
+ "class": "mixed (quoted third-party text inside an official document)",
1342
+ "quote_chars": 2095,
1343
+ "citation_ref": false,
1344
+ "person_name": false,
1345
+ "identifier_residual": false
1346
+ },
1347
+ {
1348
+ "record_id": "R/07/005#2",
1349
+ "stratum": "R",
1350
+ "class": "official-document (NIK authored)",
1351
+ "quote_chars": 0,
1352
+ "citation_ref": false,
1353
+ "person_name": true,
1354
+ "identifier_residual": false
1355
+ },
1356
+ {
1357
+ "record_id": "R/07/003#1",
1358
+ "stratum": "R",
1359
+ "class": "official-document (NIK authored)",
1360
+ "quote_chars": 0,
1361
+ "citation_ref": false,
1362
+ "person_name": false,
1363
+ "identifier_residual": false
1364
+ },
1365
+ {
1366
+ "record_id": "R/12/007#2",
1367
+ "stratum": "R",
1368
+ "class": "mixed (quoted third-party text inside an official document)",
1369
+ "quote_chars": 4422,
1370
+ "citation_ref": false,
1371
+ "person_name": false,
1372
+ "identifier_residual": false
1373
+ },
1374
+ {
1375
+ "record_id": "R/16/011#3",
1376
+ "stratum": "R",
1377
+ "class": "mixed (quoted third-party text inside an official document)",
1378
+ "quote_chars": 21929,
1379
+ "citation_ref": true,
1380
+ "person_name": false,
1381
+ "identifier_residual": false
1382
+ },
1383
+ {
1384
+ "record_id": "R/14/005#1",
1385
+ "stratum": "R",
1386
+ "class": "mixed (quoted third-party text inside an official document)",
1387
+ "quote_chars": 44598,
1388
+ "citation_ref": true,
1389
+ "person_name": true,
1390
+ "identifier_residual": false
1391
+ },
1392
+ {
1393
+ "record_id": "R/19/006#0",
1394
+ "stratum": "R",
1395
+ "class": "official-document (NIK authored)",
1396
+ "quote_chars": 0,
1397
+ "citation_ref": false,
1398
+ "person_name": false,
1399
+ "identifier_residual": false
1400
+ },
1401
+ {
1402
+ "record_id": "R/16/003#0",
1403
+ "stratum": "R",
1404
+ "class": "mixed (quoted third-party text inside an official document)",
1405
+ "quote_chars": 54160,
1406
+ "citation_ref": true,
1407
+ "person_name": true,
1408
+ "identifier_residual": false
1409
+ },
1410
+ {
1411
+ "record_id": "R/10/012#0",
1412
+ "stratum": "R",
1413
+ "class": "mixed (quoted third-party text inside an official document)",
1414
+ "quote_chars": 20240,
1415
+ "citation_ref": true,
1416
+ "person_name": true,
1417
+ "identifier_residual": false
1418
+ },
1419
+ {
1420
+ "record_id": "R/12/007#10",
1421
+ "stratum": "R",
1422
+ "class": "mixed (quoted third-party text inside an official document)",
1423
+ "quote_chars": 1712,
1424
+ "citation_ref": false,
1425
+ "person_name": true,
1426
+ "identifier_residual": false
1427
+ },
1428
+ {
1429
+ "record_id": "R/07/007#5",
1430
+ "stratum": "R",
1431
+ "class": "mixed (quoted third-party text inside an official document)",
1432
+ "quote_chars": 2064,
1433
+ "citation_ref": true,
1434
+ "person_name": true,
1435
+ "identifier_residual": false
1436
+ },
1437
+ {
1438
+ "record_id": "R/07/002#0",
1439
+ "stratum": "R",
1440
+ "class": "mixed (quoted third-party text inside an official document)",
1441
+ "quote_chars": 4199,
1442
+ "citation_ref": false,
1443
+ "person_name": true,
1444
+ "identifier_residual": false
1445
+ },
1446
+ {
1447
+ "record_id": "R/07/012#2",
1448
+ "stratum": "R",
1449
+ "class": "official-document (NIK authored)",
1450
+ "quote_chars": 0,
1451
+ "citation_ref": true,
1452
+ "person_name": true,
1453
+ "identifier_residual": false
1454
+ },
1455
+ {
1456
+ "record_id": "R/07/012#1",
1457
+ "stratum": "R",
1458
+ "class": "mixed (quoted third-party text inside an official document)",
1459
+ "quote_chars": 4381,
1460
+ "citation_ref": false,
1461
+ "person_name": true,
1462
+ "identifier_residual": false
1463
+ },
1464
+ {
1465
+ "record_id": "R/10/006#0",
1466
+ "stratum": "R",
1467
+ "class": "mixed (quoted third-party text inside an official document)",
1468
+ "quote_chars": 3031,
1469
+ "citation_ref": false,
1470
+ "person_name": true,
1471
+ "identifier_residual": false
1472
+ },
1473
+ {
1474
+ "record_id": "R/07/001#0",
1475
+ "stratum": "R",
1476
+ "class": "mixed (quoted third-party text inside an official document)",
1477
+ "quote_chars": 54917,
1478
+ "citation_ref": true,
1479
+ "person_name": true,
1480
+ "identifier_residual": false
1481
+ },
1482
+ {
1483
+ "record_id": "R/09/002#0",
1484
+ "stratum": "R",
1485
+ "class": "official-document (NIK authored)",
1486
+ "quote_chars": 0,
1487
+ "citation_ref": false,
1488
+ "person_name": true,
1489
+ "identifier_residual": false
1490
+ },
1491
+ {
1492
+ "record_id": "R/15/009#1",
1493
+ "stratum": "R",
1494
+ "class": "mixed (quoted third-party text inside an official document)",
1495
+ "quote_chars": 109,
1496
+ "citation_ref": false,
1497
+ "person_name": false,
1498
+ "identifier_residual": false
1499
+ },
1500
+ {
1501
+ "record_id": "R/14/005#5",
1502
+ "stratum": "R",
1503
+ "class": "mixed (quoted third-party text inside an official document)",
1504
+ "quote_chars": 33604,
1505
+ "citation_ref": false,
1506
+ "person_name": true,
1507
+ "identifier_residual": false
1508
+ },
1509
+ {
1510
+ "record_id": "R/19/008#1",
1511
+ "stratum": "R",
1512
+ "class": "mixed (quoted third-party text inside an official document)",
1513
+ "quote_chars": 40522,
1514
+ "citation_ref": true,
1515
+ "person_name": true,
1516
+ "identifier_residual": false
1517
+ },
1518
+ {
1519
+ "record_id": "R/15/005#8",
1520
+ "stratum": "R",
1521
+ "class": "mixed (quoted third-party text inside an official document)",
1522
+ "quote_chars": 41385,
1523
+ "citation_ref": false,
1524
+ "person_name": true,
1525
+ "identifier_residual": false
1526
+ },
1527
+ {
1528
+ "record_id": "R/15/005#0",
1529
+ "stratum": "R",
1530
+ "class": "mixed (quoted third-party text inside an official document)",
1531
+ "quote_chars": 10616,
1532
+ "citation_ref": true,
1533
+ "person_name": false,
1534
+ "identifier_residual": false
1535
+ },
1536
+ {
1537
+ "record_id": "R/10/016#1",
1538
+ "stratum": "R",
1539
+ "class": "official-document (NIK authored)",
1540
+ "quote_chars": 0,
1541
+ "citation_ref": false,
1542
+ "person_name": true,
1543
+ "identifier_residual": false
1544
+ },
1545
+ {
1546
+ "record_id": "R/19/002#1",
1547
+ "stratum": "R",
1548
+ "class": "mixed (quoted third-party text inside an official document)",
1549
+ "quote_chars": 13211,
1550
+ "citation_ref": false,
1551
+ "person_name": false,
1552
+ "identifier_residual": false
1553
+ },
1554
+ {
1555
+ "record_id": "R/14/012#1",
1556
+ "stratum": "R",
1557
+ "class": "mixed (quoted third-party text inside an official document)",
1558
+ "quote_chars": 2406,
1559
+ "citation_ref": true,
1560
+ "person_name": false,
1561
+ "identifier_residual": false
1562
+ },
1563
+ {
1564
+ "record_id": "R/24/006#0",
1565
+ "stratum": "R",
1566
+ "class": "mixed (quoted third-party text inside an official document)",
1567
+ "quote_chars": 59052,
1568
+ "citation_ref": true,
1569
+ "person_name": true,
1570
+ "identifier_residual": false
1571
+ },
1572
+ {
1573
+ "record_id": "R/14/010#0",
1574
+ "stratum": "R",
1575
+ "class": "mixed (quoted third-party text inside an official document)",
1576
+ "quote_chars": 133,
1577
+ "citation_ref": false,
1578
+ "person_name": false,
1579
+ "identifier_residual": false
1580
+ },
1581
+ {
1582
+ "record_id": "R/19/002#0",
1583
+ "stratum": "R",
1584
+ "class": "mixed (quoted third-party text inside an official document)",
1585
+ "quote_chars": 15995,
1586
+ "citation_ref": true,
1587
+ "person_name": false,
1588
+ "identifier_residual": false
1589
+ },
1590
+ {
1591
+ "record_id": "R/16/008#0",
1592
+ "stratum": "R",
1593
+ "class": "mixed (quoted third-party text inside an official document)",
1594
+ "quote_chars": 22721,
1595
+ "citation_ref": true,
1596
+ "person_name": true,
1597
+ "identifier_residual": false
1598
+ },
1599
+ {
1600
+ "record_id": "R/12/007#4",
1601
+ "stratum": "R",
1602
+ "class": "mixed (quoted third-party text inside an official document)",
1603
+ "quote_chars": 2949,
1604
+ "citation_ref": true,
1605
+ "person_name": false,
1606
+ "identifier_residual": false
1607
+ },
1608
+ {
1609
+ "record_id": "R/14/008#0",
1610
+ "stratum": "R",
1611
+ "class": "mixed (quoted third-party text inside an official document)",
1612
+ "quote_chars": 65528,
1613
+ "citation_ref": true,
1614
+ "person_name": false,
1615
+ "identifier_residual": false
1616
+ },
1617
+ {
1618
+ "record_id": "R/09/006#2",
1619
+ "stratum": "R",
1620
+ "class": "mixed (quoted third-party text inside an official document)",
1621
+ "quote_chars": 1968,
1622
+ "citation_ref": false,
1623
+ "person_name": true,
1624
+ "identifier_residual": false
1625
+ },
1626
+ {
1627
+ "record_id": "R/12/006#0",
1628
+ "stratum": "R",
1629
+ "class": "mixed (quoted third-party text inside an official document)",
1630
+ "quote_chars": 3464,
1631
+ "citation_ref": false,
1632
+ "person_name": true,
1633
+ "identifier_residual": false
1634
+ },
1635
+ {
1636
+ "record_id": "R/10/010#1",
1637
+ "stratum": "R",
1638
+ "class": "official-document (NIK authored)",
1639
+ "quote_chars": 0,
1640
+ "citation_ref": false,
1641
+ "person_name": true,
1642
+ "identifier_residual": false
1643
+ },
1644
+ {
1645
+ "record_id": "R/12/005#1",
1646
+ "stratum": "R",
1647
+ "class": "mixed (quoted third-party text inside an official document)",
1648
+ "quote_chars": 455,
1649
+ "citation_ref": true,
1650
+ "person_name": true,
1651
+ "identifier_residual": false
1652
+ },
1653
+ {
1654
+ "record_id": "R/12/007#11",
1655
+ "stratum": "R",
1656
+ "class": "mixed (quoted third-party text inside an official document)",
1657
+ "quote_chars": 7819,
1658
+ "citation_ref": false,
1659
+ "person_name": false,
1660
+ "identifier_residual": false
1661
+ },
1662
+ {
1663
+ "record_id": "R/10/008#0",
1664
+ "stratum": "R",
1665
+ "class": "mixed (quoted third-party text inside an official document)",
1666
+ "quote_chars": 8772,
1667
+ "citation_ref": false,
1668
+ "person_name": true,
1669
+ "identifier_residual": false
1670
+ },
1671
+ {
1672
+ "record_id": "R/07/007#6",
1673
+ "stratum": "R",
1674
+ "class": "mixed (quoted third-party text inside an official document)",
1675
+ "quote_chars": 2064,
1676
+ "citation_ref": true,
1677
+ "person_name": true,
1678
+ "identifier_residual": false
1679
+ },
1680
+ {
1681
+ "record_id": "S/09/006#0",
1682
+ "stratum": "S",
1683
+ "class": "mixed (quoted third-party text inside an official document)",
1684
+ "quote_chars": 10941,
1685
+ "citation_ref": true,
1686
+ "person_name": true,
1687
+ "identifier_residual": false
1688
+ },
1689
+ {
1690
+ "record_id": "S/15/004#0",
1691
+ "stratum": "S",
1692
+ "class": "mixed (quoted third-party text inside an official document)",
1693
+ "quote_chars": 37003,
1694
+ "citation_ref": true,
1695
+ "person_name": false,
1696
+ "identifier_residual": false
1697
+ },
1698
+ {
1699
+ "record_id": "S/16/002#1",
1700
+ "stratum": "S",
1701
+ "class": "mixed (quoted third-party text inside an official document)",
1702
+ "quote_chars": 57357,
1703
+ "citation_ref": true,
1704
+ "person_name": false,
1705
+ "identifier_residual": false
1706
+ },
1707
+ {
1708
+ "record_id": "S/10/022#0",
1709
+ "stratum": "S",
1710
+ "class": "mixed (quoted third-party text inside an official document)",
1711
+ "quote_chars": 6557,
1712
+ "citation_ref": false,
1713
+ "person_name": true,
1714
+ "identifier_residual": false
1715
+ },
1716
+ {
1717
+ "record_id": "S/14/019#1",
1718
+ "stratum": "S",
1719
+ "class": "mixed (quoted third-party text inside an official document)",
1720
+ "quote_chars": 183,
1721
+ "citation_ref": false,
1722
+ "person_name": false,
1723
+ "identifier_residual": false
1724
+ },
1725
+ {
1726
+ "record_id": "S/19/008#2",
1727
+ "stratum": "S",
1728
+ "class": "mixed (quoted third-party text inside an official document)",
1729
+ "quote_chars": 8459,
1730
+ "citation_ref": false,
1731
+ "person_name": true,
1732
+ "identifier_residual": false
1733
+ },
1734
+ {
1735
+ "record_id": "S/13/019#1",
1736
+ "stratum": "S",
1737
+ "class": "mixed (quoted third-party text inside an official document)",
1738
+ "quote_chars": 16457,
1739
+ "citation_ref": true,
1740
+ "person_name": false,
1741
+ "identifier_residual": false
1742
+ },
1743
+ {
1744
+ "record_id": "S/10/023#0",
1745
+ "stratum": "S",
1746
+ "class": "mixed (quoted third-party text inside an official document)",
1747
+ "quote_chars": 15246,
1748
+ "citation_ref": true,
1749
+ "person_name": true,
1750
+ "identifier_residual": false
1751
+ },
1752
+ {
1753
+ "record_id": "S/16/005#0",
1754
+ "stratum": "S",
1755
+ "class": "mixed (quoted third-party text inside an official document)",
1756
+ "quote_chars": 10384,
1757
+ "citation_ref": true,
1758
+ "person_name": false,
1759
+ "identifier_residual": false
1760
+ },
1761
+ {
1762
+ "record_id": "S/07/005#0",
1763
+ "stratum": "S",
1764
+ "class": "mixed (quoted third-party text inside an official document)",
1765
+ "quote_chars": 1682,
1766
+ "citation_ref": true,
1767
+ "person_name": true,
1768
+ "identifier_residual": false
1769
+ },
1770
+ {
1771
+ "record_id": "S/12/009#1",
1772
+ "stratum": "S",
1773
+ "class": "mixed (quoted third-party text inside an official document)",
1774
+ "quote_chars": 2712,
1775
+ "citation_ref": false,
1776
+ "person_name": false,
1777
+ "identifier_residual": false
1778
+ },
1779
+ {
1780
+ "record_id": "S/13/004#0",
1781
+ "stratum": "S",
1782
+ "class": "mixed (quoted third-party text inside an official document)",
1783
+ "quote_chars": 55526,
1784
+ "citation_ref": true,
1785
+ "person_name": true,
1786
+ "identifier_residual": false
1787
+ },
1788
+ {
1789
+ "record_id": "S/13/019#0",
1790
+ "stratum": "S",
1791
+ "class": "mixed (quoted third-party text inside an official document)",
1792
+ "quote_chars": 124647,
1793
+ "citation_ref": true,
1794
+ "person_name": false,
1795
+ "identifier_residual": false
1796
+ },
1797
+ {
1798
+ "record_id": "S/14/011#1",
1799
+ "stratum": "S",
1800
+ "class": "mixed (quoted third-party text inside an official document)",
1801
+ "quote_chars": 334,
1802
+ "citation_ref": false,
1803
+ "person_name": false,
1804
+ "identifier_residual": false
1805
+ },
1806
+ {
1807
+ "record_id": "S/08/003#0",
1808
+ "stratum": "S",
1809
+ "class": "mixed (quoted third-party text inside an official document)",
1810
+ "quote_chars": 28087,
1811
+ "citation_ref": true,
1812
+ "person_name": true,
1813
+ "identifier_residual": false
1814
+ },
1815
+ {
1816
+ "record_id": "S/11/011#0",
1817
+ "stratum": "S",
1818
+ "class": "official-document (NIK authored)",
1819
+ "quote_chars": 0,
1820
+ "citation_ref": false,
1821
+ "person_name": false,
1822
+ "identifier_residual": false
1823
+ },
1824
+ {
1825
+ "record_id": "S/24/007#2",
1826
+ "stratum": "S",
1827
+ "class": "mixed (quoted third-party text inside an official document)",
1828
+ "quote_chars": 61893,
1829
+ "citation_ref": true,
1830
+ "person_name": false,
1831
+ "identifier_residual": false
1832
+ },
1833
+ {
1834
+ "record_id": "S/11/014#0",
1835
+ "stratum": "S",
1836
+ "class": "mixed (quoted third-party text inside an official document)",
1837
+ "quote_chars": 1953,
1838
+ "citation_ref": true,
1839
+ "person_name": true,
1840
+ "identifier_residual": false
1841
+ },
1842
+ {
1843
+ "record_id": "S/13/027#0",
1844
+ "stratum": "S",
1845
+ "class": "mixed (quoted third-party text inside an official document)",
1846
+ "quote_chars": 26211,
1847
+ "citation_ref": true,
1848
+ "person_name": true,
1849
+ "identifier_residual": false
1850
+ },
1851
+ {
1852
+ "record_id": "S/24/007#5",
1853
+ "stratum": "S",
1854
+ "class": "mixed (quoted third-party text inside an official document)",
1855
+ "quote_chars": 57792,
1856
+ "citation_ref": true,
1857
+ "person_name": false,
1858
+ "identifier_residual": false
1859
+ },
1860
+ {
1861
+ "record_id": "S/15/004#2",
1862
+ "stratum": "S",
1863
+ "class": "official-document (NIK authored)",
1864
+ "quote_chars": 0,
1865
+ "citation_ref": true,
1866
+ "person_name": false,
1867
+ "identifier_residual": false
1868
+ },
1869
+ {
1870
+ "record_id": "S/12/017#0",
1871
+ "stratum": "S",
1872
+ "class": "mixed (quoted third-party text inside an official document)",
1873
+ "quote_chars": 21366,
1874
+ "citation_ref": false,
1875
+ "person_name": true,
1876
+ "identifier_residual": false
1877
+ },
1878
+ {
1879
+ "record_id": "S/13/031#0",
1880
+ "stratum": "S",
1881
+ "class": "mixed (quoted third-party text inside an official document)",
1882
+ "quote_chars": 6882,
1883
+ "citation_ref": true,
1884
+ "person_name": true,
1885
+ "identifier_residual": false
1886
+ },
1887
+ {
1888
+ "record_id": "S/13/008#1",
1889
+ "stratum": "S",
1890
+ "class": "official-document (NIK authored)",
1891
+ "quote_chars": 0,
1892
+ "citation_ref": true,
1893
+ "person_name": false,
1894
+ "identifier_residual": false
1895
+ },
1896
+ {
1897
+ "record_id": "S/06/013#1",
1898
+ "stratum": "S",
1899
+ "class": "mixed (quoted third-party text inside an official document)",
1900
+ "quote_chars": 7282,
1901
+ "citation_ref": false,
1902
+ "person_name": true,
1903
+ "identifier_residual": false
1904
+ },
1905
+ {
1906
+ "record_id": "S/09/016#0",
1907
+ "stratum": "S",
1908
+ "class": "official-document (NIK authored)",
1909
+ "quote_chars": 0,
1910
+ "citation_ref": false,
1911
+ "person_name": true,
1912
+ "identifier_residual": false
1913
+ },
1914
+ {
1915
+ "record_id": "S/24/002#0",
1916
+ "stratum": "S",
1917
+ "class": "mixed (quoted third-party text inside an official document)",
1918
+ "quote_chars": 1732,
1919
+ "citation_ref": true,
1920
+ "person_name": true,
1921
+ "identifier_residual": false
1922
+ },
1923
+ {
1924
+ "record_id": "S/13/007#0",
1925
+ "stratum": "S",
1926
+ "class": "mixed (quoted third-party text inside an official document)",
1927
+ "quote_chars": 21114,
1928
+ "citation_ref": false,
1929
+ "person_name": false,
1930
+ "identifier_residual": false
1931
+ },
1932
+ {
1933
+ "record_id": "S/07/002#0",
1934
+ "stratum": "S",
1935
+ "class": "mixed (quoted third-party text inside an official document)",
1936
+ "quote_chars": 14626,
1937
+ "citation_ref": true,
1938
+ "person_name": true,
1939
+ "identifier_residual": false
1940
+ },
1941
+ {
1942
+ "record_id": "S/11/015#0",
1943
+ "stratum": "S",
1944
+ "class": "mixed (quoted third-party text inside an official document)",
1945
+ "quote_chars": 633,
1946
+ "citation_ref": false,
1947
+ "person_name": true,
1948
+ "identifier_residual": false
1949
+ },
1950
+ {
1951
+ "record_id": "S/15/010#0",
1952
+ "stratum": "S",
1953
+ "class": "mixed (quoted third-party text inside an official document)",
1954
+ "quote_chars": 596,
1955
+ "citation_ref": true,
1956
+ "person_name": false,
1957
+ "identifier_residual": false
1958
+ },
1959
+ {
1960
+ "record_id": "S/14/006#1",
1961
+ "stratum": "S",
1962
+ "class": "mixed (quoted third-party text inside an official document)",
1963
+ "quote_chars": 32789,
1964
+ "citation_ref": true,
1965
+ "person_name": false,
1966
+ "identifier_residual": false
1967
+ },
1968
+ {
1969
+ "record_id": "S/07/004#3",
1970
+ "stratum": "S",
1971
+ "class": "mixed (quoted third-party text inside an official document)",
1972
+ "quote_chars": 26022,
1973
+ "citation_ref": true,
1974
+ "person_name": true,
1975
+ "identifier_residual": false
1976
+ },
1977
+ {
1978
+ "record_id": "S/07/011#0",
1979
+ "stratum": "S",
1980
+ "class": "mixed (quoted third-party text inside an official document)",
1981
+ "quote_chars": 1734,
1982
+ "citation_ref": false,
1983
+ "person_name": true,
1984
+ "identifier_residual": false
1985
+ },
1986
+ {
1987
+ "record_id": "S/16/008#0",
1988
+ "stratum": "S",
1989
+ "class": "mixed (quoted third-party text inside an official document)",
1990
+ "quote_chars": 39092,
1991
+ "citation_ref": true,
1992
+ "person_name": true,
1993
+ "identifier_residual": false
1994
+ },
1995
+ {
1996
+ "record_id": "S/12/016#0",
1997
+ "stratum": "S",
1998
+ "class": "official-document (NIK authored)",
1999
+ "quote_chars": 0,
2000
+ "citation_ref": false,
2001
+ "person_name": true,
2002
+ "identifier_residual": false
2003
+ },
2004
+ {
2005
+ "record_id": "S/15/007#0",
2006
+ "stratum": "S",
2007
+ "class": "mixed (quoted third-party text inside an official document)",
2008
+ "quote_chars": 24067,
2009
+ "citation_ref": false,
2010
+ "person_name": false,
2011
+ "identifier_residual": false
2012
+ },
2013
+ {
2014
+ "record_id": "S/10/027#1",
2015
+ "stratum": "S",
2016
+ "class": "mixed (quoted third-party text inside an official document)",
2017
+ "quote_chars": 420,
2018
+ "citation_ref": true,
2019
+ "person_name": true,
2020
+ "identifier_residual": false
2021
+ },
2022
+ {
2023
+ "record_id": "S/12/024#1",
2024
+ "stratum": "S",
2025
+ "class": "mixed (quoted third-party text inside an official document)",
2026
+ "quote_chars": 3802,
2027
+ "citation_ref": true,
2028
+ "person_name": false,
2029
+ "identifier_residual": false
2030
+ },
2031
+ {
2032
+ "record_id": "S/12/004#0",
2033
+ "stratum": "S",
2034
+ "class": "mixed (quoted third-party text inside an official document)",
2035
+ "quote_chars": 17383,
2036
+ "citation_ref": true,
2037
+ "person_name": true,
2038
+ "identifier_residual": false
2039
+ }
2040
+ ]
2041
+ }
data/nik_control_reports_pl/nik_control_reports_pl.stats.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "read": 4621,
3
+ "kept": 4576,
4
+ "drop_short": 0,
5
+ "drop_lang": 3,
6
+ "drop_dup": 42,
7
+ "drop_ocr": 0,
8
+ "chars": 304904133,
9
+ "tokens": 121183078,
10
+ "licenses": {
11
+ "public-domain (official documents)": 4576
12
+ },
13
+ "authors_with_value": 4576,
14
+ "secs": 589.1,
15
+ "lang_gate": "diacritic ratio, then langid vote",
16
+ "license": "public-domain (official documents)"
17
+ }
src/clean_nik_control_reports_pl.py ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Normalize NIK control-report text extracted from PDFs.
3
+
4
+ Input: `src/fetch_nik_control_reports_pl.py` output (`nik_control_reports_pl.jsonl.zst`,
5
+ text produced by pypdf from the text layer of the published PDFs).
6
+ Output: the same schema with normalized `text`, written to `--out`.
7
+
8
+ Steps (all deterministic; the shard is reproducible from the fetcher + this script):
9
+
10
+ 1. Unicode: NFKC; control characters dropped; soft hyphens dropped; the
11
+ non-breaking/thin space zoo mapped to a plain space.
12
+ 2. De-hyphenation: `slowo-\\nslowo` joined when both fragments are lowercase
13
+ (a hyphen at a line end between lowercase letters is a layout break).
14
+ A hyphen before an uppercase fragment or mid-line is kept: those are
15
+ real compounds or list markers.
16
+ 3. Page furniture: `strona N z M` markers and standalone page numbers dropped.
17
+ Section numbering (I., 1.1, Art. 5) is content in these reports and stays.
18
+ 4. Boilerplate: lines of 20+ characters that appear in >= 50% of documents are
19
+ page furniture (NIK letterhead with the office address and phone) and are
20
+ dropped. Detected by frequency across the shard, not hand-listed; the
21
+ dropped-line set is written to `clean_stats` below and reported in the
22
+ datasheet.
23
+ 5. Whitespace: runs of spaces/tabs collapsed, lines trimmed, blank runs capped
24
+ at one empty line (paragraph breaks kept).
25
+ 6. Identifier redaction (pattern level, NOT anonymization): PESEL (11 digits)
26
+ and bank-account numbers (PL+26 digits or 26 grouped digits) become [PII].
27
+ Names of natural persons stay: they are published in official documents
28
+ (officers and audited-entity personnel acting officially). SlayerLab/NERGAL
29
+ has not run over this shard yet; the source merges with `release: None`
30
+ until it does. See data/nik_control_reports_pl/.
31
+
32
+ Not changed: spelling, wording, section and article numbering, table numbers.
33
+ """
34
+ from __future__ import annotations
35
+
36
+ import argparse, io, json, os, re, sys, time, unicodedata
37
+ from collections import Counter
38
+ from pathlib import Path
39
+
40
+ try:
41
+ import zstandard as zstd
42
+ except ImportError: # pragma: no cover
43
+ zstd = None
44
+
45
+ KEY = "nik_control_reports_pl"
46
+
47
+ SOFT_HYPHEN_BREAK = re.compile(r"(?<=[a-ząceęłńóśźż])-\n(?=[a-ząceęłńóśźż])")
48
+ PAGE_MARKER = re.compile(r"^strona \d+ z \d+$", re.I)
49
+ STANDALONE_PAGE_NUMBER = re.compile(r"^\d{1,4}$")
50
+ PESEL_RE = re.compile(r"(?<!\d)\d{11}(?!\d)")
51
+ ACCOUNT_RE = re.compile(r"(?:PL\s?\d{2}(?:[\s]?\d{4}){6}|(?<!\d)(?:\d{4}\s){5}\d{6}(?!\d))")
52
+ MULTISPACE = re.compile(r"[ \t\u00a0\u2000-\u200b\u202f\u205f\u3000]+")
53
+ CONTROL_CHARS = re.compile(r"[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]")
54
+ BLANKS = re.compile(r"\n{3,}")
55
+ BOILERPLATE_DOCS_FRACTION = 0.33
56
+ BOILERPLATE_MIN_LEN = 20
57
+
58
+
59
+ def read_jsonl_zst(path: Path):
60
+ with path.open("rb") as fh:
61
+ if zstd is not None:
62
+ stream = io.TextIOWrapper(zstd.ZstdDecompressor().stream_reader(fh), encoding="utf-8")
63
+ else: # pragma: no cover
64
+ import subprocess
65
+ stream = subprocess.Popen(["zstd", "-d", "-c", str(path)],
66
+ stdout=subprocess.PIPE, text=True, encoding="utf-8").stdout
67
+ for line in stream:
68
+ yield json.loads(line)
69
+
70
+
71
+ def write_jsonl_zst(rows, path: Path):
72
+ tmp = path.with_suffix(path.suffix + f".{os.getpid()}.tmp")
73
+ with tmp.open("wb") as fh:
74
+ writer = zstd.ZstdCompressor(level=10, threads=0).stream_writer(fh)
75
+ out = io.TextIOWrapper(writer, encoding="utf-8", newline="\n")
76
+ for row in rows:
77
+ out.write(json.dumps(row, ensure_ascii=False) + "\n")
78
+ out.flush()
79
+ writer.close()
80
+ tmp.replace(path)
81
+
82
+
83
+ def base_normalize(text: str) -> str:
84
+ text = unicodedata.normalize("NFKC", text)
85
+ text = text.replace("\u00ad", "")
86
+ text = SOFT_HYPHEN_BREAK.sub("", text)
87
+ text = CONTROL_CHARS.sub(" ", text)
88
+ lines = []
89
+ for line in text.split("\n"):
90
+ line = MULTISPACE.sub(" ", line).strip()
91
+ if PAGE_MARKER.match(line) or STANDALONE_PAGE_NUMBER.match(line):
92
+ continue
93
+ lines.append(line)
94
+ text = "\n".join(lines)
95
+ text = BLANKS.sub("\n\n", text)
96
+ return text.strip()
97
+
98
+
99
+ def redact(text: str, counter: Counter) -> str:
100
+ text, n_p = PESEL_RE.subn("[PII]", text)
101
+ text, n_a = ACCOUNT_RE.subn("[PII]", text)
102
+ counter["redacted_pesel"] += n_p
103
+ counter["redacted_account"] += n_a
104
+ return text
105
+
106
+
107
+ BOILERPLATE_OCCURRENCE_MIN = 300
108
+ BOILERPLATE_OCC_PER_DOC_MIN = 5.0
109
+ BOILERPLATE_OCC_DOCS_MIN = 50
110
+
111
+
112
+ def find_boilerplate(doc_line_lists, total_docs: int):
113
+ """Frequency-detected page furniture (no hand-listing).
114
+
115
+ Rule 1: an exact line of 20+ characters present in >= 33% of documents.
116
+ Rule 2: an exact line of 3+ characters with >= 300 occurrences across the
117
+ shard, recurring >= 5 times per containing document (per-page running
118
+ headers and footers) in >= 50 documents. Single wrapped words ("faktycznego"
119
+ at 3.4x per containing document) and paragraph marks stay below these
120
+ floors and are kept. Thresholds calibrated on the top-line frequency table
121
+ of this shard (see the datasheet).
122
+ """
123
+ doc_lines = Counter()
124
+ occurrences = Counter()
125
+ for lines in doc_line_lists:
126
+ occurrences.update(lines)
127
+ for line in set(lines):
128
+ if line:
129
+ doc_lines[line] += 1
130
+ out = set()
131
+ for line, n in doc_lines.items():
132
+ if (len(line) >= BOILERPLATE_MIN_LEN
133
+ and n >= max(2, int(total_docs * BOILERPLATE_DOCS_FRACTION))):
134
+ out.add(line)
135
+ elif (len(line) >= 3
136
+ and occurrences[line] >= BOILERPLATE_OCCURRENCE_MIN
137
+ and occurrences[line] / n >= BOILERPLATE_OCC_PER_DOC_MIN
138
+ and n >= BOILERPLATE_OCC_DOCS_MIN):
139
+ out.add(line)
140
+ return out
141
+
142
+
143
+ def clean_text(text: str, boilerplate, stats: Counter) -> str:
144
+ text = base_normalize(text)
145
+ kept = [line for line in text.split("\n") if line not in boilerplate]
146
+ text = BLANKS.sub("\n\n", "\n".join(kept)).strip()
147
+ return redact(text, stats)
148
+
149
+
150
+ def main() -> int:
151
+ ap = argparse.ArgumentParser(description=__doc__)
152
+ ap.add_argument("--in", dest="inp", type=Path, default=Path(f"../speakleash/{KEY}.jsonl.zst"))
153
+ ap.add_argument("--out", type=Path, default=None)
154
+ args = ap.parse_args()
155
+ out_path = args.out or args.inp
156
+
157
+ t0 = time.time()
158
+ rows = list(read_jsonl_zst(args.inp))
159
+ print(f"read {len(rows):,} rows in {round(time.time() - t0)}s", flush=True)
160
+
161
+ # Pass 1: frequency-based boilerplate detection over normalized text.
162
+ boilerplate = find_boilerplate(
163
+ (base_normalize(row["text"]).split("\n") for row in rows), len(rows))
164
+ print(f"boilerplate lines ({len(boilerplate)} @ two-signal frequency rules):", flush=True)
165
+ for line in sorted(boilerplate):
166
+ print(f" - {line[:100]}", flush=True)
167
+
168
+ # Pass 2: normalize, drop boilerplate lines, redact identifiers.
169
+ stats = Counter()
170
+ cleaned = []
171
+ for row in rows:
172
+ text = clean_text(row["text"], boilerplate, stats)
173
+ stats["chars_in"] += len(row["text"])
174
+ stats["chars_out"] += len(text)
175
+ row = dict(row)
176
+ row["text"] = text
177
+ cleaned.append(row)
178
+
179
+ write_jsonl_zst(cleaned, out_path)
180
+ summary = {
181
+ "script": f"src/clean_{KEY}.py",
182
+ "rows": len(rows),
183
+ "boilerplate_lines": sorted(boilerplate),
184
+ "boilerplate_rule": "rule 1: exact line >= 20 chars in >= 33% of documents; rule 2: "
185
+ "exact line >= 3 chars with >= 300 occurrences, >= 5x per "
186
+ "containing document, in >= 50 documents",
187
+ "chars_in": stats["chars_in"],
188
+ "chars_out": stats["chars_out"],
189
+ "redacted_pesel": stats["redacted_pesel"],
190
+ "redacted_account": stats["redacted_account"],
191
+ "scrubber": "pattern-level identifier redaction only (PESEL, bank account); "
192
+ "SlayerLab/NERGAL not yet run; names of persons kept as published",
193
+ }
194
+ print(json.dumps(summary, ensure_ascii=False, indent=2))
195
+ print(f"wrote {out_path} in {round(time.time() - t0)}s", flush=True)
196
+ return 0
197
+
198
+
199
+ if __name__ == "__main__":
200
+ raise SystemExit(main())
src/fetch_nik_control_reports_pl.py ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Fetch NIK (Supreme Audit Office) control reports into a SpeakLeash-style
3
+ .jsonl.zst for build_dynaword.py.
4
+
5
+ Official documents of Najwyższa Izba Kontroli ("Informacja o wynikach
6
+ kontroli"), outside copyright under art. 4 pkt 2 pr. aut., same legal basis
7
+ as the shipped dziennik_ustaw and sejm_interpellations shards. The audit
8
+ reports are PDF attachments on server-rendered control pages
9
+ (https://www.nik.gov.pl/kontrole/...); text is extracted with pypdf.
10
+
11
+ Record = one control report PDF (the "Informacja o wynikach kontroli" and
12
+ same-page attachments); page chrome lives in meta (nr ewidencyjny, date,
13
+ thematic field). Caveats (quoted third-party text inside official documents)
14
+ are recorded in the companion license-evidence file; PII scrubbing is
15
+ SlayerLab/NERGAL, not this repo.
16
+
17
+ Usage:
18
+ python3 src/fetch_nik_control_reports_pl.py --out ~/speakleash
19
+ python3 src/fetch_nik_control_reports_pl.py --out ~/speakleash --max-docs 20
20
+ """
21
+ from __future__ import annotations
22
+ import argparse, gzip, html as htmllib, json, re, subprocess, sys, time
23
+ from multiprocessing import Pool
24
+ from pathlib import Path
25
+ from urllib.error import HTTPError, URLError
26
+ from urllib.parse import urljoin
27
+ from urllib.request import Request, urlopen
28
+
29
+ BASE = "https://www.nik.gov.pl"
30
+ LISTING = BASE + "/kontrole/wyniki-kontroli-nik/prosta/limit,50,strona,{}.html"
31
+ KEY = "nik_control_reports_pl"
32
+ UA = {"User-Agent": "polish-dynaword/0.1 (+research; openly-licensed corpus)",
33
+ "Accept": "*/*"}
34
+ MIN_CHARS = 200
35
+ LICENSE = "public-domain (official documents)"
36
+ AUTHOR = "Najwyższa Izba Kontroli"
37
+
38
+ CTRL_RE = re.compile(r'href="([^"]*?/kontrole/[A-Z]{1,3}/\d{2}/\d{3}[^"]*)"')
39
+ PDF_RE = re.compile(r'href="([^"]*?/kontrole/[^"]*?pobierz[^"]*?\.pdf)"', re.I)
40
+ EWID_RE = re.compile(r"Nr ewidencyjny:\s*([A-Z]{1,3}/\d{2}/\d{3})")
41
+ DATE_RE = re.compile(r"Data publikacji:\s*([\d. :]+)")
42
+ FIELD_RE = re.compile(r"Dział tematyczny:\s*([^<]+)")
43
+ TITLE_RE = re.compile(r"<h1[^>]*>(.*?)</h1>", re.S)
44
+ TAG_RE = re.compile(r"<[^>]+>")
45
+
46
+ # The results listing is a JS pager (all /strona,N URLs return page 1; no
47
+ # sitemap). Controls carry official sequential record numbers (Nr ewidencyjny
48
+ # P|D|I/RR/NNN), so the inventory sweeps that numbering with a gap tolerance
49
+ # and probes only public detail pages, politely and serially.
50
+ PREFIXES = ("P", "D", "I", "G", "K", "N", "S", "R", "A", "Z")
51
+ YEARS = range(2004, 2027)
52
+ MAX_GAP = 80
53
+
54
+
55
+ def _get(url: str, retries: int = 5):
56
+ import http.client
57
+ for attempt in range(retries):
58
+ try:
59
+ with urlopen(Request(url, headers=UA), timeout=90) as r:
60
+ return r.read()
61
+ except HTTPError as e:
62
+ if e.code in (403, 404, 410): # permanent answers are misses, not retries
63
+ return None
64
+ if attempt == retries - 1:
65
+ return None
66
+ time.sleep(2 * (attempt + 1))
67
+ except (URLError, TimeoutError, http.client.HTTPException,
68
+ ConnectionError, OSError):
69
+ if attempt == retries - 1:
70
+ return None
71
+ time.sleep(2 * (attempt + 1))
72
+
73
+
74
+ def pdf_to_text(blob: bytes) -> str:
75
+ import io
76
+
77
+ import pypdf
78
+ reader = pypdf.PdfReader(io.BytesIO(blob))
79
+ parts = []
80
+ for page in reader.pages:
81
+ parts.append(page.extract_text() or "")
82
+ return "\n".join(parts)
83
+
84
+
85
+ def parse_control_page(url: str, html_src: str):
86
+ """Control page -> (meta dict, list of PDF urls)."""
87
+ def clean(x):
88
+ return " ".join(htmllib.unescape(TAG_RE.sub("", x)).split())
89
+ m = EWID_RE.search(html_src)
90
+ d = DATE_RE.search(html_src)
91
+ f = FIELD_RE.search(html_src)
92
+ t = TITLE_RE.search(html_src)
93
+ meta = {
94
+ "control_id": clean(m.group(1)) if m else "",
95
+ "published": clean(d.group(1)).split()[0].replace(".", "-") if d else "",
96
+ "field": clean(f.group(1)) if f else "",
97
+ "title": clean(t.group(1)) if t else "",
98
+ "source_url": url,
99
+ }
100
+ pdfs = [urljoin(BASE, u.replace("&amp;", "&")) for u in PDF_RE.findall(html_src)]
101
+ return meta, sorted(set(pdfs))
102
+
103
+
104
+ def _inventory_block(task):
105
+ """Sweep one (prefix, year) block serially; ends after MAX_GAP misses."""
106
+ pref, yy, delay = task
107
+ yy2 = str(yy)[2:]
108
+ rows, miss, found = [], 0, 0
109
+ n = 1
110
+ while miss < MAX_GAP:
111
+ url = f"{BASE}/kontrole/{pref}/{yy2}/{n:03d}"
112
+ raw = _get(url) # None on any fetch failure = miss, never raises
113
+ n += 1
114
+ if raw and b"Nr ewidencyjny" in raw:
115
+ rows.append({"control_url": url})
116
+ found += 1
117
+ miss = 0
118
+ else:
119
+ miss += 1
120
+ if delay:
121
+ time.sleep(delay)
122
+ return pref, yy2, found, rows
123
+
124
+
125
+ def inventory(out_dir: Path, delay: float, workers: int = 3):
126
+ """Sweep official record numbers (Nr ewidencyjny) over public detail pages.
127
+
128
+ The results listing is a JS pager, so the inventory walks the official
129
+ sequential numbering instead: blocks of (prefix, year), each block serial
130
+ and polite, a few blocks in parallel. Completed blocks are journaled to
131
+ inventory.done and rows appended to inventory.jsonl.gz, so a rerun (after
132
+ a network reset, say) resumes exactly where it stopped.
133
+ """
134
+ out_dir.mkdir(parents=True, exist_ok=True)
135
+ inv_path = out_dir / "inventory.jsonl.gz"
136
+ done_path = out_dir / "inventory.done"
137
+ done = set(done_path.read_text(encoding="utf-8").splitlines()) if done_path.exists() else set()
138
+ tasks = [(pref, yy, delay) for yy in YEARS for pref in PREFIXES
139
+ if f"{pref}/{str(yy)[2:]}" not in done]
140
+ print(f"inventory blocks: {len(tasks)} to do ({len(done)} journaled)", flush=True)
141
+ total = 0
142
+ with Pool(workers) as pool:
143
+ for pref, yy2, found, block_rows in pool.imap_unordered(_inventory_block, tasks):
144
+ if block_rows:
145
+ with gzip.open(inv_path, "at", encoding="utf-8", compresslevel=4) as f:
146
+ for r in block_rows:
147
+ f.write(json.dumps(r, ensure_ascii=False) + "\n")
148
+ total += len(block_rows)
149
+ with done_path.open("a", encoding="utf-8") as f:
150
+ f.write(f"{pref}/{yy2}\n")
151
+ if found:
152
+ print(f" {pref}/{yy2}: {found} controls (+{total} rows so far)", flush=True)
153
+ rows = []
154
+ seen = set()
155
+ with gzip.open(inv_path, "rt", encoding="utf-8") as f:
156
+ for line in f:
157
+ try:
158
+ r = json.loads(line)
159
+ if r["control_url"] not in seen:
160
+ seen.add(r["control_url"])
161
+ rows.append(r)
162
+ except Exception:
163
+ pass
164
+ print(f"inventory controls: {len(rows):,}", flush=True)
165
+ return rows
166
+
167
+
168
+ def compress(jsonl: Path, out_dir: Path) -> Path:
169
+ target = out_dir / f"{KEY}.jsonl.zst"
170
+ try:
171
+ subprocess.run(["zstd", "-19", "-f", "--rm", str(jsonl), "-o", str(target)], check=True)
172
+ except (FileNotFoundError, subprocess.CalledProcessError):
173
+ import zstandard
174
+ with open(jsonl, "rb") as src, open(target, "wb") as dst:
175
+ zstandard.ZstdCompressor(level=19).copy_stream(src, dst)
176
+ jsonl.unlink()
177
+ return target
178
+
179
+
180
+ def main() -> int:
181
+ parser = argparse.ArgumentParser()
182
+ parser.add_argument("--out", type=Path, default=Path("."))
183
+ parser.add_argument("--delay", type=float, default=0.2)
184
+ parser.add_argument("--max-docs", type=int, default=0)
185
+ args = parser.parse_args()
186
+ args.out.mkdir(parents=True, exist_ok=True)
187
+ jsonl = args.out / f"{KEY}.jsonl"
188
+ t0 = time.time()
189
+ controls = inventory(args.out, args.delay)
190
+ print(f"inventory controls: {len(controls):,}", flush=True)
191
+ done = set()
192
+ if jsonl.exists():
193
+ with open(jsonl, encoding="utf-8") as f:
194
+ for line in f:
195
+ try:
196
+ done.add(json.loads(line)["record_id"])
197
+ except Exception:
198
+ pass
199
+ kept = skipped = 0
200
+ with open(jsonl, "a", encoding="utf-8") as fo:
201
+ for row in controls:
202
+ raw = _get(row["control_url"])
203
+ if raw is None:
204
+ skipped += 1
205
+ continue
206
+ html_src = raw.decode("utf-8", "replace")
207
+ meta, pdfs = parse_control_page(row["control_url"], html_src)
208
+ for i, pdf_url in enumerate(pdfs):
209
+ rid = f"{meta['control_id'] or row['control_url'].rstrip('/').split('/')[-1]}#{i}"
210
+ if rid in done:
211
+ continue
212
+ blob = _get(pdf_url)
213
+ if blob is None:
214
+ skipped += 1
215
+ continue
216
+ try:
217
+ text = pdf_to_text(blob)
218
+ except Exception:
219
+ skipped += 1
220
+ continue
221
+ text = re.sub(r"[ \t]+", " ", text)
222
+ text = "\n".join(line.strip() for line in text.splitlines() if line.strip())
223
+ if len(text) < MIN_CHARS:
224
+ skipped += 1
225
+ continue
226
+ fo.write(json.dumps({
227
+ "id": f"{KEY}_{meta['control_id'].replace('/', '_').lower()}_{i}" if meta["control_id"] else f"{KEY}_{abs(hash(pdf_url)) % 10**12}_{i}",
228
+ "record_id": rid,
229
+ "text": text,
230
+ "created": meta["published"],
231
+ "license": LICENSE,
232
+ "author": AUTHOR,
233
+ "control_id": meta["control_id"],
234
+ "title": meta["title"],
235
+ "field": meta["field"],
236
+ "source_url": pdf_url,
237
+ }, ensure_ascii=False) + "\n")
238
+ done.add(rid)
239
+ kept += 1
240
+ if args.max_docs and kept >= args.max_docs:
241
+ break
242
+ if (kept + skipped) % 50 == 0:
243
+ print(f" seen {kept + skipped:,} kept {kept:,} skip {skipped:,} "
244
+ f"{(kept + skipped) / max(time.time() - t0, 1):.2f}/s", flush=True)
245
+ if args.max_docs and kept >= args.max_docs:
246
+ break
247
+ if args.delay:
248
+ time.sleep(args.delay)
249
+ print(f"fetched {kept:,} new reports ({skipped:,} skipped); compressing...", flush=True)
250
+ target = compress(jsonl, args.out)
251
+ print(f"wrote {target} in {round(time.time() - t0)}s")
252
+ return 0
253
+
254
+
255
+ if __name__ == "__main__":
256
+ raise SystemExit(main())
src/sources.py CHANGED
@@ -1043,6 +1043,32 @@ SOURCES = {
1043
  "is_ocr": False,
1044
  "custom_datasheet": True,
1045
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1046
  }
1047
 
1048
  # Fallback stamp for a source with no recorded "added" date of its own.
 
1043
  "is_ocr": False,
1044
  "custom_datasheet": True,
1045
  },
1046
+ "nik_control_reports_pl": {
1047
+ "added": "2026-10-10",
1048
+ "release": None,
1049
+ "file_key": "nik_control_reports_pl",
1050
+ "pretty": "NIK control reports (Najwyższa Izba Kontroli)",
1051
+ "license": "public-domain (official documents)",
1052
+ "license_spdx": "LicenseRef-Polish-Official-Documents",
1053
+ "traceable": "Official control reports excluded from copyright under Polish "
1054
+ "Copyright Act art. 4 pkt 2; reuse of public-sector information under "
1055
+ "the Polish Open Data Act arts. 2(12), 5, 14 and 17. Caveats (quoted "
1056
+ "third-party text inside official documents), quotes and hashes: "
1057
+ "data/nik_control_reports_pl/nik_control_reports_pl.license-evidence.json.",
1058
+ "provenance": "Fetched directly from nik.gov.pl (Najwyzsza Izba Kontroli): the public "
1059
+ "results listing is a JS pager, so the inventory sweeps the official "
1060
+ "record numbers (Nr ewidencyjny P|D|I/RR/NNN) over public detail pages; "
1061
+ "each report PDF ('Informacja o wynikach kontroli' and attachments) is "
1062
+ "extracted with pypdf from its text layer, then "
1063
+ "src/clean_nik_control_reports_pl.py normalizes the text. No "
1064
+ "intermediary snapshot.",
1065
+ "domain": "audit/control reports (state audit)",
1066
+ "created": "2005-2026",
1067
+ "preserve_id": True,
1068
+ "preserve_created": True,
1069
+ "is_ocr": False,
1070
+ "custom_datasheet": True,
1071
+ },
1072
  }
1073
 
1074
  # Fallback stamp for a source with no recorded "added" date of its own.
src/test_nik_control_reports_pl_contract.py ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """TDD contract for NIK (Supreme Audit Office) control reports ingestion."""
2
+ import json
3
+ import sys
4
+ import unittest
5
+ from collections import Counter
6
+ from pathlib import Path
7
+
8
+ sys.path.insert(0, str(Path(__file__).resolve().parent))
9
+
10
+ ROOT = Path(__file__).resolve().parent.parent
11
+ DATA = ROOT / "data" / "nik_control_reports_pl"
12
+ PARQUET = DATA / "nik_control_reports_pl.parquet"
13
+ STATS = DATA / "nik_control_reports_pl.stats.json"
14
+ EVIDENCE = DATA / "nik_control_reports_pl.license-evidence.json"
15
+ SAMPLING = DATA / "nik_control_reports_pl.sampling.json"
16
+ CARD = DATA / "nik_control_reports_pl.md"
17
+ CANON = ["id", "text", "source", "added", "created", "token_count", "license", "author"]
18
+
19
+ from clean_nik_control_reports_pl import ( # noqa: E402
20
+ base_normalize,
21
+ clean_text,
22
+ find_boilerplate,
23
+ redact,
24
+ )
25
+ from fetch_nik_control_reports_pl import KEY, EWID_RE # noqa: E402
26
+
27
+
28
+ class NormalizeTextTest(unittest.TestCase):
29
+ """Filters live in the committed clean script; these pin their behaviour."""
30
+
31
+ def test_soft_hyphen_breaks_are_joined(self):
32
+ out = base_normalize("sporzą-\ndzenie pozostałych projektów\nzlecono")
33
+ self.assertIn("sporządzenie pozostałych projektów", out)
34
+
35
+ def test_mid_line_hyphens_are_content(self):
36
+ out = base_normalize("rozwój gminnej i powiatowej infrastruktury\nwarszawsko-łódzki koridor")
37
+ self.assertIn("warszawsko-łódzki", out)
38
+
39
+ def test_page_furniture_is_dropped_content_kept(self):
40
+ text = "I. Dane identyfikacyjne\nstrona 2 z 47\n18\nKontrole przeprowadzono w 2018 r."
41
+ out = base_normalize(text)
42
+ self.assertNotIn("strona 2 z 47", out)
43
+ self.assertNotIn("\n18\n", f"\n{out}\n")
44
+ self.assertIn("I. Dane identyfikacyjne", out)
45
+ self.assertIn("Kontrole przeprowadzono", out)
46
+
47
+ def test_boilerplate_is_frequency_detected_not_hand_listed(self):
48
+ letterhead = "NAJWYŻSZA IZBA KONTROLI ul. Filtrowa 57, 02-056 Warszawa tel. +48 22 444 50 00"
49
+ body = [
50
+ [letterhead, "Wystąpienie pokontrolne do Ministra Zdrowia w sprawie dostępności"],
51
+ [letterhead, "Kontrola przeprowadzona w jednostkach podległych wojewodzie"],
52
+ [letterhead, "Ustalenia kontroli przedstawiono w części opisowej sprawozdania"],
53
+ [letterhead, "Wnioski pokontrolne skierowano do kontrolowanych jednostek"],
54
+ ]
55
+ boiler = find_boilerplate(iter(body), len(body))
56
+ self.assertIn(letterhead, boiler)
57
+ stats = Counter()
58
+ out = clean_text("Ustalenia kontroli przedstawiono w części opisowej sprawozdania\n" + letterhead,
59
+ boiler, stats)
60
+ self.assertNotIn("Filtrowa", out)
61
+ self.assertIn("Ustalenia kontroli", out)
62
+
63
+ def test_page_headers_recurring_inside_docs_are_dropped(self):
64
+ header = "WAŻNIEJSZE WYNIKI KONTROLI"
65
+ word = "faktycznego"
66
+ docs = []
67
+ for i in range(120):
68
+ docs.append([header] * 20 + [word] * 3 + [f"Ustalenia numer {i} w części opisowej sprawozdania z kontroli"] * 5)
69
+ for i in range(40):
70
+ docs.append([f"Ten dokument nie powtarza nagłówka stronicowego ani razu {i}"])
71
+ boiler = find_boilerplate(iter(docs), len(docs))
72
+ self.assertIn(header, boiler)
73
+ self.assertNotIn(word, boiler, "wrapped single words are content, not furniture")
74
+ self.assertNotIn("", boiler, "paragraph marks are structure")
75
+
76
+ def test_identifiers_are_redacted_not_numbers_of_law(self):
77
+ stats = Counter()
78
+ text = "Numer PESEL świadka 12345678901 oraz rachunek PL61109010140000071219812874, a także art. 4 pkt 2 ustawy."
79
+ out = redact(text, stats)
80
+ self.assertEqual(stats["redacted_pesel"], 1)
81
+ self.assertEqual(stats["redacted_account"], 1)
82
+ self.assertNotIn("12345678901", out)
83
+ self.assertNotIn("0000071219812874", out)
84
+ self.assertIn("art. 4 pkt 2", out)
85
+
86
+
87
+ class ShardContractTest(unittest.TestCase):
88
+ def test_parquet_schema_and_rows(self):
89
+ import pandas as pd
90
+ self.assertTrue(PARQUET.exists(), "run src/build_dynaword.py nik_control_reports_pl first")
91
+ df = pd.read_parquet(PARQUET)
92
+ self.assertEqual(list(df.columns), CANON)
93
+ self.assertGreater(len(df), 1000)
94
+ self.assertTrue((df["text"].str.len() >= 200).all())
95
+ self.assertTrue((df["token_count"] > 0).all())
96
+ self.assertEqual(set(df["source"]), {KEY})
97
+ self.assertEqual(set(df["license"]), {"public-domain (official documents)"})
98
+ self.assertFalse(df["id"].duplicated().any())
99
+
100
+ def test_stats_match_parquet(self):
101
+ import pandas as pd
102
+ stats = json.loads(STATS.read_text(encoding="utf-8"))
103
+ df = pd.read_parquet(PARQUET)
104
+ self.assertEqual(stats["kept"], len(df))
105
+ self.assertEqual(stats["chars"], int(df["text"].str.len().sum()))
106
+ self.assertEqual(stats["read"], stats["kept"] + stats["drop_short"] + stats["drop_lang"]
107
+ + stats["drop_dup"] + stats["drop_ocr"])
108
+
109
+ def test_evidence_records_basis_and_not_checked(self):
110
+ ev = json.loads(EVIDENCE.read_text(encoding="utf-8"))
111
+ for key in ("source", "checked_at", "license", "license_spdx", "status", "review_scope",
112
+ "finding", "evidence_url", "sha256", "copyright_basis", "sampling", "not_checked"):
113
+ self.assertIn(key, ev)
114
+ self.assertEqual(ev["source"], KEY)
115
+ self.assertTrue(ev["not_checked"], "a review that lists only what passed reads as complete")
116
+ self.assertEqual(ev["sampling"]["mark"], "V")
117
+ self.assertGreaterEqual(ev["sampling"]["sample_n"], 40)
118
+
119
+ def test_sampling_artifact_keeps_ids_and_seed(self):
120
+ smp = json.loads(SAMPLING.read_text(encoding="utf-8"))
121
+ self.assertIn("seed", smp)
122
+ self.assertTrue(smp["items"], "sample IDs and per-item classification must be saved")
123
+ self.assertTrue(all("record_id" in item and "class" in item for item in smp["items"]))
124
+
125
+ def test_card_documents_provenance_and_rights(self):
126
+ card = CARD.read_text(encoding="utf-8")
127
+ self.assertIn("nik.gov.pl", card)
128
+ self.assertIn("art. 4 pkt 2", card)
129
+ self.assertIn("Not checked", card)
130
+ self.assertIn("NERGAL", card)
131
+
132
+
133
+ if __name__ == "__main__":
134
+ unittest.main()