This is a discussion on "Phrase Frequency Counter" within the Classic ASP section. This forum, and the thread "Phrase Frequency Counter are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Phrase Frequency Counter
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Phrase Frequency Counter
Does anyone know of some ASP code for a Phrase Frequency Counter?
It should take a long string and produce a list of the number of occurences of 1 or 2 word phrases within the string? I've searched high and low and drawn a blank so far... [edit] this page: http://www.writewords.org.uk/phrase_count.asp shows a perfect example, but doesnt offer the actual code |
|
|
|
|||
|
have you found anything d3mon? ive also done a good long search...nothing
|
|
|||
|
I think the code here might be as close as I'll get:
http://wordtips.vitalnews.com/Pages/...currences.html |
|
||||
|
Re: Phrase Frequency Counter
d3mon.... here's one method...
put the length (len) of the string in a variable replace all occurences of phrase with phrase & "x" (ie... adding one extra char) to see how many phrases, just compare the final length with the starting length. final - starting = number of phrases.. Thats just one method, but should suffice.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| phrase, frequency, counter |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Age Counter | acrikey | JavaScript Forum | 4 | Jun 2nd, 2008 12:37 |
| Counter | confused | Website Planning | 6 | May 21st, 2007 03:27 |
| hit counter? | skyfire400 | Web Page Design | 6 | Mar 7th, 2006 14:00 |
| A PHP web counter? | k3nshin | PHP Forum | 19 | Feb 19th, 2004 22:35 |
| print "$counter times 2 is ".($counter*2)."<br>" | gwx03 | PHP Forum | 6 | Dec 10th, 2003 10:50 |