6

Why can’t we use more than 5 tags per question? Why is there this limitation?

9
  • 2
    If not 5 what number? The more tags the complexity of things such as search.
    – JonH
    Commented Jan 6, 2016 at 18:06
  • 3
    Why do you think we need more? I find it quite rare that more than that would even make sense, let alone be necessary.
    – jscs
    Commented Jan 6, 2016 at 18:06
  • 2
    Even two is often too much on many many questions. Commented Jan 6, 2016 at 18:06
  • 6
    <3 the irony of this question being tagged extremely poorly. (And also not even using the 5 tags that it has.)
    – Servy
    Commented Jan 6, 2016 at 18:07
  • 2
    Because then people would put ALL THE TAGS on their questions in an attempt to get more eyes on it. Users should only tag their questions with what the question is really about, not with any and every tag that's even barely tangentially related to it.
    – BSMP
    Commented Jan 6, 2016 at 18:08
  • Well, I agree with the points mentioned in comments, but ever since the SO introduced saving tags feature, people will save tags of their own interest.. For example a guy who is knowing asp.net-mvc-4, might also probably knowing asp.net-mvc-3 or 2 etc., and he would keep seeing his own saved tag question.. I hope I made it clear with this.. Well this is indeed stupid question with poorly tagged.. Commented Jan 6, 2016 at 18:11
  • 6
    Because it's less than six and greater than four.
    – user1228
    Commented Jan 6, 2016 at 18:41
  • 2
    There's an interesting discussion here: chat.meta.stackexchange.com/transcript/message/8876225#8876225 Why is maximum number of tags on a question set to 5? - staff can use more than 5 tags.
    – Rob
    Commented Sep 12, 2022 at 9:48
  • Related bug posted on MSE from 2012: How is it possible for a question to have more than 5 tags?
    – V2Blast
    Commented Sep 12, 2022 at 15:22

2 Answers 2

22

This ensures that the most relevant tags are used, and users aren't spending a lot of time tagging unnecessary tags, tags only tangentially related to the question, tagging unrelated tags in a naive attempt to draw attention, etc.

A good question simply won't need more than 5 tags.

21
  • 6
    "... spending a lot of time tagging unnecessary tags, tags only tangentially related to the question, tagging unrelated tags in a naive attempt to draw attention, etc." yet somehow they manage to do so with 5 :(
    – Braiam
    Commented Jan 6, 2016 at 18:40
  • 3
    @Braiam Yeah, but imagine how much worse it would be with more.
    – Servy
    Commented Jan 6, 2016 at 18:42
  • And unlimited tags means posts with every tag on the site.
    – Anonymous
    Commented Mar 1, 2021 at 22:44
  • imagine how much worse - The few questions that cynically filled things up with irrelevant tags just need to get edited; it wouldn't matter to them if the limit was a few higher. And that's not a major concern because it's relatively rare. Most questions with wrong tags have one or two extraneous tags that maybe seemed related to the OP but actually aren't. Having more tag room wouldn't mean that most questions (even bad questions) would use it, in my experience. Commented Mar 2, 2021 at 8:08
  • @PeterCordes Sure, people with extraneous tags often only have a few because there physically incapable of having more than that. You can't assert people wouldn't have added lots more if they were allowed to add more. A huge percentage of questions use the limit of the number of tags, and in my experience only the first one to three are actually helpful. If anything I'd prefer the limit to be reduced to 3 from 5. Saying, "they just need to be edited" means wasting lots of time editing them.
    – Servy
    Commented Mar 2, 2021 at 13:06
  • I'm asserting that when I see an extraneous tag, it's often on a question with fewer than 5 tags. Yes, selfish / misguided asshats that fill up the tag limit with totally irrelevant tags just to get more eyeballs would be able to add a few more, but those questions need an edit anyway (and usually a downvote) and are not in my experience very common. (Like maybe 1 every couple weeks for an [assembly] homework questions where [python] [java] and whatnot get thrown on; is this problem much more common in relative terms for questions with only mainstream language tags, not any that I follow?) Commented Mar 2, 2021 at 13:13
  • @PeterCordes I don't agree with your assertion. The purpose of tags isn't to add a tag for every topic that could possibly apply to a question. Most questions don't need more than a single language tag. A big part of the limit is there to make sure that only the most important topics are tagged to a question, it's not there (primarily) to prevent entirely irrelevant tags from being added.
    – Servy
    Commented Mar 2, 2021 at 13:34
  • Do you advocate for SO removing tags other than languages? e.g. removing [performance], [optimization], or tags like [simd] or [x86-64]? Read my answer for examples. What you say makes sense for questions like "how do I X in language Y?" questions, but not for stuff where performance and/or platform-specifics in some language also matter. There are certainly cases where more than 5 tags are relevant enough to actually tag if I could, and would help potential answerers see it depending on which set of tags they follow. Commented Mar 2, 2021 at 13:40
  • I didn't say that. That said, I don't see value added from tags like "performance" or "optimization". Those are meta tags, and honestly shouldn't be tags. There's no reason to tag every performance related question with such a tag. As for the other two you mentioned, they seem like they could be appropriate on some questions. An architecture tag shouldn't be added to every question where it's used, but it'll be appropriate when a question is specifically asking about the architecture, which I'm sure exists.
    – Servy
    Commented Mar 2, 2021 at 13:50
  • I know you didn't say that, and wasn't trying to put words in your mouth, just figure out how different your stance on tags is from mine. I think [performance] is a useful tag for people to want to follow, if they want to help answer questions about why things run fast vs. slow, but don't care about helping people write general non-perf-critical code in all the languages they know. Commented Mar 2, 2021 at 18:21
  • @PeterCordes And yet you can't be an expert in "performance". You could be an expert in performance in a specific domain, but that's different. It's indicating the form of the question, not it's topic. For more information on what a meta tag is and why it's problematic in the tag framework, search on "meta tag" as there are lots of discussions on them.
    – Servy
    Commented Mar 2, 2021 at 18:29
  • True, although I like to think I am an expert in performance, across a fairly decent range of categories. (Including OS / virtual memory behaviour, how CPUs work, how to measure perf accurately, how C compilers work, and some about some interpreted and/or JITed languages.) But I agree that getting a [performance] gold badge would have been possible without as wide knowledge, like maybe more narrowly focused on x86-64 CPUs. (or like the way [regex] answerers sometimes have gold badges in languages they don't use / know.) That's problematic, but only if abused, which the 11 of us don't. Commented Mar 2, 2021 at 18:46
  • @PeterCordes There's still lots of questions that don't fall into what you've described, and I suspect plenty of questions within those areas that are still outside of your domain of knowledge.
    – Servy
    Commented Mar 2, 2021 at 19:01
  • Sure, but does a [c++] gold badge mean you know everything about c++ (or are at least familiar with all corners of the language)? It doesn't for many people, but that's fine; with experience you know where your limitations are. Commented Mar 2, 2021 at 19:06
  • To be fair, I don't follow the [performance] tag because many of the questions are about languages I'm not interested in, and there's more traffic than I want to tempt myself into looking at. I might consider adding ([c] and [performance]) to my list of tag OR tag OR tag ... filters, though, and did do that for a while as a separate search from my usual asm list of tags to watch. Commented Mar 2, 2021 at 19:33
2

IMO, five is occasionally not enough to cover all the reasons someone might be searching for something where a question and its answer might be useful. Or that people who would want to answer are following. I often have to leave out relevant tags when editing tags on assembly / SIMD / compiler questions.

I think seven might be a good number, or maybe eight, with the expectation that most questions wouldn't have that many. Just to set a limit that's very rarely painful for legitimate uses, but still puts a cap on things for abuse. I'd be ok with six, but if we're going to raise it, might as well go to seven or eight just for good measure, not because I ever expect to want to use all eight.

Having the limit at eight instead of five wouldn't make anything appreciably worse for questions that don't need that many. Users who intentionally spam unrelated tags can already do that, such that an edit is needed. Most questions with tags that don't apply have maybe one or two extra tags, like on a purely assembly question; increasing the limit wouldn't make that worse.

I had a look at tags I follow for the past few days. Some of those have 5 tags, but most of those don't really need all 5. So I'm certainly not proposing to routinely tag more than 5. e.g. is usually just filler in questions like this with 5 tags about std::atomic.

The most recent one where another tag might have been relevant is The usage of writemask k1 in AVX-512 VORPS?x86-64 inline-assembly avx att avx512. But that could probably just drop and only keep - masking is unique to AVX512 so the catch-all AVX isn't helping. That would make room to tag or , or (because the real question is about using masking in assembly, whether it's inline asm or not. I'll fix that now. And it's not a great example question because the inline-asm constraint / operand stuff is separable from the masking or not part.).

So it's rare to see a question where I really wish I could keep an extra tag, but it certainly happens, maybe every week or two on average. The fact that it's not rare to see questions where five genuinely apply is a good sign that it doesn't take much to run into a case where a sixth would be nice.

Update: Understanding micro-architectural causes for longer code to execute 4x faster (AMD Zen 2 architecture) needs all 5 of its tags, and could use or some of the obscure tags like . Or less obscure like which I often don't have have room to tag on questions about performance effects in compiler-generated assembly. Probably also a 7th tag like . Exactly the kind of question that needs lots of tags, and it just got asked minutes ago.


It's not at all rare for focused questions (e.g. about how GCC compiles something for x86-64 and whether that's efficient or not) to merit tags like [c] [assembly] [x86-64] [gcc], leaving room for only one other tag. (Which might be , , , , , , , or something else. But we don't have room to pick more than 1. Your bold assertion that any question needing more tags is too broad doesn't match my experience at all.

Or if it's a question about why MSVC compiles differently from GCC, there's and tags, along with the ISA and , and the source language.


You could argue that maybe x86-64 should be x86-64-assembly for example, avoiding the separate tag, but traditionally that's not how we do it (There are reasons to ask about x86 things separate from assembly, but often they involve low-level x86 stuff that people who follow that tag for assembly language reasons know about).

And with compilers and assembly inherently being an intersection of multiple things, that's always going to use up multiple tag slots on such questions.

21
  • 2
    If you see tags as a way to help searching, then I might agree that 5 is a bit too low. I, personally, always saw tags as a way to assign question to people willing to answer. I absolutely don't know how others see tagging. If you ask about gcc behavior, you probably need a gcc expert, maybe a c or assembly expert, but the fact that it's about 64bit can go to the question body as well, same for performance, micro-optimization, inline-assembly. google is good enough to index also the question body very well. (And I didn't vote here, because I don't know how others feel about tag usage).
    – BDL
    Commented Mar 2, 2021 at 8:13
  • @BDL: Huh? Some people do follow tags like [inline-assembly], [micro-optimization], and [cpu-architecture]. Especially GNU C inline asm is its own thing, where you need to be an expert in it specifically to use it properly (or answer questions about using it). Most of my "searching" on SO itself (instead of google) is for questions to answer, a tag-search sorted by activity. It's true that I search on a lot of tags that tend to overlap, but some people don't include the same tags, and tagging properly puts it in front of them. Commented Mar 2, 2021 at 8:23
  • @BDL: I'd agree with that "question body" point for tags like [raspberry-pi-zero] and so on; low enough traffic tag that the [raspberry-pi] tag can probably cover all the flavours. (I remove even that tag from questions that are actually just about ARM asm in general, not about RPi hardware specifics. Users often tag a bunch of tags about the hardware or environment they happen to be using, but increasing the tag limit wouldn't change that problem.) Commented Mar 2, 2021 at 8:27
  • I'm failing to see how these are examples to motivate having more than 5 tags. The tags [c] [assembly] [x86-64] [gcc] plus one other tag seems to be perfectly fine for what you describe. What other tags would that example need to require "room to pick more than 1"? Commented Mar 2, 2021 at 8:43
  • @MisterMiyagi: For example, [sse] and [performance], or [sse] and [avx], or all 3 would be common cases. And [intrinsics]. And/or [simd] if there was some relevance to generic SIMD, not just the specific x86 SIMD instruction sets. Also maybe [avx2] + [avx]. Commented Mar 2, 2021 at 8:48
  • @PeterCordes Isn't that just overspecifying it? That's up to 7 more tags, together with the initial 4 tags easily exceeding your own proposed limit of 7-8. Commented Mar 2, 2021 at 8:59
  • @MisterMiyagi: Many such questions don't need all of those, and often don't need a [gcc] or [msvc] or [clang] tag. Having a limit of 8 would mean there'd be enough tags for almost all questions, and any tags that had to be left out wouldn't be very painful. Commented Mar 2, 2021 at 9:04
  • @BDL and Peter how tags help search better than a full body search that every search engine does? What value has tags in searching when the keywords are in the body of the posts?
    – Braiam
    Commented Mar 2, 2021 at 9:32
  • @Braiam: How do you find new questions to read / answer? I search on tags, using this custom filter which is a tag-search sorted by Activity. I assume most people do something similar. Commented Mar 2, 2021 at 10:04
  • @Braiam: But also, sometimes when the thing I want to search on (when looking for a duplicate for example) means different things in different languages or other ambiguous hard-to-google case, I do use SO's search with a tag or two plus a code:xyz or other non-tag search term. If your argument is "tags have no value at all", that's a very strong claim! Is there any kind of meta consensus for abolishing them? Commented Mar 2, 2021 at 10:06
  • 1
    @PeterCordes Thanks for giving some more details. Agreed that 5 tags is very tight for some of these cases. Commented Mar 2, 2021 at 11:57
  • 1
    @akuzminykh: Part of my point is that raising the limit (to allow special cases that need it) wouldn't hurt the broad majority much. Unless I'm guessing wrong and lots of people will keep adding tags until the tag bar is "full", even if that means coming up with more tags that are less related to their question. (I'm still excluding jerks that tag unrelated languages to get more eyeballs; those will always need editing.) Maybe we could put a rep requirement on this ability, so at least experienced users could edit more tags onto new-user questions where they apply. Commented Mar 10, 2021 at 0:03
  • 1
    @PeterCordes I think you should open a seperate question about this. This Q&A is kinda stuck on the "Why not more than 5." and the accepted answer is simply the answer. The attention on your post here was gone very quickly. What you write here goes beyond this simple question so it's worth a seperate question.
    – akuzminykh
    Commented Mar 10, 2021 at 15:27
  • 1
    Many tags such as c and assembly encourage adding further tags if relevant to the question such as C99/C11/C17 tags or ISA-specific tags. So for a question about C11 disassembly on x86-64, you've already blown 4 tags before even applying any detailed tags to what the question is about. Now suppose my question was about disassembly differences on gcc x86-64 between C11 and C++11... Tag overflow: c c++ c11 c++11 gcc assembly x86-64. All of these tags make perfect sense on such a question.
    – Lundin
    Commented Sep 12, 2022 at 10:55
  • 1
    So it is rather contradicting that we strongly encourage tag usage guidelines, that in turn often means encouraging people to add more tags. While at the same time limit the number of tags to 5 by design.
    – Lundin
    Commented Sep 12, 2022 at 10:56

You must log in to answer this question.

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