perl -lpe 's/([^\Waeiou]*)(\w+)/$2.($1||"w")."ay"/ge'
where is the trash?
erewhay isway ethay ashtray?