As it is now, gender*render assumes every unknown property used as the context value of a tag to be a gendered noun.
However, nouns are not the only words whose grammatical case depends on the preferences of the person they refer to, because some pronouns are grammatically singular, whilst others are grammatically plural - I must admit that I did not think about that when I wrote version 0.1.0 of the specification.
I do, however, think that this issue is easy to address.
The requirements would be as follows:
- When gender*render encounters an unknown word, it checks whether it is a verb or a noun. If the word is a noun with different versions for different genders, it is assumed to be a noun; otherwise, if it is a verb, it is assumed to be a verb; otherwise, it is assumed to be a noun. This construction should suffice to ensure that, in cases where a word can be a noun as well as a verb (are there even words like this in the English language? Let me know if you know more about this!), confusion can be avoided by simply not setting the word into a tag if it is meant to be a noun and said noun doesn't even have multiple versions for multiple genders anyway.
- verbs are assumed to be added to tags in their plural-form, since this form fits the "they" used in template-syntax and is easier to convert to the singular form than vice versa.
- nouns are rendered as specified by the main specification.
- verbs are gendered as follows: If the individuals pronoun data specifies
gender_verbs (potential values are singular and plural), the verb is gendered according to said information (for example, similar to https://smrtenglish.com/cg/lesson/217/2531). Otherwise, the gender is determined based on the persons pronouns (subject), and a warning should be risen (DefaultValueUsedWarning? Or a new type of warning?). Which pronouns corresponds to plural and which correspond to singular is defined by the specification (or would it be a better idea to handle it like gendered nouns and make it implementation dependent? This seems like it'd a bad idea to me since it's far more subjective). In case the pronouns can not be determined as either plural or singular, an error would be risen (probably MissingInformationError).
I feel like this is an important feature, but should not necessarily be part of the main specification, since it comes with lots of logic and therefore, seems slightly too big to me to add it to the main specification, especially since it can be encapsulated relatively well. On the other hand, it's similarly important as gendered noun handling (that is, pretty important), so maybe I should actually make it part of the main specification, or move it out of it together with noun gendering?
Comments & Opinions much appreciated.
As it is now, gender*render assumes every unknown property used as the context value of a tag to be a gendered noun.
However, nouns are not the only words whose grammatical case depends on the preferences of the person they refer to, because some pronouns are grammatically singular, whilst others are grammatically plural - I must admit that I did not think about that when I wrote version 0.1.0 of the specification.
I do, however, think that this issue is easy to address.
The requirements would be as follows:
gender_verbs(potential values aresingularandplural), the verb is gendered according to said information (for example, similar to https://smrtenglish.com/cg/lesson/217/2531). Otherwise, the gender is determined based on the persons pronouns (subject), and a warning should be risen (DefaultValueUsedWarning? Or a new type of warning?). Which pronouns corresponds topluraland which correspond tosingularis defined by the specification (or would it be a better idea to handle it like gendered nouns and make it implementation dependent? This seems like it'd a bad idea to me since it's far more subjective). In case the pronouns can not be determined as either plural or singular, an error would be risen (probablyMissingInformationError).I feel like this is an important feature, but should not necessarily be part of the main specification, since it comes with lots of logic and therefore, seems slightly too big to me to add it to the main specification, especially since it can be encapsulated relatively well. On the other hand, it's similarly important as gendered noun handling (that is, pretty important), so maybe I should actually make it part of the main specification, or move it out of it together with noun gendering?
Comments & Opinions much appreciated.