You can clone with
HTTPS or Subversion.
Extracted format_output method
Consistent use of 'words' instead of 'strings'
Use map to extract phrases
Renamed number_of_words to phrase_length
Don't bother collecting more phrases once we have enough
Generalise 1..n word loop
Use extract_phrases method directly
Extract general method to find n-word phrases
Might as well use array size directly
Separate methods for two- and three-word phrases
That looked like premature optimisation
No need to calculate single words when we already have them
rename strings to words
Default split is fine
Simplified building of result string
Fixed typos. Tests pass.
First attempt at porting to Ruby
No commit message