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

Language/country specific synonyms #444

Open
orangejulius opened this issue Jun 2, 2020 · 0 comments
Open

Language/country specific synonyms #444

orangejulius opened this issue Jun 2, 2020 · 0 comments

Comments

@orangejulius
Copy link
Member

There has been a lot of discussion and chatter about synonyms lately, so I wanted to throw out an idea we've probably all had:

What would it take to have country or language specific synonyms that were not applied globally?

Background

The Pelias schema contains a couple different files that list synonyms of various types, such as street/st, &/and, etc. They are currently applied globally, and due to the nature of the Pelias core team and users/customers experience, are very English/USA-centric.

When we set up Pelias for clients that care about specific languages, a big part of the customization is usually setting up synonyms relevant to their situation. For several reasons, we often don't bring these back into Pelias core.

Partially, it's the complexity of managing all the lists of synonyms, but also the performance.

For example, in Catalonia, Spain, the word for street, carrer, is often abbreviated c. This ends up having a big performance impact on Pelias since any query for any word starting with c can end up matching every road in Spain.

Solutions?

Since we now apply synonyms only at index time, we might be able to be smart about it and apply only regionally specific synonyms. What would it take for this to happen?

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

No branches or pull requests

1 participant