docs: public static String getScriptName(String name) {
          if (name == null) {
              return null;
          }
  
          if (name.endsWith(".groovy")) {
              name = name.substring(0, name.length() - 7);
          }
          return getNaturalName(name).replaceAll("\\s", "-").toLowerCase();
      }