code: public void generate(Path outputDir, DataReader reader) throws IOException {
      String className = "_PluralRules";
      TypeSpec.Builder type = TypeSpec.classBuilder(className)
          .addModifiers(PUBLIC)
          .superclass(TYPE_BASE);
  
      Map<String, FieldSpec> fieldMap = buildConditionFields(reader.cardinals(), reader.ordinals());
      for (Map.Entry<String, FieldSpec> entry : fieldMap.entrySet()) {
        type.addField(entry.getValue());
      }
  
      buildPluralMethod(type, "Cardinal", reader.cardinals(), fieldMap);
      buildPluralMethod(type, "Ordinal", reader.ordinals(), fieldMap);
  
      CodeGenerator.saveClass(outputDir, PACKAGE_CLDR_PLURALS, className, type.build());
    }
docs: Generate a class for plural rule evaluation.
  
  This will build several Condition fields which evaluate specific AND conditions,
  and methods which call these AND conditions joined by an OR operator.