Last active
August 18, 2022 17:16
-
-
Save patch/5759673 to your computer and use it in GitHub Desktop.
3-letter words not in Unicode character names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @mjdominus Interesting puzzle: Find a three-letter English word that does not occur as a substring of the name of any Unicode character. | |
# https://twitter.com/mjdominus/status/344513834205184001 | |
$ wget http://www.yak.net/kablooey/scrabble/3letterwords.html | |
$ wget http://www.unicode.org/Public/UCD/latest/ucd/NamesList.txt | |
$ wget http://www.unicode.org/Public/UCD/latest/ucd/NameAliases.txt | |
$ wget http://www.itscj.ipsj.or.jp/sc2/open/02n4268/HangulSy.txt | |
perl -MFile::Slurp -E'$d = join "", map {read_file "$_.txt"} qw/NamesList NameAliases HangulSy/; say lc join " ", grep {$_ && $d !~ /$_/} map {m|<B>(.{3})</B>|; $1} <>' 3letterwords.html | |
adz awl azo biz brr buy caw coy coz cue cwm daw due dui eau efs elk ems fag fas few fey fez fib fid fiz fob foe foh foy fry fub fud fug gey gnu goy guv guy gym hew hmm ids ivy jaw jew jow kea kif luv maw mew mho mow myc naw oho ohs ooh orb oxo oxy pew pht pry qis raj reb rye sew sky sly spy sri tew toy tsk tui vau vaw veg vig voe vug vum why wiz wog wok wos wot wow wud wye yow zas zek zuz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
e