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

Proposal: Language annotation keyword #1125

Closed
jviotti opened this issue Sep 14, 2021 · 4 comments
Closed

Proposal: Language annotation keyword #1125

jviotti opened this issue Sep 14, 2021 · 4 comments

Comments

@jviotti
Copy link
Member

jviotti commented Sep 14, 2021

This keyword would belong to the Meta-Data vocabulary and would set the language of a JSON string as an ISO 639-1 language code. For example:

{
    "type": "string",
    "language": "en_US"
}

The use case where this came up is applying textual dictionary compression formats optimized for prose which may take a language as an optimization hint.

@karenetheridge
Copy link
Member

"language" isn't a term with a precise definition, but "locale" is.

@l0b0
Copy link

l0b0 commented Nov 18, 2021

"language" isn't a term with a precise definition, but "locale" is.

RFC 5646, probably the most well-known standard in this area, is called "Tags for Identifying Languages". That standard uses "locale" 10 times and "language" almost 900 times.

@l0b0
Copy link

l0b0 commented Nov 18, 2021

A project I'm part of wants to use RFC 5646 language tags in a property to inform users of the contents of geospatial dataset assets. I'm going to implement this as an enum, but this seems like it would be a good candidate for a JSON Schema format. Would this be something you'd be interested in as a PR?

@jviotti
Copy link
Member Author

jviotti commented Aug 15, 2022

I'm closing this old issue in the spirit of helping cleaning up the spec issue tracker. We can move to GitHub Discussions if this is something people are ever interested in for the official vocabularies.

@jviotti jviotti closed this as completed Aug 15, 2022
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

No branches or pull requests

3 participants