protected static function is_salutation($word) {
    $word = str_replace('.', '', strtolower($word));
    foreach (self::$dict['prefix'] as $replace => $originals) {
      if (in_array($word, $originals)) {
        return $replace;
      }
    }
    return false;
  }
protected static function is_salutation($word) {
    $word = str_replace('.', '', strtolower($word));
    foreach (self::$dict['prefix'] as $replace => $originals) {
      if (in_array($word, $originals)) {
        return $replace;
      }
    }
    return false;
  }
protected static function is_salutation ( $ word ) { $ word = str_replace ( '.' , '' , strtolower ( $ word ) ) ; foreach ( self :: $ dict [ 'prefix' ] as $ replace => $ originals ) { if ( in_array ( $ word , $ originals ) ) { return $ replace ; } } return false ; }
Checks word against list of common honorific prefixes

@param string $word the single word you wish to test
@return boolean
Checks word against list of common honorific prefixes