Jump to content

Textonyms: Difference between revisions

m
(Added Io entry)
Line 1,889:
<lang zkl>URL:="http://www.puzzlers.org/pub/wordlists/unixdict.txt";
var ZC=Import("zklCurl");
var keypad=Dictionary(
var keypad=D("a",2,"b",2,"c",2, "d",3,"e",3,"f",3, "g",4,"h",4,"i",4,
"ja",52,"kb",52,"lc",52, "md",63,"ne",63,"of",63, "p",7,"qg",74,"rh",74,"si",74,
"j",5,"k",5,"l",5, "tm",86,"un",86,"vo",86, "wp",97,"xq",97,"yr",97,"zs",9);7,
var keypad=D( "at",28,"bu",28,"cv",28, "dw",39,"ex",39,"fy",39, "gz",4,"h",4,"i",4,9);
//fcn numerate(word){ word.toLower().apply(keypad.find.fp1("")) }
fcn numerate(word){ word.toLower().apply(keypad.get) } //-->textonym or error
Line 1,900 ⟶ 1,901:
println("Read %d words from %s".fmt(words.len(1),URL));
 
wcnt:=DDictionary();
foreach word in (words.walker(11)){ // iterate over stripped lines
w2n:=try{ numerate(word) }catch(NotFoundError){ continue };
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.