Jump to content

Topic on Extension talk:Lingo/Flow

Enabling plurals for acronyms

2
VersedFenrir (talkcontribs)

In cases where you have a "Request For Comments", a "RFC", it is not uncommon for editors to write "RFCs", but this is not recognized by Lingo and there does not appear to be a way to make it do that.

I understand that one solution is to define both RFC and RFCs in Terminology and replicate this for all applicable cases, but that is hard to maintain.

I attempted to use JS in several different ways to attach Lingo to the plural version of acronyms, and while it almost works by fetching Terminology via API and attaching the link to the DOM, Lingo's CSS doesn't really apply to this JS pop-up and the inwiki links don't parse even if I replicate Lingo's characteristics 1:1 and ask it to re-render.

Has anyone ever thought up a solution for this? Maybe I am missing some more straightforward method, but I really pushed JS to its limits.

Elcapitan68 (talkcontribs)

As a glossary extension, Lingo is designed to provide definitions for terms in their glossary form, as listed on the Terminology page (or its equivalent).

It supports multiple term variants for the same definition, making it as simple as:

...
;RFC
;RFCs
:Request for Comments
...

Lingo doesn't pretend to know, recognize and process all forms of a word; it can be a nightmare in languages that are more inflected than English.

I believe a well-defined convention and contribution codex would be far more effective than a complex JavaScript solution here.