Skip to content

A visual guide to assignment #2

Kalman Hazins edited this page Feb 18, 2016 · 13 revisions
Line Number Line Content Words With Highest Frequency Maximum Count of Words
 1      | This is a really really really cool experiment really        | "really"                       |               4                
 2      | Cute little experiment                                       | "cute", "little", "experiment" |               1                
 3      | Will it work maybe it will work do you think it will it will | "it", "will" *                 |               4                
  • Line 3 => "will" is repeated 4 times, because case sensitivity doesn't matter for the word count (the first "Will" becomes "will"); and "work" appears only two times, so it is not among the most repeated words.
  1. highest_wf_count => "Maximum Count of Words"
  2. highest_wf_words => an array of "Words With Highest Frequency"
  3. highest_count_across_lines => the highest number among "Maximum Count of Words"
  4. highest_count_words_across_lines => an array of LineAnalyzer objects that have highest_wf_count attribute equal to highest_count_across_lines (see the full explanation)
Clone this wiki locally