Scripting: is it tagsGroup, tagGroup or tagGroups?

The scripting dictionary for JavaScript is a bit irritating (or I’m irritated):

There’s an “element” tagGroup and a “class” TagGroup in the top listing, but in the Database class, I see tagsGroup in the Properties section and a tagGroups in the Elements part. No tagGroup though. There seems to be a lack of s, but where?

What gives?

Ok, I got it. The singular/plural weirdness (and tagsGroup vs. tagGroup) was too much for my slightly fogged up brain.

There’s actually no explicit JavaScript dictionary, it’s just an automatic conversion based on the AppleScript dictionary by the Script Editor.