From 61e7481b7e7fd4afe6cde570b27525ecfac46db1 Mon Sep 17 00:00:00 2001 From: David Cramer Date: Sat, 14 Jan 2012 17:33:26 +0000 Subject: [PATCH] Webhelp: Cleanup related to en_stemmer.js changes --- xsl/webhelp/docsrc/xinclude-test.xml | 11 ++++------- .../template/content/search/stemmers/en_stemmer.js | 5 ++--- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/xsl/webhelp/docsrc/xinclude-test.xml b/xsl/webhelp/docsrc/xinclude-test.xml index 5b3c0215c..77ef4f88e 100644 --- a/xsl/webhelp/docsrc/xinclude-test.xml +++ b/xsl/webhelp/docsrc/xinclude-test.xml @@ -3,14 +3,11 @@ Test section
- Some problematic search words - buy, say, by, vary, try, sky, nucleus, day, key, currency, currencies, build.xml, foo + Some search words for testing + arsenal, arsenic, buy, say, by, vary, try, sky, nucleus, day, key, currency, currencies, build.xml
- Some problematic search words (inflected) - buys, says, varies, tries, skies, nuclei, days, keys, currencies, build.xml, foo. - - Test of admon graphics - + Some search words for testing (inflected) + arsenal, arsenic, buys, says, varies, tries, skies, nuclei, days, keys, currencies, build.xml
\ No newline at end of file diff --git a/xsl/webhelp/template/content/search/stemmers/en_stemmer.js b/xsl/webhelp/template/content/search/stemmers/en_stemmer.js index 8533b24e2..2117c1bfb 100644 --- a/xsl/webhelp/template/content/search/stemmers/en_stemmer.js +++ b/xsl/webhelp/template/content/search/stemmers/en_stemmer.js @@ -206,8 +206,7 @@ var stemmer = (function(){ w = origword; } - // These are all overstemmed as gener- - // What about commun- words? + // Address words overstemmed as gener- re = /.*generate?s?d?(ing)?$/; if( re.test(origword) ){ w = w + 'at'; @@ -224,7 +223,7 @@ var stemmer = (function(){ if( re.test(origword) ){ w = w + 'ous'; } - // These are overstemmed as commun- + // Address words overstemmed as commun- re = /.*communit(ies)?y?/; if( re.test(origword) ){ w = w + 'iti'; -- 2.40.0