Phrase Frequency Counter

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 28th, 2005, 09:27
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote

  #2 (permalink)  
Old Oct 30th, 2005, 12:48
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbramz
have you found anything d3mon? ive also done a good long search...nothing
Reply With Quote
  #3 (permalink)  
Old Oct 30th, 2005, 17:50
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
I think the code here might be as close as I'll get:

http://wordtips.vitalnews.com/Pages/...currences.html
Reply With Quote
  #4 (permalink)  
Old Nov 6th, 2005, 10:33
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,951
Blog Entries: 7
Thanks: 7
Thanked 3 Times in 3 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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
Reply With Quote
Reply

Tags
phrase, frequency, counter

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 21:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43