Okay, so how should "Student at Yale, I have attended several"
be treated? Does "Yale, I" count as 2 consecutive capitalized words? (I'm guessing not?).
A starting point might be something like:
$regex = '/[A-Z]\S+\s+[A-Z]\S+/';
preg_match_all($regex, $var, $matches);
if(count($matches[0]) {
// one or more such sequences found
}
Things will start to get more complicated if we start worrying about punctuation, quotes, etc.