From e8899eafd6b540b5127a24c7b42c2de562799393 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 19 Oct 2016 01:00:29 -0400 Subject: [PATCH] [osm] adding hyphenation/de-hyphenation to OSM admin components --- scripts/geodata/addresses/components.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/geodata/addresses/components.py b/scripts/geodata/addresses/components.py index ad5062c8..8ba68413 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -861,7 +861,8 @@ class AddressComponents(object): val = state_abbreviations.get_abbreviation(country, language, val, default=val) elif random.random() < abbreviate_toponym_prob: val = abbreviate(toponym_abbreviations_gazetteer, val, language, abbreviate_prob=abbreviate_toponym_prob) - + else: + val = self.name_hyphens(val) address_components[component] = val def quattroshapes_city(self, address_components,