Count how many vowels and consonants occur in a string: Difference between revisions

Content added Content deleted
(Added 11l)
Line 13: Line 13:
<lang 11l>F isvowel(c)
<lang 11l>F isvowel(c)
‘ true if c is an English vowel (ignore y) ’
‘ true if c is an English vowel (ignore y) ’
R c C [‘a’, ‘e’, ‘i’, ‘o’, ‘u’, ‘A’, ‘E’, ‘I’, ‘O’, ‘U’]
R c C (‘a’, ‘e’, ‘i’, ‘o’, ‘u’, ‘A’, ‘E’, ‘I’, ‘O’, ‘U’)


F isletter(c)
F isletter(c)
‘ true if in English standard alphabet ’
‘ true if in English standard alphabet ’
R c C ‘a’..‘z’ | c C ‘A’..‘Z’
R c C (‘a’..‘z’, ‘A’..‘Z’)


F isconsonant(c)
F isconsonant(c)