code: public static int getReorderCode(String word) {
          for(int i = 0; i < gSpecialReorderCodes.length; ++i) {
              if(word.equalsIgnoreCase(gSpecialReorderCodes[i])) {
                  return Collator.ReorderCodes.FIRST + i;
              }
          }
          try {
              int script = UCharacter.getPropertyValueEnum(UProperty.SCRIPT, word);
              if(script >= 0) {
                  return script;
              }
          } catch (IllegalIcuArgumentException e) {
              // fall through
          }
          if(word.equalsIgnoreCase("others")) {
              return Collator.ReorderCodes.OTHERS;  // same as Zzzz = USCRIPT_UNKNOWN 
          }
          return -1;
      }
docs: Gets a script or reorder code from its string representation.
  @return the script/reorder code, or
  -1 if not recognized