Ruby code will read in text supplied in a separate file, analyze it for various patterns and statistics, and print out the results for the user.