Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Frequency of phrases

From: louisaturk:coxinet at: 22-Aug-2002 13:01

Hi rebols, Goal: To find the length and frequency of use of all the unique phrases in a text file. Phrase: A phrase will be defined as a string len characters long and with a space at each end. All phrases 100 characters long are to be processed first, then all phrases of length len - 1 and so on until len = 5. The text file: To simplify things, manually place a space at the beginning and at the end of the file to be processed. To further simplify things, place a space before all punctuation marks. Achieving this goal is proving to be quite a bit more complicated then I thought at first, and will be extremely time consuming if not done properly. What is the best way to do this? Louis