Tools Home : Plain Text Tools : Pattern Distribution

Click here to show HTML tools HTML Tools

Click here to expand XML tools XML tools

Click here to expand plain text tools Plain Text Tools

Click here to expand other tools Other tools

 Beta tools
 Add Tools Demo

Pattern Distribution

This tool creates a graphical distribution list of words in a text document, either from a web address or uploaded from the user’s files. The subtext can be distributed in percentage blocks of text, or chunks of a user-defined number of words. The results may be viewed as an SVG graph, a graph generated with JavaScript, as HTML or as tab-delimited text.

Note: This tool works best when the input is plain text. If an HTML or XML text is submitted, the tool will strip all tags and process it as plain text.

Please click the ? buttons at the bottom right of each set of options for more information on that set.

For further information on this tool, please see the TADA Wiki's Distribution Graph entry here. A glossary of terms is also available here.


To generate a distribution graph for, search the text in blocks of %10 for the word 'Yahoo', and display the results as an interactive graph:
  1. Source text
    1. Enter ‘’ into the ‘URL’ field.
  2. Subtext limited to
    1. Click the radio button next to 'Distribute over ___% blocks of text' and select ‘10’ from the drop list.
  3. What to find
    1. Enter 'Yahoo' in the 'Word/Pattern' field.
  4. Results
    1. Set ‘Display as’ to ‘interactive graph’.
  5. Click the ‘Submit’ button to process the text.
» Source text


This section determines the source of the document you wish the tool to process.


Source URL
To use content from a web page, enter a full web address (URL) in the field provided. Copy and paste from your browser’s address bar for best results. If the web address directs to an HTML or XML document instead of plain text, the tool will strip all tags and process it as plain text.

Local file
To upload a plain text (.txt) file from your computer, choose ‘Local file,’ click ‘Browse,’ and select the file you wish to use from your directory.

» Subtext limited to


This section determines the graph's distribution.


Distribute over paragraphs
This field defines paragraphs as a distribution unit for the distribution graph.

Distribute over ___% block of text
This percentage determines the degree of detail included in the graph. For example, 10% will split the text into ten units and give the distribution of the word or pattern in each unit, while 1% will split it into 100 units and 25% will split it into four.

Distribute over chunks of ____ words
This field allows the user to set the number of words per unit of text in the distribution graph.

Show relative distribution
Check this box to enable relative distribution on the graph.
» What to find

This section determines what to search for within the document.


Users can filter results based on the word, phrase or pattern (regular expression) entered here. To search multiple words without the tool treating them as a phrase, separate words with commas (Ex: red, orange, purple). To search for a phrase, enter it as it appears in the text - quotation marks are not needed (Ex: wine-dark sea, not "wine-dark sea"). Unix-style searching may also be used.

Get Synonyms
If searching a word, this button generates a list of synonyms in a new window. To search the original word plus synonymns, copy the comma-separated list in the text box of the new window and paste it into the Word/Pattern field. Note: Concordance only.
» Results

This section allows users to choose how the results will be formatted, and whether to display it in a new browser window.

Display as
This drop-down lists enables users to choose from several output formats: SVG graph, HTML, tab delimited text or interactive graph. Please note that the interactive graph requires JavaScript.

Open results in new window
Check this box to display the results in a new window or browser tab. This option is selected by default. Some pop-up blockers may prevent a new window from being opened; if so, un-check the box to open the results in the same window instead.
`*' indicates a required field



TAPoRware Project, McMaster University,