What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 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 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
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

3 Answers 3

Jeff uses this regex:

return Regex.IsMatch(s, 
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