From: David Cramer Date: Sat, 14 Jan 2012 17:33:26 +0000 (+0000) Subject: Webhelp: Cleanup related to en_stemmer.js changes X-Git-Tag: release/1.79.1~6^2~580 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61e7481b7e7fd4afe6cde570b27525ecfac46db1;p=docbook-dsssl Webhelp: Cleanup related to en_stemmer.js changes --- 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';