public void run(){
      
      for(int i = 0; i < pages.length; i++)
      {
        int start = 0; 
        int end = 0; // the start and end index of the description
        String start_pattern = "<meta name=\"description\" content=\"";
        Pattern start_pat = Pattern.compile(start_pattern); // create the pattern object
        Matcher start_mat = start_pat.matcher(pages[i].get_content()); // create the matcher object
        
        if(start_mat.find())
           start = start_mat.end(); // the description starts right after the content="

        String end_pattern = "\"";  // the description tag ends with this
        Pattern end_pat = Pattern.compile(end_pattern); // create the end pattern object
        Matcher end_mat = end_pat.matcher(pages[i].get_content()); // create the end matcher object

        if(end_mat.find(start))
           end = end_mat.start() - 1; // the description ends right before the ">
        
        String title = pages[i].get_content().substring(start, end);
        String delims = "\\s";
        String[] tokens = title.split(delims);

        results[i] = 0;
        int temp = 0;
        if(0 == start)
         results[i] = -1;
        else{
           for(int j=0; j<tokens.length; j++){
              
              //System.out.println("This word was split into: " + tokens[j]);
              if(!(isAlpha(tokens[j])))
                 continue;
              
              Pattern token = Pattern.compile(tokens[j]); // create the pattern object
              Matcher token_mat = token.matcher(pages[i].get_content()); // create the matcher object
              
              if(token_mat.find(end)){
                 temp++;
              }
              else{
                 temp--;
              }
           }
           if (temp > 0)
              results[i] = 1;
           else
              results[i] = 0;
        }
      }
   }