code: function(check) {
      check = check || '';
      for(var i=_self._patterns.length-1; i>=0; i--) {
        if(check.match(_self._patterns[i]) !== null) {
          return i;
        }
      }
      return -1;
    }
docs: Check dictionary