Need a computer program which counts words in multiple TXT files!

hiciper

Prominent
Apr 28, 2017
3
0
510
Need to have "word statistics" of a bunch of TXT files.

Especially one that answers "Which words are used most?"

Also any link to download, Please..
 
Solution
I have been tinkering with Powershell off and on as time and circumstances permit.

You may be able to create your own "search engine" without too much effort. Especially if you can find and adapt some existing script to your need.

Four basic steps:

1) Search for a specific word occurrence in a single text file in some folder.

2) Count the word finds

3) Expand the search go through all of the text files in the folder.

4) Tally the word count if and as necessary.



Google words such as "use powershell to search text files tally word count". You can vary the words and phrasing to refine the search results.

Example links:

https://stackoverflow.com/questions/42271475/reading-a-text-file-and-finding-text-using-powershell...
Not sure about the full extent of your requirements.

Google the following: "software to count words in text".

Take a close look at the resulting links. You may wish to reduce or change the search time frame.

Overall, there does seem to be a variety of tools that meet your requirements.

 

hiciper

Prominent
Apr 28, 2017
3
0
510
I have like thousands of txt filles, I wanna make the word count/concentration analyzed. This is a special thing. Not homework but might involve a small book to write later.

(Also a searcher inside HTML files could be awesome but its likely more complex hence i am not lookin for smth like that)

And Ralston18 tanks for the search title. It may help alot.

Something like this could be useful but this is a online "text paste" version. I need a ".txt file analyzer". http://www.writewords.org.uk/word_count.asp
 
I have been tinkering with Powershell off and on as time and circumstances permit.

You may be able to create your own "search engine" without too much effort. Especially if you can find and adapt some existing script to your need.

Four basic steps:

1) Search for a specific word occurrence in a single text file in some folder.

2) Count the word finds

3) Expand the search go through all of the text files in the folder.

4) Tally the word count if and as necessary.



Google words such as "use powershell to search text files tally word count". You can vary the words and phrasing to refine the search results.

Example links:

https://stackoverflow.com/questions/42271475/reading-a-text-file-and-finding-text-using-powershell

https://stackoverflow.com/questions/41871147/find-specific-string-in-textfile-powershell

https://stackoverflow.com/questions/41052831/extract-lines-matching-a-pattern-from-all-text-files-in-a-folder-to-a-single-out


The advantage to you is that you will understand the end/working script and be able to therefore modify it as your needs require.

Start simple and as you learn, then make the script more powerful and useful. E.g., set it up to allow the user to enter the target string/word.






 
Solution