fix: improve GDPR data quality and simplify article structure#9
Merged
KevinRabun merged 1 commit intomainfrom Feb 9, 2026
Merged
fix: improve GDPR data quality and simplify article structure#9KevinRabun merged 1 commit intomainfrom
KevinRabun merged 1 commit intomainfrom
Conversation
- Remove navigation artifacts from all articles and recitals - Fix recital text extraction (clean ← Recital N → All recitals patterns) - Remove unreliable 'paragraphs' array from articles (source website doesn't cleanly separate paragraph numbers from sub-paragraph numbers) - Simplify article structure to just: number, title, text - Strip standalone paragraph number markers (1, 2, etc.) from text for clean prose - Reduce JSON file size from ~500KB to ~370KB (26% reduction) All 294 tests pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes data quality issues in the bundled GDPR text data and simplifies the article structure for improved usability.
Changes
Data Quality Fixes
← Art. N GDPR,Table of contents,Report error,← Recital N Recital M → All recitals)←Structure Simplification
paragraphsarray from articles - the source website (gdpr-info.eu) doesn't cleanly separate main paragraph numbers from sub-paragraph numbers, making reliable extraction impossiblenumber,title,textBefore
{ "number": 33, "title": "Notification of a personal data breach...", "text": "1\nIn the case of...\n2\nWhere the notification...", "paragraphs": [{"number": 1, "text": "..."}, {"number": 2, "text": "..."}] }After
{ "number": 33, "title": "Notification of a personal data breach...", "text": "In the case of a personal data breach, the controller shall..." }Testing