porter2_stemmer
porter2_stemmer copied to clipboard
C++ version of the Porter2 English stemmer
The directory utils in the #include statement for string_view is unnecessary; both files are in same directory -- in the given form I was not able to compile. Small fix...
Question
Looks like it, but is this thread safe ? Thanks G
``` c++ bool Porter2Stemmer::internal::replaceIfExists(std::string& word, const std::string& suffix, const std::string& replacement, size_t start) ``` contains `size_t idx = word.size() - suffix.size();` but since `size_t` is an unsigned type, a error...