Hmm... is w something more than a string... how could it have a count?

SQL uses distinct... might be good to use that...

commonest??? ;-)

Also... why are we dropping repeat?

Here's something nice: ordered repeats ;-)

How about:

put file filePath into fileString
filter the characters of fileString with "(?i)[a-z]"
repeat for each distinct word theWord with count theCount ordered by theCount 
numeric descending
   put theWord,theCount &cr after theList
   if the number of lines of theList = 10 then exit repeat
end repeat

--
M E R Goulding 
Software development services
Bespoke application development for vertical markets

mergExt - There's an external for that!

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to