NU IT
Northwestern University Information Technology
MorphAdorner Northwestern
 
MorphAdorner Server Services: Lexicon Lookup Service

Service name: lexiconlookup
Service description: Lookup spelling and related lemmata in a lexicon.
HTTP methods allowed: GET, POST, OPTIONS
POST accepts as input: application/x-www-form-urlencoded
HTTP return codes: 200: service succeeded
400: service failed with an error

Query parameters

    corpusConfig Corpus configuration name. In the standard distribution these are ece, eme, and ncf.
    media Result format. One of json, xml, html, text .
    spelling Spelling of a word.

Sample POST form

<form accept-charset="UTF-8" method="post" action="lexiconlookup"
      target="_blank"
      name="lexiconlookup">
<table cellpadding="0" cellspacing="5">
<tr>
<td><strong>Spelling:</strong></td>
<td><input type="text" name="spelling" size="20" value="" /></td>
</tr>
<tr>
<td valign="top">
<strong>
Lexicon:</strong>
</td>
<td>
<input type="radio" name="corpusConfig" value="eme">Early Modern English</input><br />
<input type="radio" name="corpusConfig" value="ece">Eighteen Century English</input><br />
<input type="radio" name="corpusConfig" value="ncf" checked="checked">Nineteenth Century Fiction</input>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td valign="top">
<strong>Results format:</strong>
</td>
<td>
<input type="radio" name="media" value="json">JSON format</input><br />
<input type="radio" name="media" value="xml" checked="checked">XML format</input><br />
<input type="radio" name="media" value="html">HTML format</input><br />
<input type="radio" name="media" value="text">Text format</input>
</td>
</tr>
<tr>
<td>
<input type="submit" name="lookup" value="Lookup" />
</td>
</tr>
</table>
</form>

Output

Here is sample output for the spelling "love" in the early modern English corpus (eme). The JSON and XML LexiconLookupResult echoes the input spelling and corpusConfig values as well as a LexiconEntry which provides the different part of speech counts for the lemmata associated with the spelling "love". The output also displays other spellings in the lexicon which take the same lemma forms as "love" as a list of relatedSpellings. The HTML and text versions provide the results in formats suitable for display.

JSON output

{
  "LexiconLookupResult": {
    "spelling": "love",
    "corpusConfig": "eme",
    "lexiconEntry": {
      "entry": "love",
      "standardEntry": "love",
      "lemmata": [
        {
          "entry": [
            {
              "string": [
                "n1",
                "love"
              ]
            },
            {
              "string": [
                "vvb",
                "love"
              ]
            },
            {
              "string": [
                "np1-n",
                "love"
              ]
            },
            {
              "string": [
                "vvi",
                "love"
              ]
            }
          ]
        }
      ],
      "entryCount": 24180,
      "categoriesAndCounts": [
        {
          "entry": [
            {
              "string": "n1",
              "MutableInteger": {
                "mutableInteger": 16227
              }
            },
            {
              "string": "vvb",
              "MutableInteger": {
                "mutableInteger": 4469
              }
            },
            {
              "string": "np1-n",
              "MutableInteger": {
                "mutableInteger": 5
              }
            },
            {
              "string": "vvi",
              "MutableInteger": {
                "mutableInteger": 3479
              }
            }
          ]
        }
      ],
      "largestCategory": "n1",
      "largestCategoryCount": 16227
    },
    "relatedSpellings": [
      {
        "relatedSpelling": [
          "vnlou'd",
          "lou'd",
          "lous",
          "louingest",
          "love's",
          "louingly",
          "lovingest",
          "lou's",
          "loveth",
          "lovd",
          "Loved",
          "lov'd",
          "{love}",
          "Lou'dst",
          "lub",
          "loues",
          "lov'dst",
          "Loued",
          "louingle",
          "loves",
          "loou'st",
          "lov'de",
          "Loves",
          "loueth",
          "lovingly",
          "lovest",
          "Loving",
          "Lov's",
          "Louing",
          "lovedst",
          "Lov'd",
          "unloved",
          "loving",
          "Lou's",
          "Loues",
          "loue",
          "lovedest",
          "Lou'd",
          "louing",
          "louiug",
          "lovingst",
          "Love",
          "Lov'st",
          "louedst",
          "lovinglie",
          "lcue",
          "louest",
          "lovst",
          "loust",
          "louinglie",
          "LOVES",
          "Loue",
          "lovinge",
          "lo'd",
          "lou`d",
          "louyng",
          "love-a",
          "loued",
          "LOVE",
          "lou'st",
          "loue'd",
          "louinge",
          "lovings",
          "lou'dst",
          "loved",
          "louynge",
          "louen",
          "lou'de",
          "louingst",
          "lovesto",
          "lovea",
          "LOue",
          "loy'st",
          "lov'st"
        ]
      }
    ]
  }
}

XML output

<LexiconLookupResult>
    <spelling>love</spelling>
    <corpusConfig>eme</corpusConfig>
    <lexiconEntry>
        <entry>love</entry>
        <standardEntry>love</standardEntry>
        <lemmata>
            <entry>
                <string>n1</string>
                <string>love</string>
            </entry>
            <entry>
                <string>vvb</string>
                <string>love</string>
            </entry>
            <entry>
                <string>np1-n</string>
                <string>love</string>
            </entry>
            <entry>
                <string>vvi</string>
                <string>love</string>
            </entry>
        </lemmata>
        <entryCount>24180</entryCount>
        <categoriesAndCounts>
            <entry>
                <string>n1</string>
                <MutableInteger>
                    <mutableInteger>16227</mutableInteger>
                </MutableInteger>
            </entry>
            <entry>
                <string>vvb</string>
                <MutableInteger>
                    <mutableInteger>4469</mutableInteger>
                </MutableInteger>
            </entry>
            <entry>
                <string>np1-n</string>
                <MutableInteger>
                    <mutableInteger>5</mutableInteger>
                </MutableInteger>
            </entry>
            <entry>
                <string>vvi</string>
                <MutableInteger>
                    <mutableInteger>3479</mutableInteger>
                </MutableInteger>
            </entry>
        </categoriesAndCounts>
        <largestCategory>n1</largestCategory>
        <largestCategoryCount>16227</largestCategoryCount>
    </lexiconEntry>
    <relatedSpellings>
        <relatedSpelling>vnlou'd</relatedSpelling>
        <relatedSpelling>lou'd</relatedSpelling>
        <relatedSpelling>lous</relatedSpelling>
        <relatedSpelling>louingest</relatedSpelling>
        <relatedSpelling>love's</relatedSpelling>
        <relatedSpelling>louingly</relatedSpelling>
        <relatedSpelling>lovingest</relatedSpelling>
        <relatedSpelling>lou's</relatedSpelling>
        <relatedSpelling>loveth</relatedSpelling>
        <relatedSpelling>lovd</relatedSpelling>
        <relatedSpelling>Loved</relatedSpelling>
        <relatedSpelling>lov'd</relatedSpelling>
        <relatedSpelling>{love}</relatedSpelling>
        <relatedSpelling>Lou'dst</relatedSpelling>
        <relatedSpelling>lub</relatedSpelling>
        <relatedSpelling>loues</relatedSpelling>
        <relatedSpelling>lov'dst</relatedSpelling>
        <relatedSpelling>Loued</relatedSpelling>
        <relatedSpelling>louingle</relatedSpelling>
        <relatedSpelling>loves</relatedSpelling>
        <relatedSpelling>loou'st</relatedSpelling>
        <relatedSpelling>lov'de</relatedSpelling>
        <relatedSpelling>Loves</relatedSpelling>
        <relatedSpelling>loueth</relatedSpelling>
        <relatedSpelling>lovingly</relatedSpelling>
        <relatedSpelling>lovest</relatedSpelling>
        <relatedSpelling>Loving</relatedSpelling>
        <relatedSpelling>Lov's</relatedSpelling>
        <relatedSpelling>Louing</relatedSpelling>
        <relatedSpelling>lovedst</relatedSpelling>
        <relatedSpelling>Lov'd</relatedSpelling>
        <relatedSpelling>unloved</relatedSpelling>
        <relatedSpelling>loving</relatedSpelling>
        <relatedSpelling>Lou's</relatedSpelling>
        <relatedSpelling>Loues</relatedSpelling>
        <relatedSpelling>loue</relatedSpelling>
        <relatedSpelling>lovedest</relatedSpelling>
        <relatedSpelling>Lou'd</relatedSpelling>
        <relatedSpelling>louing</relatedSpelling>
        <relatedSpelling>louiug</relatedSpelling>
        <relatedSpelling>lovingst</relatedSpelling>
        <relatedSpelling>Love</relatedSpelling>
        <relatedSpelling>Lov'st</relatedSpelling>
        <relatedSpelling>louedst</relatedSpelling>
        <relatedSpelling>lovinglie</relatedSpelling>
        <relatedSpelling>lcue</relatedSpelling>
        <relatedSpelling>louest</relatedSpelling>
        <relatedSpelling>lovst</relatedSpelling>
        <relatedSpelling>loust</relatedSpelling>
        <relatedSpelling>louinglie</relatedSpelling>
        <relatedSpelling>LOVES</relatedSpelling>
        <relatedSpelling>Loue</relatedSpelling>
        <relatedSpelling>lovinge</relatedSpelling>
        <relatedSpelling>lo'd</relatedSpelling>
        <relatedSpelling>lou`d</relatedSpelling>
        <relatedSpelling>louyng</relatedSpelling>
        <relatedSpelling>love-a</relatedSpelling>
        <relatedSpelling>loued</relatedSpelling>
        <relatedSpelling>LOVE</relatedSpelling>
        <relatedSpelling>lou'st</relatedSpelling>
        <relatedSpelling>loue'd</relatedSpelling>
        <relatedSpelling>louinge</relatedSpelling>
        <relatedSpelling>lovings</relatedSpelling>
        <relatedSpelling>lou'dst</relatedSpelling>
        <relatedSpelling>loved</relatedSpelling>
        <relatedSpelling>louynge</relatedSpelling>
        <relatedSpelling>louen</relatedSpelling>
        <relatedSpelling>lou'de</relatedSpelling>
        <relatedSpelling>louingst</relatedSpelling>
        <relatedSpelling>lovesto</relatedSpelling>
        <relatedSpelling>lovea</relatedSpelling>
        <relatedSpelling>LOue</relatedSpelling>
        <relatedSpelling>loy'st</relatedSpelling>
        <relatedSpelling>lov'st</relatedSpelling>
    </relatedSpellings>
</LexiconLookupResult>

HTML output (source)

<h3>love appears 24,180 times in the eme corpus training data.</h3>
<table border="0">
<tr>
<th align="left">Part of Speech</th>
<th align="left">Lemma</th>
<th align="left">Count</th>
</tr>
<tr>
<td valign="top" align="left">n1</td>
<td valign="top" align="left">love</td>
<td valign="top" align="left">16,227</td>
</tr>
<tr>
<td valign="top" align="left">vvb</td>
<td valign="top" align="left">love</td>
<td valign="top" align="left">4,469</td>
</tr>
<tr>
<td valign="top" align="left">np1-n</td>
<td valign="top" align="left">love</td>
<td valign="top" align="left">5</td>
</tr>
<tr>
<td valign="top" align="left">vvi</td>
<td valign="top" align="left">love</td>
<td valign="top" align="left">3,479</td>
</tr>
</table>
<table border="0">
<tr>
<th align="left">Related spellings:</th>
</tr>
<tr>
<td valign="top" align="left">vnlou'd, lou'd, lous, louingest, love's, louingly, lovingest, lou's, loveth, lovd, Loved, lov'd, {love}, Lou'dst, lub, loues, lov'dst, Loued, louingle, loves, loou'st, lov'de, Loves, loueth, lovingly, lovest, Loving, Lov's, Louing, lovedst, Lov'd, unloved, loving, Lou's, Loues, loue, lovedest, Lou'd, louing, louiug, lovingst, Love, Lov'st, louedst, lovinglie, lcue, louest, lovst, loust, louinglie, LOVES, Loue, lovinge, lo'd, lou`d, louyng, love-a, loued, LOVE, lou'st, loue'd, louinge, lovings, lou'dst, loved, louynge, louen, lou'de, louingst, lovesto, lovea, LOue, loy'st, lov'st</td>
</tr>
</table>

HTML output (display)

love appears 24,180 times in the eme corpus training data.

Part of Speech Lemma Count
n1 love 16,227
vvb love 4,469
np1-n love 5
vvi love 3,479
Related spellings:
vnlou'd, lou'd, lous, louingest, love's, louingly, lovingest, lou's, loveth, lovd, Loved, lov'd, {love}, Lou'dst, lub, loues, lov'dst, Loued, louingle, loves, loou'st, lov'de, Loves, loueth, lovingly, lovest, Loving, Lov's, Louing, lovedst, Lov'd, unloved, loving, Lou's, Loues, loue, lovedest, Lou'd, louing, louiug, lovingst, Love, Lov'st, louedst, lovinglie, lcue, louest, lovst, loust, louinglie, LOVES, Loue, lovinge, lo'd, lou`d, louyng, love-a, loued, LOVE, lou'st, loue'd, louinge, lovings, lou'dst, loved, louynge, louen, lou'de, louingst, lovesto, lovea, LOue, loy'st, lov'st

Text output

love appears 24,180 times in the eme corpus training data.
Part of Speech	Lemma	Count
n1	love	16,227
vvb	love	4,469
np1-n	love	5
vvi	love	3,479
Related spellings:
vnlou'd, lou'd, lous, louingest, love's, louingly, lovingest,
lou's, loveth, lovd, Loved, lov'd, {love}, Lou'dst, lub, loues,
lov'dst, Loued, louingle, loves, loou'st, lov'de, Loves, loueth,
lovingly, lovest, Loving, Lov's, Louing, lovedst, Lov'd,
unloved, loving, Lou's, Loues, loue, lovedest, Lou'd, louing,
louiug, lovingst, Love, Lov'st, louedst, lovinglie, lcue,
louest, lovst, loust, louinglie, LOVES, Loue, lovinge, lo'd,
lou`d, louyng, love-a, loued, LOVE, lou'st, loue'd, louinge,
lovings, lou'dst, loved, louynge, louen, lou'de, louingst,
lovesto, lovea, LOue, loy'st, lov'st
Home
 
Announcements and News
 
Documentation
 
Download MorphAdorner
 
Glossary
 
Helpful References
 
Licenses
 
Server
 
Talks
 
Tech Talk