Link DEU, Deutschlandweit, the German remote regions, AMER and North America

DEU and Deutschlandweit are spellings of Germany, AMER and North America of
the United States. Seevetal and Neukirchen-Vluyn are German towns, and
Niedersachsen, Nord-, Ost- and Süddeutschland are regions of Germany named
without towns. Fleet Place Office and Solaris SE stay unlinked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-30 13:22:33 +02:00
1 parent a19c528e3f
commit 5410131f4a
3 files changed
+19 -6

No files matched your search

+10 -1
View File
@@ -135,6 +135,7 @@ _ALIAS_GROUPS: tuple[tuple[str, ...], ...] = (
("Lübeck", "Luebeck", "Lubeck"),
("Münster", "Muenster", "Munster"),
("Saarbrücken", "Saarbruecken", "Saarbrucken"),
("Neukirchen-Vluyn",),
# Austria
("Vienna", "Wien", "Vienne"),
("Salzburg",),
@@ -304,8 +305,16 @@ _ORESUND = Region(
_split("Øresund, Öresund, Oresund, Oresund Region, Øresundsregionen, Öresundsregionen"),
(), includes=("hovedstaden", "skane"))
# Germany's by the names boards write for a remote role's area, towns not
# listed: a town in Germany is found through the country.
_GERMANY = tuple(Region(key, label, _split(names), (), "DE") for key, label, names in (
("niedersachsen", "Niedersachsen", "Niedersachsen, Lower Saxony"),
("norddeutschland", "Norddeutschland", "Norddeutschland, Northern Germany"),
("ostdeutschland", "Ostdeutschland", "Ostdeutschland, Eastern Germany"),
("suddeutschland", "Süddeutschland", "Süddeutschland, Southern Germany")))
REGIONS: dict[str, Region] = {
r.key: r for r in (_SKANE, _HOVEDSTADEN, _ZEALAND, _ORESUND, _JUTLAND, _FUNEN)}
r.key: r for r in (_SKANE, _HOVEDSTADEN, _ZEALAND, _ORESUND, _JUTLAND, _FUNEN, *_GERMANY)}
def _phrases(region: Region) -> tuple[str, ...]: