Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
you don't have to "filter out", you have to "extract" the words:
" //wont won't won't "
=>["wont", "won't", "won't"]
extracted, so["won't", "wont"]
as an outputinvalid issue:
language?for instance, those values are the frequencies of occurences of different words. So
[25,25,23]
means that there are 2 different words that occur 25 times and another that occur 23 times. While your ouput matches words that do not occur the right amont of times. I'd bet on your code not cutting the sentence correctly.Frequencies of the returned words are compared to the frequencies of the expected words - I don't see any issue.