This simple WordPress plugin adds the Wamania PHP Stemmer for Relevanssi Premium. Wamania PHP Stemmer includes Snowball stemmers for over dozen languages. For the exact list, see the Wamania PHP Stemmer Github.
Using this plugin requires Relevanssi Premium.
You can use this as a Composer requirement:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/msaari/relevanssi-premium-snowball-stemmer.git"
}
],
"require": {
"msaari/relevanssi-premium-snowball-stemmer": "*"
}
}
If you install the plugin manually, you need to use composer install
to fetch the dependencies; they are not included in the package you get from GitHub.
Install the plugin. That will add a new "Stemmer" tab in the Relevanssi settings page. You can set the stemmer language there and then just rebuild the index.
- When Relevanssi is set to use the AND operator, stemmer only returns the stemmed word instead of returning both stemmed word and the original word.
- Adds the
relevanssi_stemmer_allow_stemming
filter hook to exclude words from being stemmed. - Updates wamania/php-stemmer to version 3.0.0.
- Adds
relevanssi_disable_stemmer
andrelevanssi_enable_stemmer
actions Relevanssi Premium 2.15.1 needs.
- Returns to use wamania/php-stemmer now that it includes the Finnish stemmer.
- Fixes a bug in the Finnish stemmer.
- Adds
repositories
part to thecomposer.json
- Adds Finnish
- Uses msaari/php-stemmer instead of wamania/php-stemmer
- The stemmer returns both the stemmed word and the original word
This plugin is licensed under GPL2 license. The Wamania PHP stemmer is by Wamania, and is licensed under the MIT license.