--- sites/all/modules/porterstemmer/porterstemmer.module 2005-12-17 23:43:02.000000000 +0100 +++ sites/all/modules/porterstemmer/porterstemmer_engonly.module 2009-03-14 18:25:53.890625000 +0100 @@ -11,6 +11,9 @@ * Implementation of hook_search_preprocess */ function porterstemmer_search_preprocess(&$text) { + global $language; + if (substr($language->language,0,2) == "en") { # if the current user display language is "en" (English) + // Split words from noise and remove apostrophes $words = preg_split('/([^a-zA-Z]+)/', str_replace("'", '', $text), -1, PREG_SPLIT_DELIM_CAPTURE); @@ -22,9 +25,10 @@ function porterstemmer_search_preprocess } $odd = !$odd; } - // Put it all back together - return implode('', $words); + return implode('', $words); # return value if the current user display is English +} + return $text; # return the inputted text if the current user display is not English } /**