private Word getWord(String wordSyllables) { Word word = new Word(); word.setSyllables(wordSyllables); String wordId = wordSyllables.replace("-", ""); word.setId(wordId); word.setLength(wordId.length()); return word; }