Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 153 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Possible Duplicate:
How does the automatic subjective filter work?

When you're writing a question, the system will show you a red bar with a warning if the question looks subjective.

Subjective or non-programming questions (e.g., What is your favourite programming language?) seem to be easily recognized.

How, exactly, is this done? Heuristics, algorithms, machine learning?

I'm amazed!

share|improve this question

migrated from stackoverflow.com Oct 28 '09 at 16:32

This question came from our site for professional and enthusiast programmers.

marked as duplicate by xmm0, Kip, Shog9, Troggy, dbr Oct 28 '09 at 17:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Duplicate: meta.stackexchange.com/questions/4371/… – Stephan202 Oct 28 '09 at 16:34
3  
Duplicate. It's a Regex. Answered here: meta.stackexchange.com/questions/4371/… – xmm0 Oct 28 '09 at 16:35
    
Well, no need to click that link. Jeff's answer fits in a comment field: return Regex.IsMatch(s, @"\bbest\b|\bworst\b|\bhardest\b|\byour?\b|\bfavou?rite\b", RegexOptions.IgnoreCase); – Stephan202 Oct 28 '09 at 16:35
    
@Mehrdad: hah, 5 seconds :) – Stephan202 Oct 28 '09 at 16:36

Jeff uses this regex:

return Regex.IsMatch(s, 
@"\bbest\b|\bworst\b|\bhardest\b|\byour?\b|\bfavou?rite\b", 
RegexOptions.IgnoreCase);
share|improve this answer

I'm fairly sure it just detects words like "favo[u]rite" and "best". I've not seen it detect a non-programming question.

share|improve this answer

Having the word "best" in the title triggers it.

share|improve this answer