Accelerated infected form generations for Russian?

Fragment of a discussion from User talk:Rua

I created собаки by temporarily switching собака to use User:-sche/ru rather than Template:ru-noun. That doesn't show up in собака's edit history, because I found that I didn't even need to save my changes to собака, I just had to click "preview" and Conrad's ACCEL picked up on it. To enable ACCEL creation more broadly, you'll want to edit Template:ru-noun, so that you can just click on the links in the lemma entries without having to edit them (except at first, when you might have to make null edits, until all the caches update).

As for "genitive-form" being on the same line as "[[plural|pl.]]": I simply enclosed all instances of {{gen}}, the code which generates the genitive form, in the "form-of genitive-form" span. It so happens that—while a little extra code does allow for cases where the gen and pl differ, and in those cases ACCEL creation of the plural could be enabled by another span—in most cases, the template just labels the genitive "gen. sg. & nom. pl." and doesn't take the plural as a parameter.

AFAICT, the only way to get accelerated creation of plural forms is to (1) rewrite the template so that the plural form is specified in entries, and displayed by the template, as a separate parameter or (2) write specialised .js that figures out when a Russian noun has not been declared to have a plural different from its genitive, and that, in such cases, offers a "green link" to a page with both "genitive of" and "plural of" lines.

- -sche (discuss)20:13, 3 April 2013

The current template has pl and pltr (translit.) for plural. Plural form may match other cases, not just genitive. It all seems very complicated but are you able to rewrite the Template:ru-noun so that clicking on the plural form (don't worry about other cases for now, providing just one case in the template is not really helpful) is accelerated (like it is for English, etc.)? It's OK if plural coincides with other cases, this can be done manually or not at all. So if собаки only had "nominative plural of собака", it's not incorrect. I saw that you experimented but it didn't work, did it?

Anatoli (обсудить/вклад)22:47, 3 April 2013

Hmm, Template:ru-noun is more complicated that I thought: собака contains gen=собаки|gentr=sobáki|pl=собаки|pltr=sobáki but displays "gen. sg. & nom. pl. собаки (sobáki)". If someone could figure out how to update Conrad's script to handle the precise templates Russian uses, accelerated creation of plural forms when they are displayed separately (as on сердце) could be enabled, but when they are suppressed (as on собака, which displays only the text that was set as the genitive), I don't see how ACCEL can be made to pick up on them, or what ACCEL could link / what humans could click on. Unfortunately, Conrad's script and {{ru-noun}} are both quite complex, and I don't have time at the moment to learn enough about them to be able to make a major edit to either. We should move this discussion to the Grease Pit, where other editors might be able to help out.

- -sche (discuss)01:58, 4 April 2013

Thank you for trying. Maybe someone will help or I will request on GP.

Anatoli (обсудить/вклад)02:16, 4 April 2013