]> granicus.if.org Git - docbook-dsssl/commitdiff
Webhelp: Cleanup related to en_stemmer.js changes
authorDavid Cramer <david@thingbag.net>
Sat, 14 Jan 2012 17:33:26 +0000 (17:33 +0000)
committerDavid Cramer <david@thingbag.net>
Sat, 14 Jan 2012 17:33:26 +0000 (17:33 +0000)
xsl/webhelp/docsrc/xinclude-test.xml
xsl/webhelp/template/content/search/stemmers/en_stemmer.js

index 5b3c0215c6fd3cfdcc3f0e4087d971ad18a5894a..77ef4f88ee5e3e9e03cd557c39a1be0549488c1e 100644 (file)
@@ -3,14 +3,11 @@
   <chapter>
     <title>Test section</title>
     <section>
-      <title>Some problematic search words</title>
-      <para>buy, say, by, vary, try, sky, nucleus, day, key, currency, currencies, build.xml, foo</para>
+      <title>Some search words for testing</title>
+      <para>arsenal, arsenic, buy, say, by, vary, try, sky, nucleus, day, key, currency, currencies, build.xml</para>
     </section>
     <section>
-      <title>Some problematic search words (inflected)</title>
-      <para>buys, says, varies, tries, skies, nuclei, days, keys, currencies, build.xml, foo.</para>
-      <note>
-       <para>Test of admon graphics</para>
-      </note>
+      <title>Some search words for testing (inflected)</title>
+      <para>arsenal, arsenic, buys, says, varies, tries, skies, nuclei, days, keys, currencies, build.xml</para>
     </section>    
   </chapter>
\ No newline at end of file
index 8533b24e2dea06b820f593a07744114191c042df..2117c1bfb305b87570bc3f97ec91980c9873c821 100644 (file)
@@ -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';