[openaddresses] Don't allow single-letter boundary names as they're probably just typos

This commit is contained in:
Al
2016-08-25 22:58:26 -04:00
parent 3a8dee523d
commit 34b01e203d

View File

@@ -160,6 +160,8 @@ class OpenAddressesFormatter(object):
if key in AddressFormatter.BOUNDARY_COMPONENTS:
value = self.components.cleaned_name(value, first_comma_delimited_phrase=True)
if value and len(value) < 2:
continue
components[key] = value.strip(', ')