NU IT
Northwestern University Information Technology
MorphAdorner Northwestern
 
MorphAdorner Server Services: Spelling Standardizer Service

Service name: spellingstandardizer
Service description: Find standard spelling for a word.
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.
    wordClass Primary word class. One of adjective, adverb, compound, conjunction, infinitive-to, noun, noun-possessive, preposition, pronoun, pronoun-possessive, pronoun-possessive-determiner, verb .
    wordClass2 Secondary word class. One of adjective, adverb, compound, conjunction, infinitive-to, noun, noun-possessive, preposition, pronoun, pronoun-possessive, pronoun-possessive-determiner, verb .
    extendedSearch Perform an extended search for standard spellings. Allowed values are true to perform an extended search, false to not perform an extended search.

Sample POST form

<form accept-charset="UTF-8" method="post" action="spellingstandardizer"
      target="_blank"
      name="standardizer">
<table cellpadding="0" cellspacing="5">
<tr>
<td><strong>Spelling:</strong></td>
<td><input type="text" name="spelling" size="20" value="" /></td>
</tr>
<tr>
<td><strong>Primary word class:</strong></td>
<td>
<select name="wordClass">
<option value="" selected="selected"></option>
<option value="adjective">adjective</option>
<option value="adverb">adverb</option>
<option value="compound">compound</option>
<option value="conjunction">conjunction</option>
<option value="infinitive-to">infinitive-to</option>
<option value="noun">noun</option>
<option value="noun-possessive">noun-possessive</option>
<option value="preposition">preposition</option>
<option value="pronoun">pronoun</option>
<option value="pronoun-possessive">pronoun-possessive</option>
<option value="pronoun-possessive-determiner">pronoun-possessive-determiner</option>
<option value="verb">verb</option>
</select>
</td>
</tr>
<tr>
<td><strong>Secondary word class:</strong></td>
<td>
<select name="wordClass2">
<option value="" selected="selected"></option>
<option value="adjective">adjective</option>
<option value="adverb">adverb</option>
<option value="compound">compound</option>
<option value="conjunction">conjunction</option>
<option value="infinitive-to">infinitive-to</option>
<option value="noun">noun</option>
<option value="noun-possessive">noun-possessive</option>
<option value="preposition">preposition</option>
<option value="pronoun">pronoun</option>
<option value="pronoun-possessive">pronoun-possessive</option>
<option value="pronoun-possessive-determiner">pronoun-possessive-determiner</option>
<option value="verb">verb</option>
</select>
</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><input type="checkbox" name="extendedSearch" value="true" />Perform extended search for suggested spellings</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="standardize" value="Standardize" />
</td>
</tr>
</table>
</form>

Output

Here is sample output for spelling strykynge, using the eme (early modern English) corpus configuration. We supply verb as the primary word class.

The JSON and XML formats echo the input spelling, the corpusConfig, and the primary and secondary word classes wordClass and wordClass2 respectively. The resulting standard spelling striking is emitted as standardSpelling. The input query parameter field values are not emitted for the HTML or plain text output formats which are suitable for display.

JSON output

{
  "SpellingStandardizerResult": {
    "spelling": "strykynge",
    "standardSpelling": "striking",
    "corpusConfig": "eme",
    "wordClass": "verb",
    "wordClass2": ""
  }
}

XML output

<SpellingStandardizerResult>
    <spelling>strykynge</spelling>
    <standardSpelling>striking</standardSpelling>
    <corpusConfig>eme</corpusConfig>
    <wordClass>verb</wordClass>
    <wordClass2/>
</SpellingStandardizerResult><

HTML output (source)

<h3>Spelling Standardizer Results</h3>
<table border="0">
<tr>
<td valign="top" align="left"><strong>Standard spelling:</strong></td>
<td valign="top" align="left">striking</td>
</tr>
</table>

HTML output (display)

Spelling Standardizer Results

Standard spelling: striking

Text output

Spelling Standardizer Results
Standard spelling:	striking
Home
 
Announcements and News
 
Documentation
 
Download MorphAdorner
 
Glossary
 
Helpful References
 
Licenses
 
Server
 
Talks
 
Tech Talk