Tool to count occurrences of all words?

Status
Not open for further replies.

krommenaas

Registered
Joined
Jul 13, 2016
Messages
19
Reaction score
0
Location
Antwerp, Belgium
I'm looking for a tool that goes through a text file and makes a list of all the words in it and the number of times each word occurs. Does anyone know such a tool? There are online tools but I don't want to paste my entire novel to a website.
 

AW Admin

Administrator
Super Member
Registered
Joined
Apr 19, 2008
Messages
18,772
Reaction score
6,286
You can use a linguistic corpora analysis tool like this one, though that too is likely overkill.

When I follow the steps I linked to earlier, I get an alphabetical list of words with a count. It does include everything though, even words like a and the.
 

Alexys

Took a wrong turn at the Pleiades
Super Member
Registered
Joined
Jun 5, 2011
Messages
341
Reaction score
30
Location
On the wrong planet. ;P
If you can be bothered to massage a copy of the file so that it's all lower-case, one word per line, and no punctuation, this page has a Powershell one-liner that should do the job: https://blogs.msdn.microsoft.com/timid/2009/08/21/powershell-one-liner-sort-uniq-c/ (drop the last command in the chain to get all the words instead of just the first 10). If you have no idea what Powershell is, this is probably not a good method for you.
 
Status
Not open for further replies.