65

This might just be an edge case, but the all-caps checker for the titles isn't 100% accurate. Assuming title is the variable for the title, it seems to check

title === title.toUpperCase();

which is not that accurate of a checker as I have found out by having my cat hold down her paw on the 2 key. This was what I saw enter image description here

While "2222222..." is obviously not a good question, I feel as if there are possible other edge cases being ignored by using this method of checking. I propose the check be more along the lines of

title === title.toUpperCase() && title !== title.toLowerCase();

This would better cover edgecases.

33
  • 40
    Hmm, I don't get that prompt even when I enter a bunch of 2s, or even when I type all-caps words into the title. I also discovered that it's possible to enter the 2s without a cat. Jan 19, 2017 at 20:22
  • 53
    @Kendra I tried both too, and no warning on either. Were you using a cat? Jan 19, 2017 at 20:24
  • 13
    @Don'tPanic Interesting on both accounts. I'm more interested as to how you managed to spam 2's without a cat.
    – Eli Sadoff
    Jan 19, 2017 at 20:25
  • 9
    This might be a case of anti-feline discrimination on SO instead of a poorly done checking system.
    – Eli Sadoff
    Jan 19, 2017 at 20:26
  • 9
    @Don'tPanic No, no cat. My cat currently has another appointment, so I couldn't test with him. Perhaps it's rep based? (Though I would imagine 4k rep would be enough not to trigger the warning...) It clearly isn't feline based, unless I'm just incredibly cat like.
    – Kendra
    Jan 19, 2017 at 20:26
  • 5
    I am indeed not Maureen Ponderosa, though I have on numerous occasions been compared to a cat. I may still count. If a decidedly, 100% non-cat user can reproduce it, I'm back to assuming rep based depending on their rep. (If they have more than Don't Panic, then I'm just flipping a table and walking away.)
    – Kendra
    Jan 19, 2017 at 20:31
  • 6
    @EliSadoff My chiwawa can confirm that Main gives a warning and Meta doesn't. He's a little perturbed that you haven't considered using a dog to spam.
    – zer00ne
    Jan 19, 2017 at 20:32
  • 5
    oH, i FIGURED IT OUT. I just hadn't left the title field yet. I thought it would pop up as you were typing. So yeah, it's the same for me. I get the warning on main but not on meta. Jan 19, 2017 at 20:34
  • 5
    @EliSadoff I wouldn't go that far. I've always been insane, this won't fix it. We now just know that it works for 1) cats 2) dogs 3) humans who may count as cats and 4) regular humans (assuming Don't Panic is a normal human.)
    – Kendra
    Jan 19, 2017 at 20:35
  • 26
    I don't know about changing this. The proposed change would permit an obviously bad title, and we haven't seen any other examples of edge cases that are being ignored. It seems like this change would make things slightly worse. Jan 19, 2017 at 21:06
  • 11
    @BilltheLizard - do lizards more closely resemble cats, or dogs?
    – YowE3K
    Jan 19, 2017 at 22:37
  • 9
    This confirms an old suspicion of mine: cats are great at debugging
    – Marc.2377
    Jan 20, 2017 at 2:50
  • 52
    What version of cat are you using? I can't seem to replicate. Jan 20, 2017 at 17:28
  • 5
    @dfd Comments on meta are usually more lax, though be careful not to get too off-topic with the jokes. This chain mainly revolves around jokes about the cat doing the typing, so it's at least jokes about the topic at hand (kind of) and not likely to be deleted on sight or flagged on sight. (These may be cleaned up in the future, though.) Often times, you'll find jokes about the topic at hand, haikus, or even poems. And the more you stick around, the more likely you are to guess who commented what without looking at the name. ;)
    – Kendra
    Jan 20, 2017 at 17:45
  • 3
    @Joe If so, then the warning should be changed. I think it's unfair to call 2222222222222222 an "all-caps" title consider it has no caps.
    – Eli Sadoff
    Jan 20, 2017 at 18:47

2 Answers 2

15

Your example is a bit contrived. I can't think of a single valid question that doesn't have Latin characters in the title.

Some scripts have different casing systems than Latin (or may lack capitals altogether). So asking a question in Arabic with the title "ما هو متوسط سرعة سرعة الطيران من ابتلاع لادن؟" results in the same error:

enter image description here

But:

  1. Stack Overflow is English-only;
  2. I can't think of a valid question with a title that lacks a single Latin character;
  3. this check is only enabled on Stack Overflow (so it's not a problem on e.g. japanese.SE).

In other words, it seems a bit of a non-issue to me. Yes, the error isn't accurate. But if you're writing a question in Arabic or titled "1231231 2312312312312312" then no amount of messages can help you.

8
  • 2
    Fair points, except a pure technical note: Arabic does have capitals (it has even 4 cases, not just upper and lower). Perhaps you were thinking of Hebrew? Also: all-lowercase titles should issue a warning as well ...
    – Jongware
    Jan 21, 2017 at 19:08
  • @RadLexus Oh, I thought Arabic lacked capitals; not an expert on Arabic obviously :-) At any rate, my point is that doing stuff like this fully correct is tricky, and probably not worth the effort. I don't get an error on an all-lowercase title by the way? Jan 21, 2017 at 19:26
  • Yes, that is my point. All-lowercase is as low quality as all caps. But - given the diligence of editors and commenters -, the current inclusion of a pre-post all-caps check is an odd choice, when there are so many more ways to write up a plain Very Bad Title. (What, still no solution for "Solved"!?)
    – Jongware
    Jan 21, 2017 at 19:33
  • 1
    "i++ gives me 0 instead of the expected number" seems valid questions that is all lowercase @RadLexus. At any rate, some missing capital letters is much less annoying than an all-caps SHOUTING title. Jan 21, 2017 at 19:55
  • @RadLexus The word "solved" would probably be a bit prone to false positives, though - there are several legitimate questions in there that use "solved" in the title. Unless it was checked only on the edit. What was my point again?
    – Dragomok
    Jan 22, 2017 at 8:49
  • 2
    @RadLexus As an Arabic speaker, I can assure you that Arabic has no capitals, nor any "cases". However, it has mandatory typographic ligatures. Letters have different shapes depending on the letters directly before and after them, but these are nothing like uppercase/lowercase.
    – imgx64
    Jan 22, 2017 at 9:31
  • @imgx64: as CarpetSmoker is not familiar with Arabic, I was simplifying a bit :) Do the suggested toUpper and toLower influence initials and terminals as well? Or do they only work on Latin?
    – Jongware
    Jan 22, 2017 at 11:14
  • 2
    @RadLexus toUpper and toLower don't have any effect on Arabic letters. The different shapes of an Arabic letter are still the same Unicode codepoint. It's just a matter of how to display them.
    – imgx64
    Jan 23, 2017 at 3:56
5

You have to change the focus into the title field for the warning to pop up.

enter image description here


Anyway, I for one can't think of edge cases where a post with no lowercase letters in the title would be good practice.

Perhaps we should simply change the message?

enter image description here

If (like Eli suggested), we check to make sure that title === title.toUpperCase() && title !== title.toLowerCase(); before displaying the first message, we could also check for title === title.toUpperCase() to check if it has no lowercase letters.

Also, I'm pretty sure that the yellow boxes don't prevent you from posting - just the red boxes. (Like if your title is less than 15 chars) Although I don't feel like posting a random 22222222222222 question just to find out :)

3
  • 2
    I'd simply check whether the title contains alphabetic characters, and if so whether it is all caps. Titles should be English sentences, hence they must contain something other than just digits, punctuation, spaces and symbols...
    – Bakuriu
    Jan 21, 2017 at 14:49
  • True, but it seems like that is a separate feature request, as all this is its a warning. (Hence the yellow not red) - I'm talking about the must part, not the checking. Your idea of checking is probably more efficient, but the SO employees can figure that out imho
    – Cullub
    Jan 21, 2017 at 15:32
  • @Bakuriu: Titles generally should not be complete sentences. For example, "Treatment of titles without letters by the all-caps title checker" is not a complete sentence, it's a fine title for this meta, question, and it's actually better than the one we have. (Even better would be "Titles without letters trigger the all-caps title check" which is a sentence) "Sorting XYZ" is a better title than "How can I sort XYZ?"
    – Ben Voigt
    Jan 22, 2017 at 17:32

You must log in to answer this question.

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