Agility Kata "Word Count VI"

The average word length of the counted words is calculated and output, e.g.

$ wordcount sometext.txt
Number of words: 14, unique: 10; average word length: 5.63 characters
en_USEnglish

Previous iteration edited?

You are currently opening an agility kata. Have you already worked on the previous part?

Please only open this exercise if you have already completed the previous parts. The idea of the Agility Katas is to implement additional requirements on existing code. If you look at all the requirements first, the effect of the Agility Katas will be lost.

Inkremente