NU IT
Northwestern University Information Technology
MorphAdorner Northwestern
 
MorphAdorner Server Services: Noun Pluralizer Service

Service name: pluralizer
Service description: Find plural forms of nouns and pronouns.
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

    american Display American (U.S.) spellings of plural forms. Allowed values are true to display American spellings, false for British spellings.
    media Result format. One of json, xml, html, text .
    spelling Spelling of a word.

Sample POST form

The pluralizer service accepts a singular noun or pronoun and returns the plural form. An option allows for returning American plural forms instead of British plurals.

<form accept-charset="UTF-8" method="post" action="pluralizer"
      target="_blank"
      name="pluralizer">
<table cellpadding="0" cellspacing="5">
<tr>
<td><strong>Singular Noun:</strong></td>
<td><input type="text" name="singular" size = "20" value="" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input type="checkbox" name="american" value="true" />
American 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="pluralize" value="Pluralize" />
</td>
</tr>
</table>
</form>

Output

Here we use the pluralizer service to find the plural of the noun "mouse."

JSON output

{
  "PluralizerResult": {
    "singular": "mouse",
    "plural": "mice",
    "american": false
  }
}

XML output

<PluralizerResult>
    <singular>mouse</singular>
    <plural>mice</plural>
    <american>false</american>
</PluralizerResult>

HTML output (source)

<h3>Pluralizer results</h3>
<table border="0">
<tbody><tr>
<td align="left" valign="top"><strong>Singular:</strong></td>
<td align="left" valign="top">mouse</td>
</tr>
<tr>
<td align="left" valign="top"><strong>Plural:</strong></td>
<td align="left" valign="top">mice</td>
</tr>
<tr>
<td align="left" valign="top"><strong>American:</strong></td>
<td align="left" valign="top">false</td>
</tr>
</tbody>
</table>

HTML output (display)

Pluralizer results

Singular: mouse
Plural: mice
American: false

Text output

Pluralizer results
Singular:	mouse
Plural:	mice
American:	false
Home
 
Announcements and News
 
Documentation
 
Download MorphAdorner
 
Glossary
 
Helpful References
 
Licenses
 
Server
 
Talks
 
Tech Talk