porter2
porter2 copied to clipboard
A PHP implementation of the English (Porter 2) Stemmer.
When I tried to use this package, I thought it is a traditional PHP code, without composer autoloading. After a while I found that we can use it via `composer...
I ran the code on all 29418 stem example given at https://snowballstem.org/algorithms/english/stemmer.html (Sample English vocabulary, Its stemmed equivalent). It only failed on one :-) - "freely" stemmed to "free", it...
The algorithm is giving different results for 'office' (as 'offic') and 'Office' (as 'office'). I don't know if this is a part of implementation but for this case, the stemmed...
## Contributions (Paras Lehana) - **External file support for protected words**: Now you can add protected words to this stemmer. Protected words won't be stemmed. For example, I have added...