Tools Home : Plain Text Tools : Compare Two Documents

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
 Manual
 About

Compare Two Documents
?
Summary

This tool is used to compare words within two plain text documents, either located at a specified web address or uploaded from the user’s files.

Words for comparison can be limited by searching a particular word, searching a pattern, searching either for the words or excluding only the words on a user-specified list. or excluding words from TAPoR’s modified Glasgow Stop Words list.

Results can be sorted by the top words in the first document or by the ratio of relative counts in both documents. The list can then be displayed in an HTML or tab delimited format.

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 Comparator entry here. A glossary of terms is also available here.

Walkthrough

To compare texts from http://tada.mcmaster.ca/wikita/pub/Main/ToolTestingTexts/ProsePoem.txt and http://tada.mcmaster.ca/wikita/pub/Main/ToolTestingTexts/ravenna.txt, filter out words that appear in the modified Glasgow Stop Words list and sort the results by ratio of relative word count:
  1. Source text
    1. Enter ‘http://tada.mcmaster.ca/wikita/pub/Main/ToolTestingTexts/ProsePoem.txt’ into the first ‘URL’ field.
    2. Enter ‘http://tada.mcmaster.ca/wikita/pub/Main/ToolTestingTexts/ravenna.txt’ into the second ‘URL’ field.
  2. Words to compare
    1. Click the radio button next to ‘Words not in the list below’.
    2. Click the radio button next to ‘Use modified Glasgow Stop Words
  3. Results
    1. Select ‘Ratio of relative count’ from the 'Sort' drop-down list.
    2. Select ‘HTML’ from the ‘Display as’ drop-down menu.
  4. Click the ‘Submit’ button to process the text.
*
» Source text
  Example: http://taporware.ualberta.ca/sampleDocs/plainText.txt


?
Summary

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

Fields

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.

*
» Second source text
  Example: http://taporware.ualberta.ca/sampleDocs/plainText2.txt


?
Summary

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

Fields

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.

» Words to compare






?
Summary

This section applies limits to the source text based on word filtering techniques.

Fields

All words
All words from within the specified element will be included in the word list.

Words matching pattern
Only words matching a regular expression provided by the user will be included in the word list.

Words in the list below
Only words specified by the user will be included in the list. Type the list of desired words in manually or upload a text (.txt) file containing their list.

Words not in the list below
Only words not in a user-specified list or the modified Glasgow Stop Words list will be included in the final list. To use a custom list, type it in manually or upload a text (.txt) file containing the list.

Word list typed in
Type a list of words separated by commas into this field to include or exclude those words from the final list. To include the typed words, choose ‘Words in the list below’, and to exclude them, choose ‘Words not in the list below’.

Text file with words
Use this field to upload a text (.txt) file of words to include or exclude. The list must be separated by commas (ex: red, orange, green, purple). To include only the words contained within the text file in the final list, choose ‘Words in the list below.’ To exclude the words instead, choose ‘Words not in the list below.’

Use modified Glasgow Stop Words
Choose this option to filter the modified Glasgow Stop Words list out of the final list.
» Results
?
Summary

This drop-down list offers the choice of sort the comparison results by the word count of the first text or ratio of relative count between both texts.

Sort by
This drop-down list allows users to choose between sorting the results by the word count of the first text or by the ratio of relative count between texts.

Display as
This drop-down lists offers a choice of displaying the tool results as HTML or tab delimited text.

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.

 

 

TAPoRware Project, McMaster University,