code: public List<Rule> getAllActiveRules() {
      List<Rule> rules = new ArrayList<>();
      List<Rule> rulesActive = new ArrayList<>();
      rules.addAll(builtinRules);
      rules.addAll(userRules);
      // Some rules have an internal state so they can do checks over sentence
      // boundaries. These need to be reset so the checks don't suddenly
      // work on different texts with the same data. However, it could be useful
      // to keep the state information if we're checking a continuous text.    
      for (Rule rule : rules) {
        if (!ignoreRule(rule)) {
          rulesActive.add(rule);
        }
      }    
      return rulesActive;
    }
docs: Get all active (not disabled) rules for the current language that are built-in or that
  have been added using e.g. {@link #addRule(Rule)}. See {@link #getAllRules()} for hints
  about rule ids.
  @return a List of {@link Rule} objects