Answer product-owner round 2: a street joining names with a bare comma is dropped, and the US places read as a drawn tenth plus the capitals and big places

This commit is contained in:
2026-10-11 19:06:28 +02:00
committed by Lillem4n
parent 7eb3a334d7
commit 1f9b201633
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ ONE_POSITION = {"Stockholm", "Göteborg", "Malmö"}
UNMATCHED_POPULATION = 200
# Not a street: a road number, a ferry route, a cycle path or road association's label, a placeholder, or two names
# or a description in one.
NOT_A_STREET = re.compile(r"^(Europaväg|Länsväg|Riksväg) \d|^Färjeled |\b(GC|SMF|VSF)\b|^NN$|, ")
NOT_A_STREET = re.compile(r"^(Europaväg|Länsväg|Riksväg) \d|^Färjeled |\b(GC|SMF|VSF)\b|^NN$|,")
PARTICLES = {"af", "de", "von"}