Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: A Word Game

by toolic (Bishop)
on Feb 09, 2022 at 20:16 UTC ( #11141288=note: print w/replies, xml ) Need Help??


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 (Archbishop) 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 (Sage) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11141288]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2022-08-19 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?