private String switchForm(String word) {
        if (word.endsWith("s") && word.length()>2)
            return word.substring(0,word.length()-1);
        return word + "s";
    }
Makes this plural if it is singular and vice-versa
container-search/src/main/java/com/yahoo/prelude/querytransform/PhraseMatcher.java