On Tue 20 May 2014 at 04:22:17PM -0700, Ben Wolfson wrote: > There are three vowels in "naïve", not two.
And watch out for those un-normalizable combining character
combinations!
Also, another one-liner:
(defn ascii-vowel-count [s] (count (re-seq #"(?i)[aeiou]" s)))
Doing this in a multilingual setting, as Ben Wolfson points out, would
properly require a second parameter: the set of acceptable "vowels" in a
given Language/Locale/Script (which are all different things).
guns
pgpCjnJtOko9u.pgp
Description: PGP signature
