<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>12807</bug_id>
          
          <creation_ts>2011-05-28 14:25:47 +0000</creation_ts>
          <short_desc>[XQFTTS] xquery-xpath-composability-queries-results-q9* tests assume stemming algorithm</short_desc>
          <delta_ts>2011-12-29 16:21:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Full Text 1.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul J. Lucas">paul</reporter>
          <assigned_to name="Jim Melton">jim.melton</assigned_to>
          <cc>tim</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48888</commentid>
    <comment_count>0</comment_count>
    <who name="Paul J. Lucas">paul</who>
    <bug_when>2011-05-28 14:25:47 +0000</bug_when>
    <thetext>These queries contains the words &quot;successfully&quot;, &quot;completing&quot;, and &quot;tasks&quot; and use stemming.  Our implementation returns the correct result and, additionally, the &quot;Usability Basics&quot; title.

I think the expected result is due to the test assuming that the stemming algorithm stems &quot;successfully&quot; to &quot;successful&quot;.  Our implementation stems &quot;successfully&quot; to &quot;success&quot;.  Accordingly, the following XML fragment in the test document:

      &lt;p&gt;Users are asked to complete tasks which
            measure the success of the information
            architecture and navigational elements of the
            site.&lt;/p&gt;

matches and, correspondingly, the entire title is matched and returned.  Since the stem of a token is &quot;implementation-defined&quot;, this test is incorrect in assuming that &quot;successfully&quot; stems to &quot;successful&quot; and not &quot;success&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50406</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-06-28 11:33:28 +0000</bug_when>
    <thetext>Personal response:

The test xquery-xpath-composability-queries-results-q9 specifies the stemming dictionary in the catalog:

        &lt;aux-URI role=&quot;stemming-dictionary&quot;&gt;english&lt;/aux-URI&gt;

which corresponds to the &quot;english-stems.txt&quot; file.

This file specifies no rule to stm &quot;successfully&quot;.  According to the guidelines for running the test suite:

&quot;The stopwords, thesaurus, and stemming-dictionary sources are not intended to be used directly in the form in which they are given, but to provide information to those running the test suite about the expectations a particular test has about various implementation-specific aspects of the execution context. Implementations are expected to provide equivalent information to the query, but in whatever form is appropriate in their context.&quot;

This means that to pass the test, the stemmer you use in your test harness mustn&apos;t stem &quot;successfully&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61948</commentid>
    <comment_count>2</comment_count>
    <who name="Paul J. Lucas">paul</who>
    <bug_when>2011-12-22 18:29:03 +0000</bug_when>
    <thetext>SInce stemming is implementation-defined, I don&apos;t see how a test can dictate what ought or ought not to be stemmed.  In particular to this case, requiring that &quot;successfully&quot; not be stemmed when it obviously has stems is ridiculous.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62134</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-12-29 16:21:08 +0000</bug_when>
    <thetext>True, but if you want to pass the test suite, then you have to follow the guidelines for running the test suite.

(In reply to comment #2)
&gt; SInce stemming is implementation-defined, I don&apos;t see how a test can dictate
&gt; what ought or ought not to be stemmed.  In particular to this case, requiring
&gt; that &quot;successfully&quot; not be stemmed when it obviously has stems is ridiculous.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>