Agility Kata “Word Count V”
Wörter mit Bindestrich werden nicht mehr getrennt berechnet, z.B. „Humpty-Dumpty“ wird als 1 Wort statt 2 gewertet.
$ wordcount Enter text: Humpty-Dumpty sat on a wall. Humpty-Dumpty had a great fall. Number of words: 8, unique: 7 $