{
"description": "with apostrophes",
"property": "countwords",
"input": "First: don't laugh. Then: don't cry.",
"expected": {
"first": 1,
"don't": 2,
"laugh": 1,
"then": 1,
"cry": 1
}
},
{
"description": "with quotations",
"property": "countwords",
"input": "Joe can't tell between 'large' and large.",
"expected": {
"joe": 1,
"can't": 1,
"tell": 1,
"between": 1,
"large": 2,
"and": 1
}
}
"don't" ended up getting split into "don" and "t" which were counted as seperate words, and the same happened with "can't".
I updated the tests for word-count in PR #1044. However, the following two tests from the canonical data both failed with the example implementation:
"don't" ended up getting split into "don" and "t" which were counted as seperate words, and the same happened with "can't".