Hermetic Word Frequency Counter Advanced Version
Filter Found Phrases

Suppose we have a file containing Chapter 3 of George Orwell's novel , in which Eastasia, Eurasia and Oceania are perpetually at war. We can easily count the occurrences of these names by specifying "Eastasia, Eurasia, Oceania" in the extra count-only words text box at the Settings panel, then clicking on "Count words/phrases" then on "Count only specified words/phrases" to obtain:


Suppose now we wish to find all phrases which contain all three names. First we allow only numerals, commas and hyphens in words (in the Settings panel). Then we set order to "alphabetical" and format to "frequency word/phrase". Then we click on "Count all phrases" and set up the operation as follows:

Clicking on "Count phrases" produces after a minute or two:

You have to widen the window to get each phrase on a single line.


To illustrate the use of the options, suppose we have a file with a list of phrases (one per line) some of whch include 'shoes', such as:

red tennis shoes
green tennis shoes
old hiking boots
buy leather shoes
buy red tennis shoes
buy green leather shoes
rent or buy hiking shoes or boots
don't buy red leather shoes
buy leather shoes
buy green or white shoes or slippers
green or white shoes

To obtain just the phrases which have 'buy' followed somewhere (not necessarily immediately) by 'shoes' We set up the "Count all phrases" window as follows:

Clicking on "Count phrases" then produces:

If we had filtered the phrases using "as subphrase" then no phrases would have been displayed because "buy shoes" does not occur as a subphrase.

Introduction User Manual: Contents
Hermetic Systems Home Page