I guess we should just load those word combinations generated, with some dictionairy script (it's around here somewhere).
*swings magic wand to gather post*
Quote:
Originally Posted by fowlplay4
Dictionary
Heres my functions , while playing with this script you'll find many funny definitions. LOL
PHP Code:
function Define(word) { temp.link = "http://www.onelook.com/?w=" @ word @ "&ls=a"; echo("Requesting Definition of" SPC word @ ":"); temp.req = requesturl(temp.link); this.catchevent(temp.req,"onReceiveData","onDefine"); } function onDefine(obj) { temp.toks = obj.fulldata.tokenize("\n"); for(b: temp.toks) { if (b == "<LI>") continue; if (b.starts("<LI>") > 0) { temp.ntoks = b.tokenize(";"); temp.npos = temp.ntoks[2].pos("("); temp.defin = temp.ntoks[2].substring(0,temp.npos); if (temp.defin.length() > 1) echo(" - " @ temp.defin); temp.msg++; } } if (temp.msg == 0) echo("No Definitions Found!"); }
|
Perhaps change that into returning 'temp.msg > 0'. Could need some better dictionary maybe.