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

hiciper

Prominent
Apr 28, 2017
3
0
510
0
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..
 

Ralston18

Dignified
Moderator
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.






 

Ralston18

Dignified
Moderator
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.

 
Unix OSs (and derivatives like Linux, MacOS etc) have full array of command-line tools for that: wc, uniq, etc. Some of these tools are ported also for Windows, like in Cygwin project.

Are you doing a homework project, or looking for ready-made tools?
 

hiciper

Prominent
Apr 28, 2017
3
0
510
0
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
 

Ralston18

Dignified
Moderator
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.






 
Thread starter Similar threads Forum Replies Date
A Social Networking 2
K Social Networking 1
N Social Networking 9
A Social Networking 1
C Social Networking 1
S Social Networking 3
G Social Networking 5
S Social Networking 6
S Social Networking 3
Dr Shankinstein Social Networking 2
C Social Networking 1
N Social Networking 1
C Social Networking 2
L Social Networking 8
Astralv Social Networking 18
R Social Networking 1
M Social Networking 5
I Social Networking 3
Crypto6 Social Networking 4
K Social Networking 1

ASK THE COMMUNITY