Using the Frontier suite: suites.netDictionary, and a free on-line dictionary at Princeton University, I added a short script to the navigation bar of each page on our intranet. Just type in any word, and our DCE Server will look up its definition. A window will pop up that has the definition of your word. Thanks to Dave Winer at Scripting News for the idea and the netDictionary suite. Thanks also to WordNet hunchback of notre dame ii the online , which is the provider of the definitions.

I’ve done a couple modifications to further refine the definitions (i.e. pulling out nouns, verbs, etc.) Look below for the lookup script:

Update (7/10/00): free cujo It seems that WordNet turned off cgi-based access to their engine. I had to modify the script to use a Netscape browser as the agent that makes the request.

download tracey fragments the free

 download picnic divx on lookup (word) {
	«Modified 2/22/99, Greg Rushton. Added the functionality of finding
		«words of multiple classes (nouns, verbs, adjectives, etc.)
	netDictionary.init ();
	local (adrcache = @user.netdictionary.cache.[string.lower (word)]);
	if defined (adrcache^) {
		return (adrcache^)};
	with user.netdictionary {
		local (s = string.replace (cgiPath, "<<word&gt:&gt:", word));
		local (adrheaders = nil);
		if defined (headers) {
			adrheaders = @headers};
		«local (result = tcp.httpClient (method:"POST", server:server, port:port, adrHdrTable: adrheaders, path:s))
		local (url = server + cgiPath + s);
		system.verbs.apps.Netscape.bringToFront();
		local (result = system.verbs.apps.Netscape.getSource(url));
		s = string.httpResultSplit (result);
		s = string.replaceall (s, "\n", "\r\n");
		local {
			pat1 = "WordNet.<BR&gt:<BR&gt:\r\n";
			pat2 = "<FORM ACTION";
			definitions = "";
			adjective = "<B&gt:adjective</B&gt:";
			noun = "<B&gt:noun</B&gt:";
			verb = "<B&gt:verb</B&gt:";
			adverb = "<B&gt:adverb</B&gt:"};
		while (s contains pat1) {
			local {
				ix = string.patternmatch (pat1, s);
				xi = string.patternmatch (pat2, s);
				start = ix + sizeof (pat1);
				count = xi - 1 - start;
				wordType = string.mid (s, 1, ix)};
			if (wordType contains noun) {
				definitions = definitions + "<br&gt:<B&gt:Noun:</B&gt:<br&gt:"};
			if (wordType contains verb) {
				definitions = definitions + "<br&gt:<B&gt:Verb:</B&gt:<br&gt:"};
			if (wordType contains adjective) {
				definitions = definitions + "<br&gt:<B&gt:Adjective:</B&gt:<br&gt:"};
			if (wordType contains adverb) {
				definitions = definitions + "<br&gt:<B&gt:Adverb:</B&gt:<br&gt:"};
			definitions = definitions + string.mid (s, start, count);
			s = string.mid (s, xi + sizeof (pat2), infinity)};
		s = definitions;
		s = string.replaceAll (s, "<FONT COLOR=Red&gt:<B&gt:", "");
		s = string.replaceAll (s, "</B&gt:</FONT&gt:", "");
		s = string.replaceAll (s, "\r\n", "<p&gt:\r\n");
		adrcache^ = s;
		return (s)}};
lookup("Test")


<– The Definition Search Function free puffy chair the movie download | Get Word Definition FCGI –>

Leave a Reply