remove full_token_address_suffix_expansion #359
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We currently have a synonyms file called
full_token_address_suffix_expansion
which I believe we can remove in favour of using the combination of two existing synonyms files (street_suffix
&directionals
).I can't remember the history here but the
full_token_address_suffix_expansion
synonyms are presumably intended for use when thefull_token
is available (ie. not for partially complete tokens)Despite this, the
full_token_address_suffix_expansion
functionality seems to avoid 'unsafe' expansions which would only be relevant for partially complete tokens.The synonyms also follow the legacy synonyms format where tokens were 'expanded' from their contracted form to their expanded form (ie. a 'replacement'), the more recent approach we've adopted is to use the
,
convention in mappings rather than the=>
convention which allows for either the contracted or expanded form to match.This feels good to me but I'm a little uneasy about it simply because I don't remember why it was the way it was, I think it's just because the code is old and it's better off being removed and replaced.