<?xml version="1.0" encoding="utf-8" ?>
<ignite version="1.0" source="thesaurus">

  <func name="synonym" endpoint="http://words.bighugelabs.com/api/2/{auth_token}/{word}/xml" method="GET" format="XML">
    <description>
      This function returns the synonyms for any word, using Big Huge Lab Thesaurus API.
    </description>
    <example>
      =Ignite("thesaurus","synonym","noun","Hello")
    </example>
    <document>
      <![CDATA[
      <a class="doc" href="http://words.bighugelabs.com/api.php">Documentation</a>
]]>
    </document>
    <inputs>
      <input name="word" type ="input1" process="replace"/>
      <input name="auth_token" type="config" process="replace" value="9b2a9f624c80dd3d94a67145deb70032"/>
    </inputs>
    <outputs>
      <output name="adjective" path="//words/w[@p='adjective' and @r='syn']" />
      <output name="adverb" path="//words/w[@p='adverb' and @r='syn']" />
      <output name="verb" path="//words/w[@p='verb' and @r='syn']" />
      <output name="noun" path="//words/w[@p='noun' and @r='syn']" />
      <output name="ALL" path="//words/w[@r='syn']" />
    </outputs>
  </func>

  <func name="antonym" endpoint="http://words.bighugelabs.com/api/2/{auth_token}/{word}/xml" method="GET" format="XML">
    <description>
      This function returns the antonyms for any word, using Big Huge Lab Thesaurus API.
    </description>
    <example>
      =Ignite("thesaurus","antonym","ALL","Up")
    </example>
    <document>
      <![CDATA[
      <a class="doc" href="http://words.bighugelabs.com/api.php">Documentation</a>
]]>
    </document>
    <inputs>
      <input name="word" type ="input1" process="replace"/>
      <input name="auth_token" type="config" process="replace" value="9b2a9f624c80dd3d94a67145deb70032"/>
    </inputs>
    <outputs>
      <output name="adjective" path="//words/w[@p='adjective' and @r='ant']" />
      <output name="adverb" path="//words/w[@p='adverb' and @r='ant']" />
      <output name="verb" path="//words/w[@p='verb' and @r='ant']" />
      <output name="noun" path="//words/w[@p='noun' and @r='ant']" />
      <output name="ALL" path="//words/w[@r='ant']" />
    </outputs>
  </func>

  <func name="related" endpoint="http://words.bighugelabs.com/api/2/{auth_token}/{word}/xml" method="GET" format="XML">
    <description>
      This function returns the related terms for any word, using Big Huge Lab Thesaurus API.
    </description>
    <example>
      =Ignite("thesaurus","related","verb","Gun")
    </example>
    <document>
      <![CDATA[
      <a class="doc" href="http://words.bighugelabs.com/api.php">Documentation</a>
]]>
    </document>
    <inputs>
      <input name="word" type ="input1" process="replace"/>
      <input name="auth_token" type="config" process="replace" value="9b2a9f624c80dd3d94a67145deb70032"/>
    </inputs>
    <outputs>
      <output name="adjective" path="//words/w[@p='adjective' and @r='rel']" />
      <output name="adverb" path="//words/w[@p='adverb' and @r='rel']" />
      <output name="verb" path="//words/w[@p='verb' and @r='rel']" />
      <output name="noun" path="//words/w[@p='noun' and @r='rel']" />
      <output name="ALL" path="//words/w[@r='rel']" />
    </outputs>
  </func>

  <func name="similar" endpoint="http://words.bighugelabs.com/api/2/{auth_token}/{word}/xml" method="GET" format="XML">
    <description>
      This function returns the similar terms for any word, using Big Huge Lab Thesaurus API.
    </description>
    <example>
      =Ignite("thesaurus","similar","adjective","World")
    </example>
    <document>
      <![CDATA[
      <a class="doc" href="http://words.bighugelabs.com/api.php">Documentation</a>
]]>
    </document>
    <inputs>
      <input name="word" type ="input1" process="replace"/>
      <input name="auth_token" type="config" process="replace" value="9b2a9f624c80dd3d94a67145deb70032"/>
    </inputs>
    <outputs>
      <output name="adjective" path="//words/w[@p='adjective' and @r='sim']" />
      <output name="adverb" path="//words/w[@p='adverb' and @r='sim']" />
      <output name="verb" path="//words/w[@p='verb' and @r='sim']" />
      <output name="noun" path="//words/w[@p='noun' and @r='sim']" />
      <output name="ALL" path="//words/w[@r='sim']" />
    </outputs>
  </func>

  <examples>
    <![CDATA[

<table border='1' class='ExcelTable2007'>
<tr><th class='heading'>&nbsp;</th><th>A</th><th>B (Forumla)</th><th>C (Output) </th></tr>
<tr><td class='heading' >1</td>
    <td>Hello</td>
    <td>=Ignite("thesaurus","synonym","ALL",A1)</td>
    <td>hullo,hi,howdy,how-do-you-do,greeting,salutation</td>
</tr>
<tr><td class='heading' >2</td>
    <td>Up</td>
    <td>=Ignite("thesaurus","antonym","ALL",A2)</td>
    <td>down,down,downward,downwardly,downwards</td>
</tr>
<tr><td class='heading' >3</td>
    <td>Gun</td>
    <td>=Ignite("thesaurus","related","ALL",A3)</td>
    <td>gun down</td>
</tr>
<tr><td class='heading' >4</td>
    <td>World</td>
    <td>=Ignite("thesaurus","similar","ALL",A4)</td>
    <td>international</td>
</tr>
</table>
      ]]>
  </examples>
  
</ignite>

