NU IT
Northwestern University Information Technology
MorphAdorner Northwestern
 
MorphAdorner Server Services: Syllable Counter Service

Service name: syllablecounter
Service description: Count syllables in 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

    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="syllablecounter"
      target="_blank"
      name="syllablecounter">
<table cellpadding="0" cellspacing="5">
<tr>
<td><strong>Spelling:</strong></td>
<td><input type="text" name="spelling" size="20" value="" /></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>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td>
<input type="submit" name="countsyllables" value="Count Syllables" />
</td>
</tr>
</table>
</form>

Output

We count the syllables in the word "antidisestablishmentarianism."

JSON output

{
  "SyllableCounterResult": {
    "spelling": "antidisestablishmentarianism",
    "syllableCount": 11
  }
}

XML output

<SyllableCounterResult>
    <spelling>antidisestablishmentarianism</spelling>
    <syllableCount>11</syllableCount>
</SyllableCounterResult>

HTML output (source)

<h3>Syllable count results</h3>
<table border="0">
<tr>
<td valign="top" align="left"><strong>Spelling:</strong></td>
<td valign="top" align="left">antidisestablishmentarianism</td>
</tr>
<tr>
<td valign="top" align="left"><strong>Syllable count:</strong></td>
<td valign="top" align="left">11</td>
</tr>
</table>

HTML output (display)

Syllable count results

Spelling: antidisestablishmentarianism
Syllable count: 11

Text output

Syllable count results
Spelling:       antidisestablishmentarianism
Syllable count: 11
Home
 
Announcements and News
 
Documentation
 
Download MorphAdorner
 
Glossary
 
Helpful References
 
Licenses
 
Server
 
Talks
 
Tech Talk