code: public static Nature convertStringToNature(String name, LinkedHashSet<Nature> customNatureCollector)
      {
          Nature nature = Nature.fromString(name);
          if (nature == null)
          {
              nature = Nature.create(name);
              if (customNatureCollector != null) customNatureCollector.add(nature);
          }
          return nature;
      }
docs: 将字符串词性转为Enum词性
  @param name 词性名称
  @param customNatureCollector 一个收集集合
  @return 转换结果