You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In addition to issue #16, it's helpful to be able to detect grammatical gender, grammatical number and even grammatical case of a given variable. If a user defined value from a variable needs to agree with a verb, number, article or preposition, this functionality will be required. Most message formatting implementations assume that you already know this information at build time, but this needs to be flexible enough to know at runtime.
Describe the solution you'd like
Typically a dictionary is needed in such scenarios. Sometimes a heuristic can be used for some languages. Though sometimes it's helpful if this data can be overridden as needed.
Describe why your solution should shape the standard
It's near impossible right now to get the correct verb, number, article or preposition correct in several gendered languages. You will also need to know if the word/phrase starts or ends with a consonant or a vowel. This is important for the English indefinite article, French articles, Italian articles, and the "and/conjunction" list for Spanish, Italian and Korean.
Maybe rephrase this in a way that is independent of "detection"
I think there might be a few mechanisms that one can use:
Together with the message specify a set of possible values. That can be direct string values, or references (identifiers) to other messages. For example you deleted the last {foo} with `foo : oneof ["folder", "file", "image", account"]. Translators would have a way to "annotate" the possible values (feminine-singular, definite-article, ...)
Algorithmic (real algorithm, ML model, etc.)
Service
Ideally the message format side it would be unaware of that. It would define the "form" required, and would understand the "annotations". Would not need to know where the annotations come from.
Might need a way to "plugin" the calls to a ML model / algorithm / service.
TBD.
Just thinking out loud :-)
Is your feature request related to a problem? Please describe.
In addition to issue #16, it's helpful to be able to detect grammatical gender, grammatical number and even grammatical case of a given variable. If a user defined value from a variable needs to agree with a verb, number, article or preposition, this functionality will be required. Most message formatting implementations assume that you already know this information at build time, but this needs to be flexible enough to know at runtime.
Describe the solution you'd like
Typically a dictionary is needed in such scenarios. Sometimes a heuristic can be used for some languages. Though sometimes it's helpful if this data can be overridden as needed.
Describe why your solution should shape the standard
It's near impossible right now to get the correct verb, number, article or preposition correct in several gendered languages. You will also need to know if the word/phrase starts or ends with a consonant or a vowel. This is important for the English indefinite article, French articles, Italian articles, and the "and/conjunction" list for Spanish, Italian and Korean.
Additional context or examples
Siri already does this for various languages. See Let's Come To An Agreement About Our Words for examples.
The text was updated successfully, but these errors were encountered: