Find words with alternating vowels and consonants: Difference between revisions

m
→‎{{header|AppleScript}}: Minor edit to preamble.
m (→‎{{header|AppleScript}}: Idiomatic: Relabelled. Added preamble.)
m (→‎{{header|AppleScript}}: Minor edit to preamble.)
Line 88:
=={{header|AppleScript}}==
===Idiomatic===
The handler here is case- and diacritical-insensitive and has an option to treat "y" as a vowel. With the text file located on the computer's startup disk, it performs the set task in just under a third of a second on my machine, which is probably good enough for such a silly task. However, the "Functional" script beneath it, although going to great lengths (!) to disguise how it works and how to use it (the text file has to be in the same folder as the compiled script file), and performing a strictly lower-case search (easily fixed by starting the regex with "(?i)"), and assuming the text file has just one word per linefeed-delimited line — is just over ten times as fast, including additional time spent formatting the output for display!
 
<lang applescript>(*
557

edits