public List<String> toExtractedList() {
            List<String> gramList = new ArrayList<>();
            while (hasNext())
                gramList.add(next().extractFrom(input));
            return Collections.unmodifiableList(gramList);
        }
Convenience list which splits the remaining items in this iterator into a list of gram strings

@return an immutable list of extracted grams
linguistics/src/main/java/com/yahoo/language/process/GramSplitter.java