Talk:Count how many vowels and consonants occur in a string

From Rosetta Code
Revision as of 14:46, 26 July 2021 by Thundergnat (talk | contribs) (→‎task wording: Remove stupid indenting so conversations can be followed. Add comment)

Trivial task, but apparently not trivial enough

I was going to recommend this task for deletion as it is incredibly trivial and the operation (identifying whether a character is a vowel or consonant) is covered in a multitude of other tasks. Maybe I am too hasty though, as the task author can't even figure out how to do it correctly. His entry, (the Ring entry) works for the string he used, but will also count [, ], \, _, and ` as consonants. And I don't even program in, or know Ring. Maybe I am guilty of assuming competence that just isn't there. Sigh. --Thundergnat (talk) 13:33, 26 July 2021 (UTC)

Although his code is certainly wrong, I can't understand why it hasn't given the correct answer for the string he's testing (19 consonants). The only characters it contains which aren't vowels and consonants are space and double-quote and, whilst there are 5 of these, they both have ASCII codes below 65 and so should be excluded from the consonant count. Very strange. --PureFox (talk) 14:03, 26 July 2021 (UTC)


task wording

I think the task's wording should be expanded a bit   (if it is to be kept).

  •   Check   maybe should be changed to   Count.
  •   If a count is desired,   then the task should request the  showing  of the counts.
  •   An example   (or better yet, examples)   of what can/should be used so everybody's solution shows the same count(s).
  •   Maybe it should be specified that only   Latin   letters are to be counted,   and no letters with diacritical marks are to be considered   (or maybe they should).
  •   Should there be a count showing   U & u   separately?     Or show both,   a sum of the two cases (upper + lower),   and a count that shows the individual cases.

-- Gerard Schildberger (talk) 14:05, 26 July 2021 (UTC)

Is U a different letter than u? It's certainly a different glyph, but is not a different letter. All those other open questions? That is my point completely. Much like nearly every task Calmosoft has ever entered. This is vague, open to interpretation, poorly worded, poorly named and poorly supported. At this point I am all for banning him completely. He causes lots of unnecessary work and conflict; persists in his incompetence, and seems to be unwilling to learn from his mistakes. --Thundergnat (talk) 14:46, 26 July 2021 (UTC)