code: public boolean confirmNature(Nature nature)
      {
          if (attribute.nature.length == 1 && attribute.nature[0] == nature)
          {
              return true;
          }
          boolean result = true;
          int frequency = attribute.getNatureFrequency(nature);
          if (frequency == 0)
          {
              frequency = 1000;
              result = false;
          }
          attribute = new CoreDictionary.Attribute(nature, frequency);
          return result;
      }
docs: 将属性的词性锁定为nature
  
  @param nature 词性
  @return 如果锁定词性在词性列表中，返回真，否则返回假