in reply to A Word Game (Update 3)

Thanks for this!

I was unfortunate enough to randomly get a non-word from my /usr/share/dict/words file:

fldxt
I added a grep to only allow words with a vowel (or "y"):
@dict{ map uc, grep /[aeiouy]/, map /^([a-z]{5})$/, <$FH> } = ();
I found this out by adding an option to print the current word at the end:
print "\n Answer = $curr_word\n" if @ARGV;

Replies are listed 'Best First'.
Re^2: A Word Game
by choroba (Cardinal) on Feb 09, 2022 at 21:28 UTC
    > non-word

    It seems it is a word: fluid extract (used in Amercian prescriptions).

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re^2: A Word Game
by LanX (Saint) on Feb 09, 2022 at 20:42 UTC
    > I added a grep to only allow words with a vowel (or "y"):

    since "j" is a variant of "i", I wouldn't be surprised if it was occasionally used as a vowel

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      Not in English.

      What we do see is the use of 'j' in place of 'i' when that 'i' is functioning more like a consontantal 'y'. For example, eject from Latin eiectus

        Yes, but English tends to incorporate loanwords into its dictionary without adjusting the orthography.

        edit

        tho I doubt there is an example where it's the only vowel.

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery

      "since "j" is a variant of "i", I wouldn't be surprised if it was occasionally used as a vowel"

      The word "fjord" springs to mind. I expect there are others.

      — Ken

        I'd call that a consonant.

          A reply falls below the community's threshold of quality. You may see it by logging in.