code: public boolean checkArticle(String title)
  	{
  		// if filter isn't initialized, do not filter at all
  		if (namespaceMap == null || namespaceMap.size() == 0
  				|| allowedNamespaces == null || allowedNamespaces.size() == 0) {
  			return true;
  		}
  		// else, do filter
  		else {
  
  			// perform filtering
  
  			// reject restricted titles
  			for (String str : prefixesToReject) {
  				if (title.startsWith(str)) {
  					return false;
  				}
  			}
  
  			for (String str : prefixesToAllow) {
  				// allows allowed prefixes
  				if (title.startsWith(str)) {
  					return true;
  				}
  				// special case for Main Namespace(Main Namespace has not any
  				// prefixes)
  				if (excludeMainNamespace) {
  					return false;
  				}
  
  			}
  
  			return true;
  		}
  	}
docs: Filter any pages by title prefixes
  
  @param title
  the page title
  @return true, if the page should be used. false, else