You are here

function porterstemmer_help in Porter-Stemmer 7

Same name and namespace in other branches
  1. 8 porterstemmer.module \porterstemmer_help()
  2. 5 porterstemmer.module \porterstemmer_help()
  3. 6.2 porterstemmer.module \porterstemmer_help()
  4. 6 porterstemmer.module \porterstemmer_help()

Implements hook_help().

File

./porterstemmer.module, line 62
Porter 2 Stemming for Drupal.

Code

function porterstemmer_help($path, $arg) {
  switch ($path) {
    case 'admin/help#porterstemmer':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Porter Stemmer module implements version 2 of the <a href="@algorithm">Porter Stemmer algorithm</a>, to improve American English-language searching with the core <a href="@search-help">Search module</a>. Stemming reduces a word to its basic root or stem (e.g. "blogging" to "blog") so that variations on a word ("blogs", "blogged", "blogging", "blog") are considered equivalent when searching. This generally results in more relevant results.', array(
        '@search-help' => url('admin/help/search'),
        '@algorithm' => 'http://snowball.tartarus.org/algorithms/english/stemmer.html',
      )) . '</p>';
      return $output;
  }
}