There are two things.
First, the description is misleading because of a typo:
'Punctuation marks should be treated as if they are apart of the word'
'Punctuation marks should be treated as if they are a part of the word'
not apart which may be understood as separately, but a part of word, which means together with word
a part of word
together with word
The other thing is about tests. The tests should include strings with leading / trailing spaces and multiple spaces between words.
Scala has no tests with leading spaces and multiple consecutive spaces.