Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix addresses with a dirty ordinal indicator. #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seabre
Copy link

@seabre seabre commented Aug 30, 2017

Hi! Over at CrowdFiber we have a lot of parcel data with addresses and
frequently encounter cases like 1 1 ST St, e San Jose CA. We expect the parser to produce an address like 1 1st St, East San Jose, CA but without this fix 1 1 St St, East San Jose, CA is what we get.

We could fix this in post processing, but it makes more sense to take this case into account inside StreetAddress::US since we encounter it so often.

I've added test cases based on addresses in StreetAddress::US test suite and modified to match the issue we're encountering. My changes pass the test suite and we have been using this code in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant