You could probably simply select each group, sort by name - which would then presumably group your files by *article; *annotation; *notes etc. - and then label manually?
Would be quicker to conduct a “search” of the specific criteria you want to re-label, and then simply CTRL-A to select all, and label like that?
But the above is kind of stating the obvious - so apologies if I am not following your query…
If you want it to happen automatically, that would presumably involved designing a script - but there are others here who are far more qualified than me, who could explain if that is possible…
Good luck!
[EDIT:] Having read what you wrote again, I see you are making mention of “tags” - not labels… I speak under correction, but I don’t think you would be able to change the colour of the tags… It would be useful if one could though!