<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">

<html>

<!--(==============================================================)-->
<!--(Document created with RoboEditor. )============================-->
<!--(==============================================================)-->

<head>

<title>findwordpath</title>

<!--(Meta)==========================================================-->

<meta http-equiv=content-type content="text/html; charset=windows-1252">
<meta name=date content="01 4, 2002 1:01:02 PM">
<meta name=generator content="RoboHELP by eHelp Corporation - www.ehelp.com">
<meta name=generator-major-version content=0.1>
<meta name=generator-minor-version content=1>
<meta name=filetype content=kadov>
<meta name=filetype-version content=1>
<meta name=page-count content=1>
<meta name=layout-height content=940>
<meta name=layout-width content=775>
<meta name=x-ignored-words content="Files\TextAI\VisualText\apps\corporate;corporate.ana;Sold.txt;Files\TextAI\VisualText\docs\tutorialN;www.zdnet.com;apps\myAnalyzerFolder\;initKB;findwordpath(;olleh;wordpath(;conceptname(dictfindword(;rmword(;nameString;parentConcept;returnedConcept;findconcept(parentConcept;G(;findroot(;makeconcept(G(;findconcept(G(;down(currentConcept;currentConcept;findhierconcept(;up(G(;conceptname(G(;down(G(;next(G(;prev(G(;prev(currentConcept;attrnameString;returnedStr;strval(concept;attrNameString;if(findconcept(findroot(;strval(G(;returnPathString;fo">


<!--(Links)=========================================================-->

<link REL=StyleSheet HREF=default.css>



</head>

<!--(Body)==========================================================-->


<body>

<h1>findwordpath</h1>

<h2>Purpose</h2>

<p><font style="color: #000000;"
		color=#000000>Find entire path of dictionary concept for the given 
 string. (If not present, don't add the word.)</font></p>

<h2>Syntax</h2>

<p style="line-height: normal;
			margin-bottom: 14pt;
			margin-top: 14pt;
			x-text-tab-stops: repeat 1in;
			white-space: nowrap;
			font-family: monospace;
			font-size: 10pt;"><!--kadov_tag{{<ignored>}}-->returnPathString<!--kadov_tag{{</ignored>}}--> = <!--kadov_tag{{<ignored>}}-->findwordpath(wordString<!--kadov_tag{{</ignored>}}-->)</p>

<p style="margin-left: 40px;
			line-height: normal;
			margin-bottom: 14pt;
			margin-top: 14pt;
			x-text-tab-stops: repeat 1in;
			white-space: nowrap;
			font-family: monospace;
			font-size: 10pt;">returnPathString - type: str<br>
wordString - type: str</p>

<h2>Returns</h2>

<p>If it exists, return the path to it. If it does not, return an empty 
 string.</p>

<h2>Remarks</h2>

<p>The dictionary is a specialized part of the KB hierarchy used to store 
 and lookup words. You can see it with the KB editor, under <span style="font-weight: bold;">concept 
 </span>&gt; <span style="font-weight: bold;">sys</span> &gt; <span style="font-weight: bold;">dict</span>. 
 In order to speed up access to the dictionary, it is indexed by letters 
 of the alphabet. The function <span style="font-family: monospace;">findwordpath</span> 
 finds the complete path to a word, if it is already in the dictionary, 
 including the parent concept names in the KB hierarchy. <span style="font-family: monospace;">findwordpath</span> 
 includes the whole path, whereas <span style="font-family: monospace;">wordindex</span> 
 only finds the parent concept. <span style="font-family: monospace;">findwordpath</span> 
 is different from <span style="font-family: monospace;">wordpath</span> 
 in that <span style="font-family: monospace;">wordpath</span> will create 
 the entry in the dictionary if it is not there already, while <span style="font-family: monospace;">findwordpath</span> 
 will not create the entry.</p>

<h2>Example</h2>

<p style="line-height: normal;
			margin-bottom: 14pt;
			margin-top: 14pt;
			x-text-tab-stops: repeat 1in;
			white-space: nowrap;
			font-family: monospace;
			font-size: 10pt;">@CODE <br>
&quot;output.txt&quot; &lt;&lt; &quot;1 &quot; &lt;&lt; <!--kadov_tag{{<ignored>}}-->conceptname(addword(<!--kadov_tag{{</ignored>}}-->&quot;hello&quot;)) &lt;&lt; &quot;\n&quot;;<br>
&quot;output.txt&quot; &lt;&lt; &quot;2 &quot; &lt;&lt; <!--kadov_tag{{<ignored>}}-->conceptname(wordindex(<!--kadov_tag{{</ignored>}}-->&quot;hello&quot;)) &lt;&lt; &quot;\n&quot;;<br>
&quot;output.txt&quot; &lt;&lt; &quot;3 &quot; &lt;&lt; <span style="font-weight: bold; x-text-underline: normal; /*begin!kadov{{*/ text-decoration: underline; /*}}end!kadov*/ ">findwordpath</span>(&quot;hello&quot;) &lt;&lt; &quot;\n&quot;;<br>
&quot;output.txt&quot; &lt;&lt; &quot;4 &quot; &lt;&lt; <span style="font-weight: bold; x-text-underline: normal; /*begin!kadov{{*/ text-decoration: underline; /*}}end!kadov*/ ">findwordpath</span>(&quot;olleh&quot;) &lt;&lt; &quot;\n&quot;;<br>
&quot;output.txt&quot; &lt;&lt; &quot;5 &quot; &lt;&lt; wordpath(&quot;foobaz&quot;) &lt;&lt; &quot;\n&quot;;<br>
&quot;output.txt&quot; &lt;&lt; &quot;6 &quot; &lt;&lt; conceptname(dictfindword(&quot;hello&quot;)) &lt;&lt; \n&quot;;<br>
rmword(&quot;foobaz&quot;);</p>

<p>Prints out:</p>

<p style="line-height: normal;
			margin-bottom: 14pt;
			margin-top: 14pt;
			x-text-tab-stops: repeat 1in;
			white-space: nowrap;
			font-family: monospace;
			font-size: 10pt;">1 hello<br>
2 he<br>
3 &quot;concept&quot; &quot;sys&quot; &quot;dict&quot; &quot;a&quot; &quot;h&quot; &quot;he&quot; &quot;hello&quot;<br>
4 <br>
5 &quot;concept&quot; &quot;sys&quot; &quot;dict&quot; &quot;a&quot; &quot;f&quot; &quot;fo&quot; &quot;foobaz&quot;<br>
6 hello</p>

<h2>See Also</h2>

<p><a HREF="dictfindword.htm">dictfindword</a>, <a HREF="wordindex.htm">wordindex</a>, 
 <a HREF="wordpath.htm">wordpath</a>, <a href="Table_of_Knowledge_Base_Functions.htm">Knowledge 
 Base Functions</a></p>

<p style="margin-bottom: 0;">&nbsp; </p>

</body>

</html>
