Skip to content

Conversation

@marcarl
Copy link
Collaborator

@marcarl marcarl commented Jan 7, 2026

Link mentions of Swedish government agencies (myndigheter) to their
official websites, similar to how EU and SFS documents are linked.

  • Add apply_agency_links.py with MIT license for agency linking
  • Add agencies.json data file (448 agencies from CivicTech Sweden)
  • Integrate agency linking into the formatting pipeline
  • Add analyze_agency_mentions.py script for generating reports
  • Add comprehensive test suite (30 tests, all passing)
  • Generate initial agency mentions report (3,260 mentions found)

The agency data is sourced from:
https://github.com/civictechsweden/myndighetsdata

claude added 2 commits January 7, 2026 19:33
Link mentions of Swedish government agencies (myndigheter) to their
official websites, similar to how EU and SFS documents are linked.

- Add apply_agency_links.py with MIT license for agency linking
- Add agencies.json data file (448 agencies from CivicTech Sweden)
- Integrate agency linking into the formatting pipeline
- Add analyze_agency_mentions.py script for generating reports
- Add comprehensive test suite (30 tests, all passing)
- Generate initial agency mentions report (3,260 mentions found)

The agency data is sourced from:
https://github.com/civictechsweden/myndighetsdata
@marcarl marcarl linked an issue Jan 7, 2026 that may be closed by this pull request
@marcarl marcarl changed the title Add government agency linking to markdown documents Add government agency website links Jan 7, 2026
- Add runtime download from civictechsweden/myndighetsdata
- Use myndighetsdata_fallback.json as backup when download fails
- Remove agencies.json from git, add to .gitignore
- Convert handlingar.json format to expected structure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Länka myndigheters namn till deras webbplats

3 participants