code: private static int getClassWeight(Element e) {
          int weight = 0;
  
          /* Look for a special classname */
          String className = e.className();
          if (!isEmpty(className)) {
              Matcher negativeMatcher = Patterns.get(Patterns.RegEx.NEGATIVE)
                      .matcher(className);
              Matcher positiveMatcher = Patterns.get(Patterns.RegEx.POSITIVE)
                      .matcher(className);
              if (negativeMatcher.find()) {
                  weight -= 25;
              }
              if (positiveMatcher.find()) {
                  weight += 25;
              }
          }
  
          /* Look for a special ID */
          String id = e.id();
          if (!isEmpty(id)) {
              Matcher negativeMatcher = Patterns.get(Patterns.RegEx.NEGATIVE)
                      .matcher(id);
              Matcher positiveMatcher = Patterns.get(Patterns.RegEx.POSITIVE)
                      .matcher(id);
              if (negativeMatcher.find()) {
                  weight -= 25;
              }
              if (positiveMatcher.find()) {
                  weight += 25;
              }
          }
  
          return weight;
      }
docs: Get an elements class/id weight. Uses regular expressions to tell if this
  element looks good or bad.
  
  @param e
  @return