I have been tricked by the layout.
My point was: "merge splitLine() into parseLine()".
(Keeping parseWord() separate from parseLine() can make sense.)