It'd be really useful if you could filter the lists of tags... Name, active, source.. Defined maybe?
For each tag, getting all of the properties ( https://en.wikipedia.org/w/api.php?action=query&list=tags&tgprop=displayname|description|hitcount|defined|source|active&tglimit=max ) returns
- A "name" for the tag
- A "displayname" for the tag
- A "description" for the tag
- A "hitcount" for the tag
As far as I can tell, if the tag is still active, it also returns an empty defined and active fields, as well as a source that is an array of (currently) either extension, manual, or both. If the tag is inactive, the source array is empty, and the defined and active fields are omitted
The easiest filter would likely be requiring that the filter be active (or inactive). An implementation similar to action=query&list=watchlist&wlshow=, with a new optional parameter to the API beng added (eg tgshow) Thoughts?