You are here

README.txt in Porter-Stemmer 8

Same filename and directory in other branches
  1. 5 README.txt
  2. 6.2 README.txt
  3. 6 README.txt
  4. 7 README.txt
GENERAL INFORMATION
-------------------

This module implements the Porter-Stemmer algorithm, version 2, to improve
English-language searching with the Drupal built-in Search module. Information
about the algorithm can be found at
http://snowball.tartarus.org/algorithms/english/stemmer.html

Stemming reduces a word to its basic root or stem (e.g. 'blogging' to 'blog') so
that variations on a word ('blogs', 'blogger', 'blogging', 'blog') are
considered equivalent when searching. This generally results in more relevant
results.

Note that a few parts of the Porter Stemmer algorithm work better for American
English than British English, so some British spellings will not be stemmed
correctly.

This module will use the PECL "stem" library's implementation of the Porter
Stemmer algorithm, if it is installed on your server. If the PECL "stem" library
is not available, the module uses its own PHP implementation of the
algorithm. The output is the same in either case. More information about the
PECL "stem" library: http://pecl.php.net/package/stem


INSTALLATION
------------

See the INSTALL.txt file for installation instructions.


TESTING
-------

The Porter Stemmer module includes tests for the stemming algorithm and
functionality.  If you would like to run the tests, enable the core Testing
module, and then run the tests following instructions on
https://www.drupal.org/docs/8/phpunit/running-phpunit-tests. Commands below:

cd core
../vendor/bin/phpunit --group porterstemmer


Each test for the Porter Stemmer module includes approximately
5000 individual word stemming tests (which test the module against a standard
word list).

Tests are provided both for the internal algorithm and the PECL library.

There is also a functional test for integration with Drupal search.

File

README.txt
View source
  1. GENERAL INFORMATION
  2. -------------------
  3. This module implements the Porter-Stemmer algorithm, version 2, to improve
  4. English-language searching with the Drupal built-in Search module. Information
  5. about the algorithm can be found at
  6. http://snowball.tartarus.org/algorithms/english/stemmer.html
  7. Stemming reduces a word to its basic root or stem (e.g. 'blogging' to 'blog') so
  8. that variations on a word ('blogs', 'blogger', 'blogging', 'blog') are
  9. considered equivalent when searching. This generally results in more relevant
  10. results.
  11. Note that a few parts of the Porter Stemmer algorithm work better for American
  12. English than British English, so some British spellings will not be stemmed
  13. correctly.
  14. This module will use the PECL "stem" library's implementation of the Porter
  15. Stemmer algorithm, if it is installed on your server. If the PECL "stem" library
  16. is not available, the module uses its own PHP implementation of the
  17. algorithm. The output is the same in either case. More information about the
  18. PECL "stem" library: http://pecl.php.net/package/stem
  19. INSTALLATION
  20. ------------
  21. See the INSTALL.txt file for installation instructions.
  22. TESTING
  23. -------
  24. The Porter Stemmer module includes tests for the stemming algorithm and
  25. functionality. If you would like to run the tests, enable the core Testing
  26. module, and then run the tests following instructions on
  27. https://www.drupal.org/docs/8/phpunit/running-phpunit-tests. Commands below:
  28. cd core
  29. ../vendor/bin/phpunit --group porterstemmer
  30. Each test for the Porter Stemmer module includes approximately
  31. 5000 individual word stemming tests (which test the module against a standard
  32. word list).
  33. Tests are provided both for the internal algorithm and the PECL library.
  34. There is also a functional test for integration with Drupal search.