Acronym Finder
See
http://taporware.mcmaster.ca/~taporware/betaTools/acronymfinder.shtml
Description
An acronym is a kind of abbreviation. It is usually made from the capitalized initials of the words it represents.
This tool tries its best to find any acronym (a sequence of capital letters) in a source text and then guess the corresponding original name which might appear before it.
Pseudocode
- Get the source text from internet or form user's local disk. If the source text is HTML or XML format, strip off all the tags and unrelated stuff (javascript, css, etc.)
- Identify the acronyms with the 100 characters before it
- Test if the the 100 characters matches the acronym.
- Format the output.
Way of Using
- Enter a valid URL in the URL field or enter a local path to upload the source text. If source text can be HTML, XML or plain text
- Click the submit button.
CGI Interface
If you want to use this tool from your web site, here is the CGI Interface:
(
Note: You need to use attribute name/value pair: enctype="multipart/form-data" within the form tag because the tool was to designed to allow local file uploading even if you do not use this feature)
Here are the parameters:
| Parameter Name | Parameter Value | Control Type | Default | Discription |
| source | url/local | radio button | url | Let user select input text (either a url or upload local html text) |
| htmlurl | | text | | A valid URL that points to XML, HTML or plain text |
| localFile | | file | | The path to your local html text file |
| listdisp | 2 | select | 2 | Output format. Currently, only HTML (2) format is implemented |
Use Acronym TAPoRware Tool in Your Web Page
You can add a button in your web page to extract text contained in specified HTML tags in that page by call
TAPoRware cgi script.
Here is the code for the button:
<form method="post" name="htmlForm" enctype="multipart/form-data" target="_blank" action="http://taporware.mcmaster.ca/~taporware/cgi-bin/prototype/hacronym.cgi" onsubmit="document.htmlForm.htmlurl.value=document.location.href">
<input type="hidden" name="source" value="url" />
<input type="hidden" name="htmlurl" />
<input type="hidden" name="listdisp" value="2" />
<input type="submit" name="doit" value="Get Acronyms" />
</form>
Web Service Interface
Taporware provides web services to any non-benefit organizations. here is the taporware web services infomation:
--
LianYan - 01 Jun 2007