I tried to exclude some words using the syntax defined in the documentation, like this:
{
"stop-words": {
"exclude": ["relative to"]
}
}
But nothing was excluded. By checking the tests, I realized that tests were only passing for one-letter "words", but failing otherwise. I updated the tests to make them fail (yeah TDD) then updated the code.
I ended up modifying the method to compare the exclude with the word form the dictionary, and only compare to the actual word (not its replacement).
I tried to exclude some words using the syntax defined in the documentation, like this:
But nothing was excluded. By checking the tests, I realized that tests were only passing for one-letter "words", but failing otherwise. I updated the tests to make them fail (yeah TDD) then updated the code.
I ended up modifying the method to compare the exclude with the word form the dictionary, and only compare to the actual word (not its replacement).
Hope that helps :)