# How does the subjective question detector work? [duplicate]

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!

-

## migrated from stackoverflow.comOct 28 '09 at 16:32

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

## marked as duplicate by xmm0, Kip, Shog9♦, Troggy, dbrOct 28 '09 at 17:14

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

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

-

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

-

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

-