Computing.Net > Forums > Web Development > Automatic word count across site

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Automatic word count across site

Reply to Message Icon

Name: RTAdams89
Date: September 4, 2006 at 21:42:22 Pacific
OS: xp home
CPU/Ram: na
Product: na
Comment:

I have a directory of HTML files saved on my computer. I am looking for a way to scan all of them at once, and report statistics on how often words are used. For example: a program that would scan all the files and tell me that the wor d"like" is used 100 times, "a" 200 times, and "he" 12 times. Any ideas how to do this?

-Ryan Adams
http://members.cox.net/rtadams89/



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: September 5, 2006 at 06:39:44 Pacific
Reply:

I think this is outside the scope of "web development". The fact that you are scanning html files is really of no consequence.

My suggestion would be to try a desktop search engine such as the free one Google has (I think MS has one too). These tools can search for content within files. I don't know if they report on the number of hits on a particular word though.

One problem you may have, however, is if your search contains anything within the "code" itself. For instance if you search for the word "dog" do you only wnat to see instances of that word int he displayed text? because there is also text in the meta information (i.e. ALT tags) that could contain that word.

Michael J


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Automatic word count across site

Clear IE favorite unwant sites www.computing.net/answers/webdevel/clear-ie-favorite-unwant-sites/234.html

Play multiple songs on website wmp www.computing.net/answers/webdevel/play-multiple-songs-on-website-wmp/2703.html

variables in ASP.NET www.computing.net/answers/webdevel/variables-in-aspnet/942.html