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

Add denominations tree #5960

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Add denominations tree #5960

wants to merge 4 commits into from

Conversation

arch0345
Copy link
Collaborator

@arch0345 arch0345 commented Dec 30, 2021

So far I've just added denominations found in id-tagging-schema. If this gets merged we'll probably have to remove these presets from that repo.

Issues

The build script can't generate an id without a name for each entry in the denominations tree. How are the transit/operator trees set up so that it can generate an id without having a name tag?

Closes #5232
Closes #6874

Added existing denomination presets from id-tagging-schema
Copy link
Member

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With a key like denomination that’s designed to be an enumeration of well-known values, rather than freeform text, id-tagging-schema still looks more promising to me as a mechanism for standardizing and localizing tags: openstreetmap/id-tagging-schema#254.

},
"items": [
{
"displayName": "Kingdom Hall of Jehovah's Witnesses",
Copy link
Member

@1ec5 1ec5 Dec 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many denominations translate their names into as many local languages as possible. The appropriate name usually varies by language more than by region. As it stands, id-tagging-schema is better suited to localization than NSI. This is already an issue for the flags tree, but the issue would be more acute for any denomination tree, because the icon usually wouldn’t be very clarifying to a non-English-speaker.

Or would we limit this tree to just the denominations that have a specialized name and icon for all their places of worship? These three presets only exist because it was considered inappropriate to use the ✝️ icon for these denominations.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I was also thinking about how the displayNames for these denominations could be translated to a region's local language. I agree that id-tagging-schema would be a better place to have these presets because of these current limitations - I hadn't really thought about how the default presets are localized

Or would we limit this tree to just the denominations that have a specialized name and icon for all their places of worship?

This could work, though I can't think of any off the top of my head. I was also looking into how the denomination=mormon wiki page suggests to use operator tags to distinguish The Church of Jesus Christ of Latter-day Saints from other splinter groups. This particular case could work in NSI under the existing operator tree as localized operator values would be possible.

These three presets only exist because it was considered inappropriate to use the ✝️ icon for these denominations.

This makes sense now. I was wondering why there were only these three denomination presets

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't want to introduce localization into the Name Suggestion Index display names. Display name is just the label that the preset shows in RapiD and JOSM.

But I think keeping this tree similar to how the flags tree works would be ok (denomination is an identifying value, and name can be whatever people want).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I think keeping this tree similar to how the flags tree works would be ok (denomination is an identifying value, and name can be whatever people want).

#5982 tracks making flags localizable. Maybe the solution there could inform how we’d make denomination entries localizable too. But in the meantime, id-tagging-schema at least offers a way to localize the display names, even if it doesn’t have a straightforward way to filter denominations by religion (something we’d have to solve as part of this project too).

@@ -0,0 +1,52 @@
{
"properties": {
"path": "denominations/amenity/place_of_worship",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides places of worship, schools, community centers, and social facilities are often identified by their denomination as well. The editor would have to make sure not to “upgrade” something to a place of worship just because it has a matching denomination.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point - I was thinking about adding schools to the denominations tree but left it out for now. IIRC iD only matches items of a different category if it falls into one of these matchGroups

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think in this situation I think it should only offer to upgrade amenity/place_of_worship, or maybe also some generically tagged features like building=yes or amenity=yes when paired with a matching name or operator.

@bhousel
Copy link
Member

bhousel commented Jan 2, 2022

The build script can't generate an id without a name for each entry in the denominations tree. How are the transit/operator trees set up so that it can generate an id without having a name tag?

You'll need to change idgen.js too
https://github.com/osmlab/name-suggestion-index/blob/main/lib/idgen.js

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.

Will NSI handle religion and religious denomination standardization preset? Add amenity=place_of_worship
3 participants