[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: XY concordancer pgm?



Reply to note from rrr@xxxxxxxx (Rene von Rentzell) Fri, 17 Oct 97
03:38:28 +0000

-> Oh, sorry. What I'd like to to is count the incidences of words
-> in a document. For example in the above quote, there are 3
-> "you", 2 "are", 1 "XPL", and so on.

Are you running XyWrite under OS/2 perchance? If so, there's a
utility called UNIQUE.EXE, by Michael Kimes, that may fit the bill.
Just for fun, I ran it against the Gettysburg Address; here's the
output:

---- Quote ------

 File "GETTYSBG.TXT"
 22 total lines, 267 total words.
 138 unique words found (51.69%).

 Most frequently used word (13 uses, 4.87%):
"that"

 Breakdown:
  13 uses: "that"
  11 uses: "the"
  10 uses: "we"
   8 uses: "to"
   8 uses: "here"
   7 uses: "a"
   7 uses: "and"
   5 uses: "It"
   5 uses: "for"
   5 uses: "of"
   5 uses: "nation"
   5 uses: "have"
   4 uses: "dedicated"
   4 uses: "this"
   4 uses: "in"
   3 uses: "great"
   3 uses: "they"
   3 uses: "cannot"
   3 uses: "is"
   3 uses: "dead"
   3 uses: "who"
   3 uses: "are"
   3 uses: "us"
   3 uses: "shall"
   3 uses: "so"
   3 uses: "people"
   2 uses: "gave"
   2 uses: "our"
   2 uses: "devotion"
   2 uses: "rather"
   2 uses: "new"
   2 uses: "or"
   2 uses: "far"
   2 uses: "from"
   2 uses: "what"
   2 uses: "war"
   2 uses: "be"
   2 uses: "not"
   2 uses: "men"
   2 uses: "long"
   2 uses: "living"
   2 uses: "dedicate"
   2 uses: "But"
   2 uses: "which"
   2 uses: "can"
   2 uses: "conceived"
   2 uses: "these"
   1 use: "power"
   1 use: "nor"
   1 use: "nobly"
   1 use: "on"
   1 use: "portion"
   1 use: "poor"
   1 use: "perish"
   1 use: "note"
   1 use: "Now"
   1 use: "years"
   1 use: "testing"
   1 use: "their"
   1 use: "those"
   1 use: "thus"
   1 use: "under"
   1 use: "unfinished"
   1 use: "vain"
   1 use: "upon"
   1 use: "world"
   1 use: "whether"
   1 use: "will"
   1 use: "work"
   1 use: "sense"
   1 use: "proposition"
   1 use: "remaining"
   1 use: "remember"
   1 use: "resolve"
   1 use: "resting-place"
   1 use: "say"
   1 use: "task"
   1 use: "proper"
   1 use: "seven"
   1 use: "should"
   1 use: "struggled"
   1 use: "take"
   1 use: "forget"
   1 use: "cause"
   1 use: "civil"
   1 use: "come"
   1 use: "consecrate"
   1 use: "consecrated"
   1 use: "endure"
   1 use: "continent"
   1 use: "created"
   1 use: "detract"
   1 use: "did"
   1 use: "died"
   1 use: "do"
   1 use: "above"
   1 use: "earth"
   1 use: "add"
   1 use: "advanced"
   1 use: "ago"
   1 use: "all"
   1 use: "altogether"
   1 use: "any"
   1 use: "brave"
   1 use: "as"
   1 use: "battlefield"
   1 use: "before"
   1 use: "birth"
   1 use: "by"
   1 use: "brought"
   1 use: "equal"
   1 use: "hallow"
   1 use: "highly"
   1 use: "honored"
   1 use: "increased"
   1 use: "larger"
   1 use: "last"
   1 use: "live"
   1 use: "liberty"
   1 use: "little"
   1 use: "might"
   1 use: "lives"
   1 use: "measure"
   1 use: "met"
   1 use: "ground"
   1 use: "never"
   1 use: "fathers"
   1 use: "field"
   1 use: "final"
   1 use: "fitting"
   1 use: "engaged"
   1 use: "forth"
   1 use: "fought"
   1 use: "Fourscore"
   1 use: "freedom"
   1 use: "full"
   1 use: "God"
   1 use: "government"

---- UnQuote ------

Add the Xy-OS/2 Shell, and output can be imported directly into a Xy
text window. And it's fast.

--------------
Carl Distefano
CLDistefano@xxxxxxxx
http://users.datarealm.com/xywwweb/