Remix.run Logo
tomaytotomato 3 days ago

I am just working through a couple of bugs for my location parsing library for Java called location4j.

https://github.com/tomaytotomato/location4j

It uses NLP to try and understand and resolve a location from some free text to either a City, State or Country.

e.g.

"NY USA" -> "New York, United States of America"

"LOS ANGELES, CA" --> "Los Angeles, California, United States of America"

I have some interesting bugs with collisions in concepts e.g.

- Mexico is a country but you can also call Mexico city

- New York as a city exists in multiple places and is also a state in America

Got some interesting issues with