136

Several times, I wondered if adding a notion of inheritance between tags would be useful. And I think so.

This would majorly make sense with versions. Let's take a few examples:

When someone open a new question, he/she almost always combine both for visibility, plus a few other tags. This system mainly cause two problems today:

  • Questioner side: You only have five tags allowed, and must use two of them for the same subject
  • Answerer side: You must add every "sub-tag" in your favorites to get a full overview of the subject

Here's how inheritance could work:

  • Add the main tag () if your question is not version-related (as now)
  • Add a sub-tag only () if your question is version-related

The system would automatically consider both question as questions, but only the second one as an question.


This change doesn't require much work on front-end, maybe just a little visual change:
Use eclipse (3.5.1) instead of eclipse-3.5.1 to signify its a sub-tag.
In fact, it would mainly induce modifications in the engine and on tags pages.

What are your thoughts about this?

10
  • 22
    meta.stackexchange.com/questions/tagged/tag-hierarchy
    – Bart
    Commented Jul 7, 2014 at 8:10
  • 4
    Oh, "hierarchy" word didn't came to my mind when I did my research...
    – zessx
    Commented Jul 7, 2014 at 8:12
  • 4
    hierarchy or maybe taxonomy.
    – GolezTrol
    Commented Jul 7, 2014 at 15:12
  • People who know html possibly have no/little idea about html5 and vice versa. Inheritance might clog people's interesting questions lists with questions that they have no knowledge of, because these questions might be very specific to the new/old standard. So you can't just assume they are related.
    – SvenT23
    Commented Jul 7, 2014 at 15:44
  • 1
    @SvenT23 Same comment : this system should only be used for "versioning" tags. If there's too much difference between the main tag and the sub-tags, you'll always monitoring a sub-tag. In the case of html, every people who learn HTML is able to understand HTML5. And if you don't consider yourself as an HTML5 expert, you should look the xhtml tag, I guess ?
    – zessx
    Commented Jul 7, 2014 at 15:53
  • 2
    Instead we should just do away with version tags altogether. Why does it matter if you want to use CSS3 transitions; CSS3 is part of CSS. IE11 and IE9 are both IE... yes there are some differences in support, but these should be spelled out inside the post. Tags and titles should draw subject-matter experts to the question, and the content should determine whether they want to/know how to answer or not. No one is a CSS3 expert but not a CSS2 expert, likewise no one is going to be a jQuery 1.9.2 expert but a novice at 1.9.1. It doesn't work that way.
    – TylerH
    Commented Jul 7, 2014 at 18:12
  • 7
    @TylerH: Counter-example (semi-hypothetical): perl (meaning Perl 5.x) and perl6 (meaning the semi-hypothetical Perl 6 language) would be two very different languages. A lot of what applies in Perl 5 would not apply in Perl 6; most of what applies in Perl 6 would not apply to Perl 5. The dichotomy here is much larger than the gap between Python 2.x and Python 3.x (though that too is substantial). Commented Jul 7, 2014 at 21:42
  • Amen. Tags need inheritance. They need hierarchy. For example, I think of html5 as being a shorthand for html/5, or maybe html/html5. Or html5\html\markup-languages (if you will allow me the use of backslash for reverse path notation). If there is a sea of tags, it would be nice to have a tree browser for them. Etc. This is not just applicable to stackoverflow - it is applicable to almost anything that uses tags. Naming conventions quickly become clunky.
    – Krazy Glew
    Commented Jul 8, 2014 at 0:51
  • 2
    possible duplicate of Simple tag hierarchy to aid in searching / browsing
    – Mark Hurd
    Commented Jul 8, 2014 at 5:26
  • 1
    What we could use is some built-in prompting to enter additional, more-specific tags when the user has chosen certain combinations of tags . For instance, if the solaris and ksh tags are both there, there is a high probability that we'll need to ask the user which version of Solaris they are asking about, and it would save time if the asker were prompted to enter that. Commented Jul 8, 2014 at 12:02

3 Answers 3

39

There's nothing in the current implementation that precludes the sort of tagging you're talking about.

The big problem is that folks often have no idea if their question is version-related or not. If you're using version N and have never used version N-1, then expecting you to know whether the functionality you're asking about applies to version N, version N and N-1, or all versions is naive; someone else will have to re-tag it if that is desired. Version tags are best avoided completely in these situations (including the version in the question body isn't a bad idea though).

3
  • 12
    You're probably already aware of how misuse of version-specific tags can also create problems for would-be dupehammer wielders depending on the version tag.
    – BoltClock Mod
    Commented Jul 7, 2014 at 16:11
  • I agree many people don't know if it's version-related or not. That's why I already retag many questions, adding all-versions or n-version tag for a better visibility. I consider it's my job : I know if it's version-related or not, and I've an access to moderation tools. I don't see any problem to continue this work by replacing one either.
    – zessx
    Commented Jul 7, 2014 at 16:24
  • This! There are some very specific cases where version specific tags makes sense, principally when the ABI/API gets mayor changes and both versions keeps getting support, both for all other proposes and aspects they are not necessary almost all the time, which is why I suggested this which could be expanded to not suggesting any tags that match /basename[\d-.]+/ where basename is an existing tag.
    – Braiam
    Commented Jul 7, 2014 at 21:32
15

Why force an inheritance or hierarchy when you have tags? Maintaining a sensible hierarchy is difficult enough in a tightly controlled environment. In a distributed system like stack overflow, it would be a mess.

Inheritance/hierarchy implies a many-one relationship of children to parents. Tagging implies a many-many relationship between children and parents. While the more common case may be many-one ( being a child of ), forcing many-one in a distributed system like stack overflow tends to lead to problems.

Instead, allow tags to be meta tagged.

When a tag is given a meta tag (which is just another tag for now), searching for the meta tag, or anything the meta tag is meta tagged, will also find the tag.

So if is tagged with , searches for would find questions automatically.

Some method to block meta-tag search expansion and only find might be useful.

Cyclic tagging should be allowed (just in case?), but maybe be a sign that what we really have is tag synonyms, but I suspect blocking it would lead to issues.

Synonyms are one-to-one and an equivalent relation, so are not the same thing at all. is a synonym of , but is not.

Another non-version example: Rename/Disambiguate [ios-app-extension] -- should be the parent of many of the app-extension types.

Such a system also opens up the possibility of useful "pure virtual" tags. Suppose there is a tag that is quite often misused because it is too generic, and we want to encourage sub-tag use. Mark it as "pure virtual", and when someone uses it they are given a selection of sub-tags (anything directly meta-tagged with it) to choose from.

So we might decide that is rarely a valid tag: instead of burning it, we virtualize it, and add for the few cases where you want to talk about all of the app-extensions at once in the same post (if that is the case). Askers get better feedback about how to tag, answerers remain able to look at all s if they are experts at all of them. And the app-extensions that are not ios-app-extensions can be , which is also meta tagged with.

8
  • Don't tag synonyms already accomplish what you're describing? Well, not for CSS3, I guess. But I claim that CSS3 questions should also be tagged CSS anyway.
    – Robert Harvey Mod
    Commented Jul 7, 2014 at 15:39
  • As I read it, they do... but also combine the tags. Yakk seems to be advocating for maintaining distinct css and css3 tags, but adding a mechanism for css3 tags to show up in a css tag search. Commented Jul 7, 2014 at 15:41
  • 25
    What you're proposing here is a tag hierarchy, you're just calling it something different...
    – Servy
    Commented Jul 7, 2014 at 15:42
  • @RobertHarvy css3 and css2 is not synonymous with css, but css3 and css2 deserve the meta-tag of css. Now suppose something as scary as css.net becomes popular: css.net would be meta-tagged css and .net both. Commented Jul 7, 2014 at 15:44
  • 1
    Yes, meta-tagging tags would be one way to build such a proposed tag hierarchy?!
    – Bergi
    Commented Jul 7, 2014 at 15:45
  • 2
    @Servy I am distinguishing between heirarchical systems vs tag systems in a way similar to this: ruleant.blogspot.ca/2012/09/… -- a tag system is a many-to-many connection, and (I am suggesting above) not even a tree. Such systems (with fewer rules) can survive distributed editing better than ones with strict constraints sometimes. Commented Jul 7, 2014 at 15:49
  • @Yakk Interesting way... I would like to insist on the point that this system should only be used for "versioning" tags. Everyone monitoring css will be interested by css3, but not necessary by sass.
    – zessx
    Commented Jul 7, 2014 at 15:49
  • See the commentary here. I have no opinion as to whether you were right and they were wrong but both cannot be right, can they?
    – thb
    Commented Mar 3, 2019 at 13:37
12

Just use wildcards in your favorites? css*, html*, eclipse*, twitter-bootstrap*, ruby-on-rails*, etc.

There are also such tags as and , so two stars will be better: *html*, *python*.

The only real limitation is the maximum number of tags, you will run into it pretty quickly.
If tag hierarchy would allow to overcome this, it would be good.

9
  • 10
    This assumes that the less specific tag is always a prefix of the more specific one. Granted, that is true in every case mentioned so far or that I can readily think of. Commented Jul 7, 2014 at 16:18
  • 1
    @DavidConrad, compass-css and sass would be an example.
    – zzzzBov
    Commented Jul 7, 2014 at 19:36
  • compass-css would be caught in a search for *css*.
    – Laurel
    Commented Apr 1, 2016 at 16:59
  • @zzzzBov more importantly, sass is compiled into normal css, and so is not a CSS version, nor would I want it showing up in my favorites.
    – NH.
    Commented Mar 7, 2018 at 17:55
  • note: c#* doesn't seem to work.
    – NH.
    Commented Mar 7, 2018 at 17:59
  • @NH. you didn't encode # symbol so it was not recognized as a query parameter. Use [c#*] in the search box, it'll give you the correct url for the query. Although it returns only c# tag itself, probably there are no other tags that start with c# currently.
    – user
    Commented Mar 8, 2018 at 5:56
  • @user FALSE. There is c#7
    – NH.
    Commented Mar 8, 2018 at 16:24
  • @NH. Indeed, I see, there are also c#-7.0 and c#-pattern-matching. Then you may want to report a bug. A question on meta tagged [bug] should do.
    – user
    Commented Mar 9, 2018 at 11:44
  • @user, looks like someone already did. Go vote for it.
    – NH.
    Commented Mar 9, 2018 at 22:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .