What do you want to contribute?
Monte Goulding
monte at sweattechnologies.com
Mon Feb 18 21:58:13 EST 2013
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!
More information about the use-livecode
mailing list