What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

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 LeakyCode, 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/… –  LeakyCode 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
add comment

3 Answers

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
add comment

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
add comment

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

share|improve this answer
add comment