code: public static String getBaseName(String localeID){
          if (localeID.indexOf('@') == -1) {
              return localeID;
          }
          return new LocaleIDParser(localeID).getBaseName();
      }
docs: <strong>[icu]</strong> Returns the (normalized) base name for the specified locale,
  like {@link #getName(String)}, but without keywords.
  
  @param localeID the locale ID as a string
  @return the base name as a String.