Subject: possible additions to DICTIONARY protocol

From: gmcathey
Date: Tue, 20 Jan 87 16:30:51 -0500

Here are some new commands that I would like to add to the
existing protocol.  Please send comments to info-dictionary.

Command: PART_OF_SPEECH<space>word<NL>

The PART_OF_SPEECH command asks only for the parts
of speech of a word from the dictionary.  The possible
responses are:

	PART_OF_SPEECH<NL>
	<part of speech><NL>
	<part of speech><NL>
	      . . .
	<part of speech><NL>
	<EOF>

Following the PART_OF_SPEECH response are the different
parts of speech of the word.

If the word contains wildcard characters, then a
WILD response will be returned, just like for the
DEFINE command.

If the word is not found in the dictionary, then a 
SPELL response will be returned, just like for the 
DEFINE command.

________________________________________________________________

Command: PRONUNCIATION<space>word<NL>

The PRONUNCIATION command asks only for the pronunciation of 
a word from the dictionary.  The possible responses are:

	PRONUNCIATION<NL>
	<pronunciation>
	<EOF>

Following the PRONUNCIATION response is the pronunciation
of the word.

If the word contains wildcard characters, then a
WILD response will be returned, just like for the
DEFINE command.

If the word is not found in the dictionary, then a 
SPELL response will be returned, just like for the 
DEFINE command.

__________________________________________________________________

Command: RAW_MODE<NL>

The RAW_MODE command requires the server to send the 
data in its "raw" form; that is, just as it exists in the
database file.

The response is:

	RAW_MODE_OK<NL>

__________________________________________________________________

Command: FORMAT_MODE<NL>

The FORMAT_MODE command requires the server to parse
(make it human readable) the data before sending the 
information.

The response is:

	FORMAT_MODE_OK<NL>

___________________________________________________________________

Command: MODE<NL>

The MODE command requests the server to tell the client
which mode the server is in.

The possible responses are:

	FORMAT_MODE_OK<NL>

This response indicates the server in the format mode.

	RAW_MODE_OK<NL>

This response indicate the server in the raw mode.

___________________________________________________________________

yours,

george cathey