public String[] asWordArray() {
        if (wordList.isEmpty()) {
            return new String[0];
        } else {
            return wordList.stream()
                    .map(Word::getWord)
                    .toArray(String[]::new);
        }
    }
@return The complete word list as a simple array or words.
stroom-core-shared/src/main/java/stroom/dictionary/shared/WordList.java