Register
Please sign-in to register for this API. Your Pretype.com account is automatically enrolled in a 15 query free trial of this web service. Don't have an account? Register for a free pretype.com account.
Cost
Monthly fee of $5
Description
A collection of three distinct API calls related to discovering information about words. The three APIs are described below.
Dictionary API
The dictionary API is a web service that allows access to a dictionary. It takes a word as input and returns various definitions describing the word.
Parameter: |
key |
Parameter Description: |
Your access key available from the account information page. |
Parameter: |
action |
Parameter Description: |
To use the dictionary API, use an action of dictionary. |
Parameter: |
word |
Parameter Description: |
The word you wish to look up in the dictionary. |
|
Example Request http://services.pretype.com/services/word/service.xml?key=[insert your key]&action=dictionary&word=cow
Example Response <response>
<count>5</count>
<definition>(n.) A chimney cap; a cowl</definition>
<definition>(n.) The mature female of bovine animals.</definition>
<definition>(n.) The female of certain large mammals, as whales, seals, etc.</definition>
<definition>(v. t.) To depress with fear; to daunt the spirits or courage of; to overawe.</definition>
<definition>(n.) A wedge, or brake, to check the motion of a machine or car; a chock.</definition>
</response>
|
|
Thesaurus API
The thesaurus API is a web service that allows access to a thesaurus. It takes a word as input and returns synonyms of that word.
Parameter: |
key |
Parameter Description: |
Your access key available from the account information page. |
Parameter: |
action |
Parameter Description: |
To use the thesaurus API, use an action of thesaurus. |
Parameter: |
word |
Parameter Description: |
The word you wish to look up in the thesaurus. |
|
Example Request http://services.pretype.com/services/word/service.xml?key=[insert your key]&action=thesaurus&word=blocky
Example Response <response>
<count>20</count>
<related>chubby</related>
<related>chunky</related>
<related>dumpy</related>
<related>fat</related>
<related>podgy</related>
<related>pudgy</related>
<related>pug</related>
<related>pugged</related>
<related>retrousse</related>
<related>snub-nosed</related>
<related>squat</related>
<related>squattish</related>
<related>squatty</related>
<related>stocky</related>
<related>stubbed</related>
<related>stubby</related>
<related>stumpy</related>
<related>thickset</related>
<related>tubby</related>
<related>turned-up</related>
</response>
|
|
Rhyme API
The rhyme API is a web service that serves up rhyming words. It takes a word and a threshold as input and returns words that rhymes based on the threshold. The higher the threshold the closer the words will sound.
Parameter: |
key |
Parameter Description: |
Your access key available from the account information page. |
Parameter: |
action |
Parameter Description: |
To use the rhyme API, use an action of rhyme. |
Parameter: |
word |
Parameter Description: |
The word you want to rhyme with. |
Parameter: |
sounds |
Parameter Description: |
This is the threshold you want for the rhyming words. A higher threshold will mean the words sound more similar. The lower the threshold the less similar the words will sound. |
|
Example Request http://services.pretype.com/services/word/service.xml?key=[insert your key]&action=rhyme&word=mission&sounds=5
Example Response <response>
<count>11</count>
<rhyme>academician</rhyme>
<rhyme>admission</rhyme>
<rhyme>commission</rhyme>
<rhyme>emission</rhyme>
<rhyme>intermission</rhyme>
<rhyme>omission</rhyme>
<rhyme>permission</rhyme>
<rhyme>remission</rhyme>
<rhyme>retransmission</rhyme>
<rhyme>submission</rhyme>
<rhyme>transmission</rhyme>
</response>
|
|