private boolean areWordCharactersBackwards(int count,StringBuilder b) {
        for (int i = 0; i < count; i++) {
            int checkIndex = b.length()-1-i;
            if (checkIndex < 0) return false;
            if ( ! characterClasses.isLetterOrDigit(b.charAt(checkIndex))) return false;
        }
        return true;
    }
Converts grams to the original string.

Example (gram size 3): <code>blulue rededs</code> becomes <code>blue reds</code>
container-search/src/main/java/com/yahoo/search/querytransform/NGramSearcher.java