-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
There's this plugin called Text Expander which may work but a) I think you have to hit a hotkey to actually do the expanding and b) it doesn't work with the current version, so you'd have to use the Legacy version, which is likely annoying because lots of other plugins are moving away from that. So we'll call that plan B.
This would also make the next step pretty easy. You install this plugin called "Sort and Permute Lines", which lets you highlight text and then trigger a command to sort it alphabetically. If you have a note with only the note titles of the terms in the glossary that makes alphabetizing easier, because you don't have to worry about the actual definitions.
What you could do is install Espanso, which is also a text expander but you don't have to hit any hotkeys to do the expanding. Though you would have to set up a small config file where you enter the terms in your glossary, which would look something like this: