Dictionary
Heres my functions

, while playing with this script you'll find many funny definitions. LOL
Quote:
Requesting Definition of boobies:
- small tropical gannet having a bright bill or bright feet or both
- an ignorant or foolish person
|
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!");
}