Skip to content

Commit f49186f

Browse files
authored
word-count: Less ambiguous punctuation rule (#2067)
"regarded as spaces" rather than "ignored"
1 parent bd7b77b commit f49186f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/word-count/description.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ When counting words you can assume the following rules:
1212

1313
1. The count is _case insensitive_ (ie "You", "you", and "YOU" are 3 uses of the same word)
1414
2. The count is _unordered_; the tests will ignore how words and counts are ordered
15-
3. Other than the apostrophe in a _contraction_ all forms of _punctuation_ are ignored
15+
3. Other than the apostrophe in a _contraction_ all forms of _punctuation_ are regarded as spaces
1616
4. The words can be separated by _any_ form of whitespace (ie "\t", "\n", " ")
1717

1818
For example, for the phrase `"That's the password: 'PASSWORD 123'!", cried the Special Agent.\nSo I fled.` the count would be:

0 commit comments

Comments
 (0)