I believe that the easiest way to calculate WPM is to count the individual characters. Four non space characters make a word (my memory on this is fuzzy). So, if you typed 100 characters in one minute you'd be at 25WPM.
You can then calculate the accuracy of what they typed. Check around on google for WPM calculations. But I seem to recall that was the basic way of doing it. -Novak ----- Original Message ----- From: "charlie griefer" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, January 31, 2003 1:31 PM Subject: WOT: Typing Test...calculating WPM > Hey all: > > just for grins, I want to put up an online typing test. > > I can figure out most of how to do it... but one thing's concerning me... > > If i basically take both strings (the text to type and what the user typed), > convert to an array using a space as a delimiter...loop over that and > compare each word... > > well...what happens if the user skips the very first word? everything after > that will be 'incorrect'. Or if the user acciden tally puts a space in a > word. > > Is this 'standard' when calculating WPM? Doesn't seem quite right to me. > > If anybody knows a better way to calculate WPM including errors...i'd > appreciate any advice i could get. > > TIA :) > charlie > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

