Closed fablet closed 1 year ago
@TimPurdum Just to give you a little background, this is the open source package I created for normalizing addresses. (Not to be confused with validating the addresses) This update to this package provides me the flexibility to fix a minor issue in GBR where cities like St Louis can enter the db as either St Louis or Saint Louis, and that lack of consistency has resulted in some address duplication.
Adds a city normalization function with preliminary abbreviations for replacement This function is not directly applied, but the city parsing/normalizing within the NormalizeAddress class has been moved to an overridable method, so that the new function, or a different city normalization method, can be applied if desired. This preserves the original behavior while opening up options for city normalizing.