aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/sampledata/NRW
Commit message (Collapse)AuthorAgeFilesLines
* Run the NRW mass test: WDR-Gesetz and LMG NRWMatthias Andreas Benkard2026-07-283-0/+1658
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 22nd Rundfunkänderungsgesetz amends five laws in one gazette issue. Article 3 (TMZ-Gesetz) was already an acceptance case; this adds the two big ones — Article 1 (WDR-Gesetz, 101 commands across 31 norms) and Article 2 (LMG NRW, 18 commands). Both stem versions come from recht.nrw.de, whose URLs address a version by its date of entry into force, so the results could be checked norm by norm against the official 1 April 2026 consolidations. Applying them turned up work at every layer: Order of application. Renumbering always refers to the original count, not to the state after the preceding items, so a cascade („Absatz 3 wird Absatz 4“, „Absatz 4 wird Absatz 5“, …) applied in document order leaves the law carrying two units of the same name. BefehlAnwender now derives, for each command, which designations it vacates and which it newly occupies, and pulls a vacating command ahead of the first one it collides with. That single rule subsumes the previous §-only special case, orders a cascade descending, and — inside a Sammelbefehl too — keeps a range renumbering from colliding with itself. Bayern's Art. 29a sequence now resolves as well (5 manual residues down to 3). Renumbering an enumeration item. Unlike an Absatz, a Nummer carries its designation as a marker in the text; the applier silently reported success without touching it. It now rewrites the marker and lets a struck placeholder with the target designation give way. Sentence splitting. Gazette citations („(BGBl. I S. 1982)“) and line-initial enumeration markers were splitting sentences, so Satz locators pointed into the wrong place; a sentence may also open with §. Command language: „wie folgt neu gefasst“ and the missing „wird“, a split location („In Absatz 2 wird Satz 1 wie folgt gefasst“), an insertion behind a location prefix, the standalone „Der Punkt am Ende wird durch … ersetzt“, „Dem Wortlaut des Absatzes 3 …“, the verb frame „Es werden ersetzt:“ whose items carry only the location, coordination at „sowie“ and before a punctuation clause, and a stray closing quote at the end of a sentence. Stem format: LandesRechtTextParser reads an „Inhaltsübersicht“ line as the norm of that name (which is what the Angabe commands address) and recognises keyword-less Roman section headings. Everything the two acceptance tests do not apply is named: one command in the WDR-Gesetz whose „Punkt am Ende des Satzes“ is not unambiguous in a two-sentence Nummer. The remaining differences from the official consolidations are places where the official text itself departs from the command wording; SOURCES lists them. Change-Id: I261cf89cd5820f7597bc5db734f322d94b84828e
* Add North Rhine-Westphalia TMZ-Gesetz acceptance caseMatthias Andreas Benkard2026-07-251-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Article 3 of the 22. Rundfunkänderungsgesetz (GV. NRW. 2026 S. 202) amends the Telemedienzuständigkeitsgesetz. All four commands apply cleanly, and the result matches the official consolidated version of 1 April 2026. recht.nrw.de turned out to be the one remaining state portal that serves consolidated laws as server-rendered HTML, with the version history encoded in the URL date prefix — so the pre-amendment stem (27 Apr 2022) was directly obtainable. Two fixes were needed: * LandesRechtTextParser read the parenthesised title suffix wholly as the abbreviation. State laws routinely carry both short title and abbreviation there ("(Telemedienzuständigkeitsgesetz – TMZ-Gesetz)"), and the amendment act cites the short title, so article selection never matched. The parser now splits at the dash. * ZitatExtraktor swallowed the rest of the document when a closing quotation mark is missing in the official text (Article 2 no. 11 here), which hid Articles 3 to 5 entirely. An amendment act never quotes across an article heading, so an open quotation is now closed before a bare "Artikel N" line, with a warning. Quoted paragraphs are unaffected: Bavarian norm heads read "Art. N". 223 tests green; all previously pinned figures unchanged. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Change-Id: I78470075d9be2433966b821b6fe1e21808996c46
* Add Landesrecht amendment samples from eight further LänderMatthias Andreas Benkard2026-07-191-0/+0
Collect real amendment gazettes/ordinances from Berlin, Schleswig-Holstein, Hessen, Niedersachsen (two hefts), Baden-Württemberg, Nordrhein-Westfalen, Sachsen and Thüringen as candidates for a further enhancement wave, plus an .adoc overview. Unlike Bavaria (Art./§ inversion) these Länder use § in their stem laws; the new test dimensions are PDF layout (Berlin two-column, Hessen letter-spacing) and command idioms ("erhält folgende Fassung", superscript Artikel footnote markers, amtliche Satznummern in a § context). Only the amendment documents are included so far; the consolidated stem versions and Rheinland-Pfalz remain open. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Change-Id: I0e3e761763038abda144266381cf59f8d8f3bf78