34

The advice on tagging is pretty explicit:

You should not force a tag into your title. Because the tags appear below the question and tags are indexed by search engines along with the content of your question, you can trust that other people will be able to find your question based on tags they follow or search for. Additionally, tags appear on the question page, so other people will take them into account when answering your question.

Avoid inserting tags into titles in any of the following formats:

[tag]: [question title]
[question title] -- [tag] [tag] [tag]
[question title] in [tag]
[tag] [tag] [question title] [tag] [tag] [tag]
[tag] [tag] [tag] [tag] [tag] [tag] [tag] [tag]

Yet I constantly see people writing questions such as jQuery - Check if element is visible inside iframe in the same domain. This isn't limited to one tag, C#, jQuery, Javascript. I see it a lot and I edit the question to remove the tag a lot, to the point where I have a regularly used comment in the edit window.

Being as most "offenders" are relative newbies who (I guess) haven't read the help centre in detail. Can we be more clever here? Prompt the user to not put tags in the question title unless they really have to?

Can we look for the common patterns and prompt the user not to do this?

Should we?

A few random examples:

30
  • 49
    Shouldn't this be titled "[tags]: can/should we stop titles from starting with them?"
    – jscs
    Commented May 23, 2017 at 12:34
  • 4
    Very meta @JoshCaswell
    – Liam
    Commented May 23, 2017 at 12:39
  • 5
    I've noticed this problem getting worse and worse recently, with the tag in many cases being simply tacked on to the end of the question, like "Acess object proprty type scirpt". I'd love to do something about it, but can't see any obvious solution.
    – user663031
    Commented May 23, 2017 at 17:14
  • 2
    It wouldn't fix everything but it seems like this could be fixed by checking to see which tags the question has then alert the user if the title matches (using pseudo back-of-the-napkin regular expressions) ^${tag}.* or .* (in)? ${tag}. It wouldn't catch "Acess object proprty type scirpt" but it would catch a lot of them.
    – Mike Cluck
    Commented May 23, 2017 at 17:51
  • 3
    Before we do this, I think we need to show tags automatically when searching for tumbleweed questions. I've been guilty of this in the past, but that was only because I would spend my time previously looking at tumbleweed questions and not knowing what language the people where using with out going into the post itself, and I never looked to the front page of stack overflow to find questions to answer, so I just assumed SO always omitted tags being displayed on question titles. Is there another way to search tumbleweed than this? stackoverflow.com/help/badges/63/tumbleweed
    – Krupip
    Commented May 23, 2017 at 19:24
  • 2
    @snb: There's almost certainly something in SEDE that would do a better job (tag-specific, general). In particular, the badge is only ever awarded once, no matter how many times that user asks tumbleweeds. Commented May 24, 2017 at 5:23
  • 1
    I've started telling people why I'm editing their question to try and show user the error of their ways. So whenever I edit the question I now add a comment "Please don't put tags in question titles"
    – Liam
    Commented May 24, 2017 at 8:40
  • 3
    Towards the end of the list of formats, I was thinking [spam][spam][spam][spam][lovely][spam]. Commented May 24, 2017 at 8:40
  • 2
    @Tas answers:0 score:0 views:..20
    – Pang
    Commented May 24, 2017 at 9:37
  • 2
    There has already been a lot of previous questions regarding this. Here is one I asked almost 7 years ago - but mine talked about bracketed tags, which are more likely to be redundant (unbracketed tags do have a small chance of being a legitimate part of the question title). Think of question titles like C# and the Elvis operator - your idea would automatically remove the C#.
    – slugster
    Commented May 24, 2017 at 13:42
  • 1
    I don't mean auto remove @slugster. I was thinking more along the lines of a popup, "this question appears to contain a tag please read our guidance on tagging" kind of prompt. Just to point people in the right direction.
    – Liam
    Commented May 24, 2017 at 13:47
  • 2
    I just tried to remove tags, but the system told me that a question with the same title already exists (but that question was for a different language) and that I should be more specific.
    – gre_gor
    Commented May 24, 2017 at 16:53
  • 3
    I don't think this is big enough a problem to warrant a built-solution. It doesn't hinder the system, and can be fixed with a quick edit from anyone.
    – Kevin B
    Commented May 24, 2017 at 20:43
  • 1
    @KevinB "quick edit from anyone" that's the thing, there are almost no anyone and too many questions.
    – Braiam
    Commented May 25, 2017 at 1:30
  • 3
    @Braiam No, you haven't described it at all. You've just asserted that magically somehow removing a tag from a title is going to get rid of duplicate questions, you've provided no reasoning whatsoever for why it would do that, and it wouldn't. People asking duplicate questions are going to do so whether we remove a tag from their title or not. Making wild unsupported assertions, and then claiming people aren't reading your comments when they ask you to support your assertions, doesn't mean they aren't reading your comments.
    – Servy
    Commented May 26, 2017 at 17:06

2 Answers 2

14

Can we look for the common patterns and prompt the user not to do this?

No, I don't think it's possible to reliably distinguish "good" uses of tags from "bad" ones.

Here's a couple of perfectly reasonable question titles from the front page. I've bolded the tags.

  • ChartJS not displaying properly in AJAX called page

  • Regular Expression for String without a “?” character to redirect to string with “?” character

  • MySQL crashes with “buffer overflow detected” when Spring Boot connects

In all of those cases, the tag name is clearly a part of the question. Recommending to users that they remove those words from the title would make the titles objectively worse, and might discourage them from asking their questions at all.

2
  • Great answer additionally having the tag in the title doesn't do any harm to anyone! Commented May 25, 2017 at 11:55
  • Comments are not for extended discussion; this conversation has been moved to chat.
    – Martijn Pieters Mod
    Commented May 25, 2017 at 14:51
-5

As I understand it, the advice on tag in titles is not about banning tag from title, but about avoiding to put them forcibly in it, believing it would harm not putting them in.

For me this advice is there for avoiding titles to be bloated by tags, causing them to no more be titles but tags enumeration. Naming one or two technology while still writing a title, not a tag enumeration, sounds right to me.

I even dislike a bit questions where I have to check tags to ascertain for which technology/context the question is, when its title without any technology named in it cause it to be ambiguous. Having the very most relevant information from the title is nice in my opinion, rather than having to scavenge it from several parts.

A little redundancy in human communication never harms, it is just a matter of striking the right balance: not bloating title with many tags or formatting quirks causing it to no more actually be a title (as the advice ask to do), while still providing the most relevant pieces of information for the title to tell what the question is about by itself.

To summarize my viewpoint, as titled there: Titles should be stand-alone summaries of questions without depending on tags. This question is tagged and . Should it really be stripped out to:

s should be stand-alone summaries of questions without depending on

Or reworded without using neither title word nor tags word?

Edit: I have to clarify a point. I have written "the advice is not about banning tag". Yes the OP did not asked to ban tag words, but instead to put some prompt in place for advising against putting tag words in title. This, overall, will still be harmful I think, because such a prompt would very likely be considered as an almost must and may likely lead to more meaningless titles, especially when seeing them from places where tags are not displayed.

9
  • 3
    Click, click...
    – Sinatr
    Commented May 24, 2017 at 8:45
  • 4
    SEO... We are writing content for human, not for SEO. From Google guidelines "Provide high-quality content on your pages, especially your homepage. This is the single most important thing to do. " They are smart enough to detect strategy there just for fooling ranking from legit content here for human reasons.
    – Frédéric
    Commented May 24, 2017 at 8:49
  • 1
    @Sinatr, your first link still spell it "not have to", which does not mean "must not to". Moreover, from the answer comments: click, and even from snb comment here, you can see there are context where we do not have tags at all but only the title. From your second link, there is long list of good title examples which does all contain some tag words!
    – Frédéric
    Commented May 24, 2017 at 9:03
  • Still found from your first link, this other question explain quite well my point of view.
    – Frédéric
    Commented May 24, 2017 at 9:05
  • As example, in your latest question you don't have to say "Visual Studio 17" in the title. While you can, it doesn't adds to it. "Default reference documentation" - is sufficient, I can see tags when browsing (picture) and I will anyway look at tags. Tags are important, you shouldn't miss them and once you have them - title doesn't need them.
    – Sinatr
    Commented May 24, 2017 at 9:14
  • 3
    Superb, that trouble was very specific to Visual Studio 17 and completely irrelevant to previous versions. As already stated in my previous comments, there are a bunch of contexts where you have no tags displayed, only the title. That not because the main lists display tags that we should ban them from title: many other views does not show them. Like this other question: Visual studio 2017 code color issue after update. Here too, very localized to that specific version, and removing the "tag" from the title just render the title meaningless.
    – Frédéric
    Commented May 24, 2017 at 9:19
  • 1
    Completely agreed with this answer, and it is a point that gets lost sometimes. But I think the question is concerned with those cases where the tag is indeed unnecessarily redundant.
    – jscs
    Commented May 24, 2017 at 13:12
  • 1
    In such case I am totally agreed with manually removing it. But putting in place some intrusive advice about removing them unless really required could lead to more meaningless titles, so I am not for such a change.
    – Frédéric
    Commented May 24, 2017 at 13:23
  • 5
    @Liam: "So insead of the title being Jquery - a question it will show as Jquery - jQuery - a question" No, it won't. If the keyword already appears in the title, it won't be added again.
    – BoltClock Mod
    Commented May 24, 2017 at 16:09

You must log in to answer this question.

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