R, 43 bytes
function(s)grep("[^aeiouy]{2}",paste(s,""))
A port of Arnauld's JavaScript answer; returns 1 for weak words and integer(0) for strong onesones; it appends a (space) to the end of the string.
This is actually vectorized; with a vector of strings, it returns the indices (1-based) of the weak words.
R, 43 bytes
function(s)grep("[^aeiouy]{2}",paste(s,""))
A port of Arnauld's JavaScript answer; returns 1 for weak words and integer(0) for strong ones
R, 43 bytes
function(s)grep("[^aeiouy]{2}",paste(s,""))
A port of Arnauld's JavaScript answer; returns 1 for weak words and integer(0) for strong ones; it appends a (space) to the end of the string.
This is actually vectorized; with a vector of strings, it returns the indices (1-based) of the weak words.