public static Stemming get(String stemmingName) {
        try {
            return Stemming.valueOf(stemmingName.toUpperCase());
        } catch (IllegalArgumentException e) {
            throw new IllegalArgumentException("'" + stemmingName + "' is not a valid stemming setting");
        }
    }
Returns the stemming object for the given string.
The legal stemming names are the stemming constants in any capitalization.

@throws IllegalArgumentException if there is no stemming type with the given name
config-model/src/main/java/com/yahoo/schema/document/Stemming.java