Hi folks,

 

I'm using the example in the documentation to determine if the two words
"behavior" and "behavioral" have the same stem:

 

xquery version "1.0-ml";

declare function local:same-stem(

  $word1 as xs:string, $word2 as xs:string) 

  as xs:boolean 

{

  cts:contains(text{$word1},$word2)

};

 

(: The following returns true because 

   running has the same stem as run :)

local:same-stem("behavior", "behavioral")

 

 

It is returning false even with advanced stemming enabled.  I'm wondering if
there is a way to get phase with these words to match?  Is it possible to
add stemmed words to teh ML database configuration?

 

Thank you!

 

Tim Meagher - AAOM Consulting

 

_______________________________________________
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general

Reply via email to