Skip to content.

Find topic

Web tools

Help

Tools

       Analysis Tool Bar  +

Word Cloud

Try It

Description

Produces a weighted list of words found in a text. Clicking on words will fetch the concordance of words with which it is associated.

Ways of Using

  • Enter a URL or a local file path in the corresponding field
  • Select the number of top frequency words you want to see.
  • Check the checkbox to exclude Glasgow stop words
  • Select the order of the top words to be displayed
  • Check or uncheck rest of the field which are self explained
  • Click the submit button
  • In the results, you can click any word to see its concordance

You can also embed the following code into your own web page, such as your blog, to get the page's word cloud:

(Note: when you copy the following code to your page, it is your responsibility to make sure that each statement must be in one line. We have seen that when copy and paste to a blog, the server add <br /> at the end of each line. you should manually remove the <br /> such that when you view the source code, it should be exactly the same as the code here).

<script>
function getDynamic(iname){
   url = location.href
   x = 'http://taporware.mcmaster.ca/~taporware/cgi-bin/prototype/bwordcloud.cgi?source=url&htmlurl=' + url 
   window.frames[iname].location = x
   return true
}
</script>
<div style="width: 300px; height: 280px; float: right">
<iframe name="wordcloud" width="100%" frameborder="0" height="100%" marginheight="0" marginwidth="0" style="border: none">
</iframe>
</div>  

You can change the values in the line:

<div style="width: 300px; height: 280px; float: right">
to fit the word cloud to your page.

CGI Interface

If you want to use this tool from your web site, here is the CGI Interface: (Note: If you want to upload local html text to the tool, you need to use attribute name/value pair: enctype="multipart/form-data" within the form tag)

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 the pointed document should be an html text
localFile   file   The path to your local html text file
wordLimit 25/50/100/200 select 100 The number of high frequency words to display
stoplist   checkbox checked Indicate if to exclude the modified glasgow stop words
listsort 1/2/3 select 3 Indicate how the high frequency words are sorted -- by frequency/alphabetic/by order of appearance
fixedSize   checkbox unchecked Indicate if the results are displayed in fixed layout

Web Service Interface

Taporware provides web services to any non-benefit organizations. here is the taporware web services information:

  • Endpoint URL: http://taporware.mcmaster.ca:9982
  • Service URI: http://taporware.mcmaster.ca/~taporware/webservice
  • Service Method: word_cloud
  • parameters:
    • textInput -- any HTML, XML or plain text string.
    • element -- HTML or XML element name in your text string
    • numOfWords -- number of words displayed in the word cloud output
    • glasgow -- indicate if glasgow stop words will be excluded. The default is "YES"
    • sorting -- sort criteria. the value of 1/2/3 is corresponding to alphabetically/by frequency/by order of appearance respectively

Known Bugs

Uploading a text, then reloading the results page will crash Firefox on the PC.

Responsibility

This tool was programmed by Andrew MacDonald as part of the TAPoR project.

-- AndrewMacdonald - 20 Jun 2006



Use this box to quickly add a comment to the page.

more options...