|
Advanced eBusiness Studios
Slang and Abbreviation Dictionary API
We are building this API firstly for our own use at our
WAP service portal,
where a mobile phone owner can send an extremely short message from his
phone as fully elegance business SMS or email or purchasing inquiry
to his partner PC, PDA or phone through the WAP. Not only slangs, but
several popular internet abbreviations are being added to and taken
from MySQL database to help things coming up.
Now the API is published, so every web developer can
send query to our service and receive translated from slang text
back to his control script.
API Reference
API Service URL http://isd.ecomstudio.net/ws.csv.wapcorrect.php
Request Format
Request Paramaters
This table lists all the valid name-value pairs that can be used
in a slang translation request and describes how these parameters will
modify the translation results.
| Name |
Description |
| lang |
Language ID. It must be EN for English etc. Find below this page
other available languages ID. |
| user |
ISD User ID. Any user (member) gets this ID number when he/she
registers at ISD service. It is used to retrieve un-published abbreviations
that submited by the very user when searching for published abbreviations fails.
Just set it equal 0 if you dont plan to seek any private dictionary. |
| csv |
Response format. Its must not be empty if you want to get
translation comes in CSV format, otherwise translation comes in XML. |
| text |
The text to be translated, for example:
IM Paul Standus CN U C M.
Its case-insensitive, but lowercase is suggested. Abbreviated words within
the text must be followed by spaces. If you dont want a word to be translated,
please end it by a comma, or dot, or question mark etc. For example:
IM Paul Standus may I KN YR Yahoo IM!.
You see the first IM is different from the one in the end of this string. |
A Standard Sample

http://isd.ecomstudio.net/ws.csv.wapcorrect.php?user=0&lang=en&csv=1&text=CN+U+C+M

http://isd.ecomstudio.net/ws.csv.wapcorrect.php?user=0&lang=en&csv=0&text=CN+U+C+M
Response in CSV
The first link above, which one has csv=1 responses CSV string:
"CN U C M","Can you see me","en","0"
The CSV elements
FIRST Requested text to be translated by ISD API.
SECOND Translated text. If the API fails to translate, it returns original text.
THIRD Language ID. See above Request Paramaters.
FOURTH User ID. See above Request Paramaters.
Response in XML
And the second link with csv=0 responses an XML document:
<CORRECTEDTEXT>
<TEXTOLD>CN U C M</TEXTOLD>
<TEXTNEW>Can you see me</TEXTNEW>
<TEXTLANG>en</TEXTLANG>
<TEXTUSER>0</TEXTUSER>
</CORRECTEDTEXT>
The XML elements
<TEXTOLD> Requested text to be translated by ISD API.
<TEXTNEW> Translated text. If the API fails to translate, it returns original text.
<TEXTLANG> Language ID. See above Request Paramaters.
<TEXTUSER> User ID. See above Request Paramaters.
Language Reference
You can suggest to add new language if you cant find it in current
language listings, through your member
Control Panel.
We will then consider to assign new ID for the language.
It may take some days, so dont be impatient.
Existing valid languages IDs are as follows
1. en English
2. fr French
3. de German
4. es Spanish
5. it Italian
6. pt Portuguese
7. ru Russian
8. zh Chinese
9. ja Japanese
10. ko Korean
11. vi Vietnamese
12. nl Dutch
13. el Greek
|