home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_n_r / draft-rfced-info-faith-01.txt < prev    next >
Text File  |  1997-07-28  |  50KB  |  1,569 lines

  1.  
  2.  
  3.  
  4. INTERNET-DRAFT            EXPIRES JANUARY 1998            INTERNET-DRAFT
  5. Network Working Group                                           R. Faith
  6. INTERNET-DRAFT                            U. North Carolina, Chapel Hill
  7. Category: Informational                                        B. Martin
  8.                                                      Miranda Productions
  9.                                                             26 July 1997
  10.  
  11.  
  12.                       A Dictionary Server Protocol
  13.                     <draft-rfced-info-faith-01.txt>
  14.  
  15.  
  16. Status of this Memo
  17.  
  18.      This document is an Internet-Draft.  Internet-Drafts are working
  19.      documents of the Internet Engineering Task Force (IETF), its areas,
  20.      and its working groups.  Note that other groups may also distribute
  21.      working documents as Internet-Drafts.
  22.  
  23.      Internet-Drafts are draft documents valid for a maximum of six
  24.      months and may be updated, replaced, or obsoleted by other docu-
  25.      ments at any time.  It is inappropriate to use Internet- Drafts as
  26.      reference material or to cite them other than as ``work in
  27.      progress.''
  28.  
  29.      To learn the current status of any Internet-Draft, please check the
  30.      ``1id-abstracts.txt'' listing contained in the Internet- Drafts
  31.      Shadow Directories on ftp.is.co.za (Africa), nic.nordu.net
  32.      (Europe), munnari.oz.au (Pacific Rim), ds.internic.net (US East
  33.      Coast), or ftp.isi.edu (US West Coast).
  34.  
  35.  
  36. Authors' Note
  37.  
  38.      [[This document has not yet been submitted or accepted as an offi-
  39.      cial RFC.  Two independent server implementations have been com-
  40.      pleted, one at dict://dict.miranda.org:2628 and the other at
  41.      dict://proteus.cs.unc.edu:2628.  This note should be deleted when
  42.      this memo is assigned an RFC number.]]
  43.  
  44.  
  45. Abstract
  46.  
  47.      The Dictionary Server Protocol (DICT) is a TCP transaction based
  48.      query/response protocol that allows a client to access dictionary
  49.      definitions from a set of natural language dictionary databases.
  50.  
  51.  
  52.  
  53.  
  54.  
  55. Faith, Martin                                                   [Page 1]
  56.  
  57. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  58.  
  59.  
  60. 1.  Introduction
  61.  
  62.      For many years, the Internet community has relied on the "webster"
  63.      protocol for access to natural language definitions.  The webster
  64.      protocol supports access to a single dictionary and (optionally) to
  65.      a single thesaurus.  In recent years, the number of publicly avail-
  66.      able webster servers on the Internet has dramatically decreased.
  67.  
  68.      Fortunately, several freely-distributable dictionaries and lexicons
  69.      have recently become available on the Internet.  However, these
  70.      freely-distributable databases are not accessible via a uniform
  71.      interface, and are not accessible from a single site.  They are
  72.      often small and incomplete individually, but would collectively
  73.      provide an interesting and useful database of English words.  Exam-
  74.      ples include the Jargon file [JARGON], the WordNet database [WORD-
  75.      NET], MICRA's version of the 1913 Webster's Revised Unabridged Dic-
  76.      tionary [WEB1913], and the Free Online Dictionary of Computing
  77.      [FOLDOC].  Translating and non-English dictionaries are also becom-
  78.      ing available (for example, the FOLDOC dictionary is being trans-
  79.      lated into Spanish).
  80.  
  81.      The webster protocol is not suitable for providing access to a
  82.      large number of separate dictionary databases, and extensions to
  83.      the current webster protocol were not felt to be a clean solution
  84.      to the dictionary database problem.
  85.  
  86.      The DICT protocol is designed to provide access to multiple
  87.      databases.  Word definitions can be requested, the word index can
  88.      be searched (using an easily extended set of algorithms), informa-
  89.      tion about the server can be provided (e.g., which index search
  90.      strategies are supported, or which databases are available), and
  91.      information about a database can be provided (e.g., copyright,
  92.      citation, or distribution information).  Further, the DICT protocol
  93.      has hooks that can be used to restrict access to some or all of the
  94.      databases.
  95.  
  96.  
  97. 1.1.  Requirements
  98.  
  99.      In this document, we adopt the convention discussed in Section
  100.      1.3.2 of [RFC1122] of using the capitalized words MUST, REQUIRED,
  101.      SHOULD, RECOMMENDED, MAY, and OPTIONAL to define the significance
  102.      of each particular requirement specified in this document.
  103.  
  104.      In brief: "MUST" (or "REQUIRED") means that the item is an absolute
  105.      requirement of the specification; "SHOULD" (or "RECOMMENDED") means
  106.      there may exist valid reasons for ignoring this item, but the full
  107.      implications should be understood before doing so; and "MAY" (or
  108.  
  109.  
  110.  
  111. Faith, Martin                                                   [Page 2]
  112.  
  113. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  114.  
  115.  
  116.      "OPTIONAL") means that his item is optional, and may be omitted
  117.      without careful consideration.
  118.  
  119.  
  120. 2.  Protocol Overview
  121.  
  122.  
  123. 2.1.  Link Level
  124.  
  125.      The DICT protocol assumes a reliable data stream such as provided
  126.      by TCP.  When TCP is used, a DICT server listens on port 2628 (typ-
  127.      ically, webster servers listened on port 2627).
  128.  
  129.      This server is only an interface between programs and the dictio-
  130.      nary databases.  It does not perform any user interaction or pre-
  131.      sentation-level functions.
  132.  
  133.  
  134. 2.2.  Lexical Tokens
  135.  
  136.      Commands and replies are composed of characters from the ISO-8859-1
  137.      character set [ISO].  More specifically, using the grammar conven-
  138.      tions from [RFC822]:
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167. Faith, Martin                                                   [Page 3]
  168.  
  169. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  170.  
  171.  
  172.                                                       ; (  Octal, Decimal.)
  173.           CHAR        =  <any ASCII character>        ; (  0-177,  0.-127.)
  174.           CTL         =  <any ASCII control           ; (  0- 37,  0.- 31.)
  175.                           character and DEL>          ; (    177,     127.)
  176.           CR          =  <ASCII CR, carriage return>  ; (     15,      13.)
  177.           LF          =  <ASCII LF, linefeed>         ; (     12,      10.)
  178.           SPACE       =  <ASCII SP, space>            ; (     40,      32.)
  179.           HTAB        =  <ASCII HT, horizontal-tab>   ; (     11,       9.)
  180.           <">         =  <ASCII quote mark>           ; (     42,      34.)
  181.           <'>         =  <ASCII single quote mark>    ; (     47,      39.)
  182.           CRLF        =  CR LF
  183.           WS          =  1*(SPACE / HTAB)
  184.  
  185.           dqstring    =  <"> *(dqtext/quoted-pair) <">
  186.           dqtext      =  <any CHAR except <">, "\", and CTLs>
  187.           sqstring    =  <'> *(dqtext/quoted-pair) <'>
  188.           sqtext      =  <any CHAR except <'>, "\", and CTLs>
  189.           quoted-pair =  "\" CHAR
  190.  
  191.           atom        =  1*<any CHAR except SPACE, CTLs, <'>, <">, and "\">
  192.           string      =  *<dqstring / sqstring / quoted-pair>
  193.           word        =  *<atom / string>
  194.           description =  *<word / WS>
  195.           text        =  *<word / WS>
  196.  
  197.  
  198.  
  199. 2.3.  Commands
  200.  
  201.      Commands consist of a command word followed by zero or more parame-
  202.      ters.  Commands with parameters must separate the parameters from
  203.      each other and from the command by one or more space or tab charac-
  204.      ters.  Command lines must be complete with all required parameters,
  205.      and may not contain more than one command.
  206.  
  207.      Each command line must be terminated by a CRLF.
  208.  
  209.      The grammar for commands is:
  210.  
  211.  
  212.           command     = cmd-word *<WS cmd-param>
  213.           cmd-word    = atom
  214.           cmd-param   = database / strategy / word
  215.           database    = atom
  216.           strategy    = atom
  217.  
  218.  
  219.      Commands are not case sensitive.
  220.  
  221.  
  222.  
  223. Faith, Martin                                                   [Page 4]
  224.  
  225. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  226.  
  227.  
  228.      Command lines MUST NOT exceed 1024 characters in length, counting
  229.      all characters including spaces, separators, punctuation, and the
  230.      trailing CRLF.  There is no provision for the continuation of com-
  231.      mand lines.
  232.  
  233.  
  234. 2.4.  Responses
  235.  
  236.      Responses are of two kinds, status and textual.
  237.  
  238.  
  239. 2.4.1.  Status Responses
  240.  
  241.      Status responses indicate the server's response to the last command
  242.      received from the client.
  243.  
  244.      Status response lines begin with a 3 digit numeric code which is
  245.      sufficient to distinguish all responses.  Some of these may herald
  246.      the subsequent transmission of text.
  247.  
  248.      The first digit of the response broadly indicates the success,
  249.      failure, or progress of the previous command (based generally on
  250.      [RFC640,RFC821]):
  251.  
  252.  
  253.           1yz - Positive Preliminary reply
  254.           2yz - Positive Completion reply
  255.           3yz - Positive Intermediate reply (not used by DICT)
  256.           4yz - Transient Negative Completion reply
  257.           5yz - Permanent Negative Completion reply
  258.  
  259.  
  260.      The next digit in the code indicates the response category:
  261.  
  262.  
  263.           x0z - Syntax
  264.           x1z - Information (e.g., help)
  265.           x2z - Connections
  266.           x3z - Authentication
  267.           x4z - Unspecified as yet
  268.           x5z - DICT System (These replies indicate the status of the
  269.                 receiver mail system vis-a-vis the requested transfer
  270.                 or other DICT system action.)
  271.           x8z - Nonstandard (private implementation) extensions
  272.  
  273.  
  274.      The exact response codes that should be expected from each command
  275.      are detailed in the description of that command.
  276.  
  277.  
  278.  
  279. Faith, Martin                                                   [Page 5]
  280.  
  281. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  282.  
  283.  
  284.      Certain status responses contain parameters such as numbers and
  285.      strings.  The number and type of such parameters is fixed for each
  286.      response code to simplify interpretation of the response.  Other
  287.      status responses do not require specific text identifiers.  Parame-
  288.      ter requirements are detailed in the description of relevant com-
  289.      mands.  Except for specifically detailed parameters, the text fol-
  290.      lowing response codes is server-dependent.
  291.  
  292.      Parameters are separated from the numeric response code and from
  293.      each other by a single space.  All numeric parameters are decimal,
  294.      and may have leading zeros.  All string parameters MUST conform to
  295.      the "atom" or "dqstring" grammar productions.
  296.  
  297.      If no parameters are present, and the server implementation pro-
  298.      vides no implementation-specific text, then there MAY or MAY NOT be
  299.      a space after the response code.
  300.  
  301.      Response codes not specified in this standard may be used for any
  302.      installation-specific additional commands also not specified.
  303.      These should be chosen to fit the pattern of x8z specified above.
  304.      The use of unspecified response codes for standard commands is pro-
  305.      hibited.
  306.  
  307.  
  308. 2.4.2.  General Status Responses
  309.  
  310.      In response to every command, the following general status
  311.      responses are possible:
  312.  
  313.  
  314.           500 Syntax error, command not recognized
  315.           501 Syntax error, illegal parameters
  316.           502 Command not implemented
  317.           503 Command parameter not implemented
  318.           420 Server temporarily unavailable
  319.           421 Server shutting down at operator request
  320.  
  321.  
  322.  
  323. 2.4.3.  Text Responses
  324.  
  325.      Before text is sent a numeric status response line, using a 1yz
  326.      code, will be sent indicating text will follow. Text is sent as a
  327.      series of successive lines of textual matter, each terminated with
  328.      a CRLF.  A single line containing only a period (decimal code 46,
  329.      ".") is sent to indicate the end of the text (i.e., the server will
  330.      send a CRLF at the end of the last line of text, a period, and
  331.      another CRLF).
  332.  
  333.  
  334.  
  335. Faith, Martin                                                   [Page 6]
  336.  
  337. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  338.  
  339.  
  340.      If a line of original text contained a period as the first charac-
  341.      ter of the line, that first period is doubled by the DICT server.
  342.      Therefore, the client must examine the first character of each line
  343.      received.  Those that begin with two periods must have those two
  344.      periods collapsed into one period.  Those that contain only a sin-
  345.      gle period followed by a CRLF indicate the end of the text
  346.      response.
  347.  
  348.      Following a text response, a 2yz response code will be sent.
  349.  
  350.      Text lines MUST NOT exceed 1024 characters in length, counting all
  351.      characters including spaces, separators, punctuation, the extra
  352.      initial period (if needed), and the trailing CRLF.
  353.  
  354.      It is recommended that text use the US-ASCII [ASCII] or ISO-8859-1
  355.      [ISO] character sets, although it is currently beyond the scope of
  356.      this standard to specify encoding for text.  In the future, after
  357.      significant experience with large databases in various languages
  358.      has been gained, and after evaluating the need for character set
  359.      and other encodings (e.g., compressed or BASE64 encoding), standard
  360.      extensions to this protocol should be proposed.  In the mean time,
  361.      private extensions should be used to explore the parameter space to
  362.      determine how best to implement these extensions.
  363.  
  364.  
  365.  
  366. 3.  Command and Response Details
  367.  
  368.      Below, each DICT command and appropriate responses are detailed.
  369.      Each command is shown in upper case for clarity, but the DICT
  370.      server is case-insensitive.
  371.  
  372.      Except for the AUTH command, every command described in this sec-
  373.      tion MUST be implemented by all DICT servers.
  374.  
  375.  
  376. 3.1.  Initial Connection
  377.  
  378.      When a client initially connects to a DICT server, a code 220 is
  379.      sent if the client's IP is allowed to connect:
  380.  
  381.  
  382.           220 text capabilities msg-id
  383.  
  384.  
  385.      The code 220 is a banner, usually containing host name and DICT
  386.      server version information.
  387.  
  388.  
  389.  
  390.  
  391. Faith, Martin                                                   [Page 7]
  392.  
  393. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  394.  
  395.  
  396.      The second-to-last sequence of characters in the banner is the
  397.      optional capabilities string, which will allow servers to declare
  398.      support for extensions to the DICT protocol.  The capabilities
  399.      string is defined below:
  400.  
  401.  
  402.           capabilities =  ["<" msg-atom *("." msg-atom) ">"]
  403.           msg-atom     =  1*<any CHAR except SPACE, CTLs,
  404.                              "<", ">", ".", and "\">
  405.  
  406.  
  407.      Individual capabilities are described by a single msg-atom.  For
  408.      example, the string <html.gzip> might be used to describe a server
  409.      that supports extensions which allow HTML or compressed output.
  410.      Capability names beginning with "x" or "X" are reserved for experi-
  411.      mental extensions, and SHOULD NOT be defined in any future DICT
  412.      protocol specification.
  413.  
  414.      The last sequence of characters in the banner is a msg-id, similar
  415.      to the format specified in [RFC822].  The simplified description is
  416.      given below:
  417.  
  418.  
  419.           msg-id       =  "<" spec ">"            ; Unique message id
  420.           spec         =  local-part "@" domain
  421.           local-part   =  msg-atom *("." msg-atom)
  422.           domain       =  msg-atom *("." msg-atom)
  423.  
  424.  
  425.      Note that, in contrast to [RFC822], spaces and quoted pairs are not
  426.      allowed in the msg-id.  This restriction makes the msg-id much eas-
  427.      ier for the client to locate and parse but does not significantly
  428.      decrease any security benefits, since the msg-id may be arbitrarily
  429.      long (as bounded by the response length limits set forth elsewhere
  430.      in this document).
  431.  
  432.      Note also that the open and close brackets are part of the msg-id
  433.      and should be included in the string that is used to compute the
  434.      MD5 checksum.
  435.  
  436.      This message id will be used by the client when formulating the
  437.      authentication string used in the AUTH command.
  438.  
  439.      If the client's IP is not allowed to connect, then a code 530 is
  440.      sent instead:
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447. Faith, Martin                                                   [Page 8]
  448.  
  449. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  450.  
  451.  
  452.           530 Access denied
  453.  
  454.  
  455.      Transient failure responses are also possible:
  456.  
  457.  
  458.           420 Server temporarily unavailable
  459.           421 Server shutting down at operator request
  460.  
  461.  
  462.      For example, response code 420 should be used if the server cannot
  463.      currently fork a server process (or cannot currently obtain other
  464.      resources required to proceed with a usable connection), but
  465.      expects to be able to fork or obtain these resources in the near
  466.      future.
  467.  
  468.      Response code 421 should be used when the server has been shut down
  469.      at operator request, or when conditions indicate that the ability
  470.      to service more requests in the near future will be impossible.
  471.      This may be used to allow a graceful operator-mediated temporary
  472.      shutdown of a server, or to indicate that a well known server has
  473.      been permanently removed from service (in which case, the text mes-
  474.      sage might provide more information).
  475.  
  476.  
  477. 3.2.  The DEFINE Command
  478.  
  479.      DEFINE database word
  480.  
  481.  
  482. 3.2.1.  Description
  483.  
  484.      This command will look up the specified word in the specified
  485.      database.  All DICT servers MUST implement this command.
  486.  
  487.      If the database name is specified with an exclamation point (deci-
  488.      mal code 33, "!"), then all of the databases will be searched until
  489.      a match is found, and all matches in that database will be dis-
  490.      played.  If the database name is specified with a star (decimal
  491.      code 42, "*"), then all of the matches in all available databases
  492.      will be displayed.  In both of these special cases, the databases
  493.      will be searched in the same order as that printed by the "SHOW DB"
  494.      command.
  495.  
  496.      If the word was not found, then status code 552 is sent.
  497.  
  498.      If the word was found, then status code 150 is sent, indicating
  499.      that one or more definitions follow.
  500.  
  501.  
  502.  
  503. Faith, Martin                                                   [Page 9]
  504.  
  505. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  506.  
  507.  
  508.      For each definition, status code 151 is sent, followed by the tex-
  509.      tual body of the definition.  The first three space-delimited
  510.      parameters following status code 151 give the word retrieved, the
  511.      name of the database (which is the same as the first column of the
  512.      SHOW DB command), and a short description for the database (which
  513.      is the same as the second column of the SHOW DB command).  The
  514.      short name is suitable for printing as:
  515.  
  516.  
  517.           From name:
  518.  
  519.  
  520.      before the definition is printed.  This provides source information
  521.      for the user.
  522.  
  523.      The textual body of each definition is terminated with a CRLF
  524.      period CRLF sequence.
  525.  
  526.      After all of the definitions have been sent, status code 250 is
  527.      sent.  This command can provide optional timing information (which
  528.      is server dependent and is not intended to be parsable by the
  529.      client).  This additional information is useful when debugging and
  530.      tuning the server.
  531.  
  532.  
  533. 3.2.2.  Responses
  534.  
  535.  
  536.           550 Invalid database, use "SHOW DB" for list of databases
  537.           552 No match
  538.           150 n definitions retrieved - definitions follow
  539.           151 word database name - text follows
  540.           250 ok (optional timing information here)
  541.  
  542.  
  543.      Response codes 150 and 151 require special parameters as part of
  544.      their text.  The client can use these parameters to display infor-
  545.      mation on the user's terminal.
  546.  
  547.      For code 150, parameters 1 indicates the number of definitions
  548.      retrieved.
  549.  
  550.      For code 151, parameter 1 is the word retrieved, parameter 2 is the
  551.      database name (the first name as shown by "SHOW DB") from which the
  552.      definition has been retrieved, and parameter 3 is the the short
  553.      database description (the second column of the "SHOW DB" command).
  554.  
  555.  
  556.  
  557.  
  558.  
  559. Faith, Martin                                                  [Page 10]
  560.  
  561. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  562.  
  563.  
  564. 3.2.3.  A Note on Virtual Databases
  565.  
  566.      The ability to search all of the provided databases using a single
  567.      command is given using the special "*" and "!" databases.
  568.  
  569.      However, sometimes, a client may want to search over some but not
  570.      all of the databases that a particular server provides.  One alter-
  571.      native is for the client to use the SHOW DB command to obtain a
  572.      list of databases and descriptions, and then (perhaps with the help
  573.      of a human), select a subset of these databases for an interative
  574.      search.  Once this selection has been done once, the results can be
  575.      saved, for example, in a client configuration file.
  576.  
  577.      Another alternative is for the server to provide "virtual"
  578.      databases which merge several of the regular databases into one.
  579.      For example, a virtual database may be provided which includes all
  580.      of the translating dictionaries, but which does not include regular
  581.      dictionaries or thesauri.  The special "*" and "!" databases can be
  582.      considered as names of virtual databases which provide access to
  583.      all of the databases.  If a server implements virtual databases,
  584.      then the special "*" and "!" databases should probably exclude
  585.      other virtual databases (since they merely provide information
  586.      duplicated in other databases).  If virtual databases are sup-
  587.      ported, they should be listed as a regular database with the SHOW
  588.      DB command (although, since "*" and "!" are required, they need not
  589.      be listed).
  590.  
  591.      Virtual databases are an implementation-specific detail which has
  592.      absolutely no impact on the DICT protocol.  The DICT protocol views
  593.      virtual and non-virtual databases the same way.
  594.  
  595.      We mention virtual databases here, however, because they solve a
  596.      problem of database selection which could also have been solved by
  597.      changes in the protocol.  For example, each dictionary could be
  598.      assigned attributes, and the protocol could be extended to specify
  599.      searches over databases with certain attributes.  However, this
  600.      needlessly complicates the parsing and analysis that must be per-
  601.      formed by the implementation.  Further, unless the classification
  602.      system is extremely general, there is a risk that it would restrict
  603.      the types of databases that can be used with the DICT protocol
  604.      (although the protocol has been designed with human-language
  605.      databases in mind, it is applicable to any read-only database
  606.      application, especially those with a single semi-unique alphanu-
  607.      meric key and textual data).
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615. Faith, Martin                                                  [Page 11]
  616.  
  617. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  618.  
  619.  
  620. 3.3.  The MATCH Command
  621.  
  622.      MATCH database strategy word
  623.  
  624.  
  625. 3.3.1.  Description
  626.  
  627.      This command searches an index for the dictionary, and reports
  628.      words which were found using a particular strategy.  Not all
  629.      strategies are useful for all dictionaries, and some dictionaries
  630.      may support additional search strategies (e.g., reverse lookup).
  631.      All DICT servers MUST implement the MATCH command, and MUST support
  632.      the "exact" and "prefix" strategies.  These are easy to implement
  633.      and are generally the most useful.  Other strategies are server
  634.      dependent.
  635.  
  636.      The "exact" strategy matches a word exactly, although different
  637.      servers may treat non-alphanumeric data differently.  We have found
  638.      that a case-insensitive comparison which ignores non-alphanumeric
  639.      characters and which folds whitespace is useful for English-lan-
  640.      guage dictionaries.  Other comparisons may be more appropriate for
  641.      other languages or when using extended character sets.
  642.  
  643.      The "prefix" strategy is similar to "exact", except that it only
  644.      compares the first part of the word.
  645.  
  646.      Different servers may implement these algorithms differently.  The
  647.      requirement is that strategies with the names "exact" and "prefix"
  648.      exist so that a simple client can use them.
  649.  
  650.      Other strategies that might be considered by a server implementor
  651.      are matches based on substring, suffix, regular expressions,
  652.      soundex [KNUTH73], and Levenshtein [PZ85] algorithms.  These last
  653.      two are especially useful for correcting spelling errors.  Other
  654.      useful strategies perform some sort of "reverse" lookup (i.e., by
  655.      searching definitions to find the word that the query suggests).
  656.  
  657.      If the database name is specified with an exclamation point (deci-
  658.      mal code 33, "!"), then all of the databases will be searched until
  659.      a match is found, and all matches in that database will be dis-
  660.      played.  If the database name is specified with a star (decimal
  661.      code 42, "*"), then all of the matches in all available databases
  662.      will be displayed.  In both of these special cases, the databases
  663.      will be searched in the same order as that printed by the "SHOW DB"
  664.      command.
  665.  
  666.      If the strategy is specified using a period (decimal code 46, "."),
  667.      then the word will be matched using a server-dependent default
  668.  
  669.  
  670.  
  671. Faith, Martin                                                  [Page 12]
  672.  
  673. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  674.  
  675.  
  676.      strategy, which should be the best strategy available for interac-
  677.      tive spell checking.  This is usually a derivative of the Leven-
  678.      shtein algorithm [PZ85].
  679.  
  680.      If no matches are found in any of the searched databases, then sta-
  681.      tus code 552 will be returned.
  682.  
  683.      Otherwise, status code 152 will be returned followed by a list of
  684.      matched words, one per line, in the form:
  685.  
  686.  
  687.           database word
  688.  
  689.  
  690.      This makes the responses directly useful in a DEFINE command.
  691.  
  692.      The textual body of the match list is terminated with a CRLF period
  693.      CRLF sequence.
  694.  
  695.      Following the list, status code 250 is sent, which may include
  696.      server-specific timing and statistical information, as discussed in
  697.      the section on the DEFINE command.
  698.  
  699.  
  700. 3.3.2.  Responses
  701.  
  702.  
  703.           550 Invalid database, use "SHOW DB" for list of databases
  704.           551 Invalid strategy, use "SHOW STRAT" for a list of strategies
  705.           552 No match
  706.           152 n matches found - text follows
  707.           250 ok (optional timing information here)
  708.  
  709.  
  710.      Response code 152 requires a special parameter as part of its text.
  711.      Parameter 1 must be the number of matches retrieved.
  712.  
  713.  
  714.  
  715. 3.4.  The SHOW Command
  716.  
  717.  
  718. 3.4.1.  SHOW DB
  719.  
  720.      SHOW DB
  721.      SHOW DATABASES
  722.  
  723.  
  724.  
  725.  
  726.  
  727. Faith, Martin                                                  [Page 13]
  728.  
  729. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  730.  
  731.  
  732. 3.4.1.1.  Description
  733.  
  734.      Displays the list of currently accessible databases, one per line,
  735.      in the form:
  736.  
  737.  
  738.           database description
  739.  
  740.  
  741.      The textual body of the database list is terminated with a CRLF
  742.      period CRLF sequence.  All DICT servers MUST implement this com-
  743.      mand.
  744.  
  745.      Note that some databases may be restricted due to client domain or
  746.      lack of user authentication (see the AUTH command).  Information
  747.      about these databases is not available until authentication is per-
  748.      formed.  Until that time, the client will interact with the server
  749.      as if the additional databases did not exist.
  750.  
  751.  
  752. 3.4.1.2.  Responses
  753.  
  754.  
  755.           110 n databases present - text follows
  756.           554 No databases present
  757.  
  758.  
  759.      Response code 110 requires a special parameter.  Parameter 1 must
  760.      be the number of databases available to the user.
  761.  
  762.  
  763. 3.4.2.  SHOW STRAT
  764.  
  765.      SHOW STRAT
  766.      SHOW STRATEGIES
  767.  
  768.  
  769. 3.4.2.1.  Description
  770.  
  771.      Displays the list of currently supported search strategies, one per
  772.      line, in the form:
  773.  
  774.  
  775.           strategy description
  776.  
  777.  
  778.      The textual body of the strategy list is terminated with a CRLF
  779.      period CRLF sequence.  All DICT servers MUST implement this
  780.  
  781.  
  782.  
  783. Faith, Martin                                                  [Page 14]
  784.  
  785. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  786.  
  787.  
  788.      command.
  789.  
  790.  
  791. 3.4.2.2.  Responses
  792.  
  793.  
  794.           111 n strategies available - text follows
  795.           555 No strategies available
  796.  
  797.  
  798.      Response code 111 requires a special parameter.  Parameter 1 must
  799.      be the number of strategies available.
  800.  
  801.  
  802. 3.4.3.  SHOW INFO
  803.  
  804.      SHOW INFO database
  805.  
  806.  
  807. 3.4.3.1.  Description
  808.  
  809.      Displays the source, copyright, and licensing information about the
  810.      specified database.  The information is free-form text and is suit-
  811.      able for display to the user in the same manner as a definition.
  812.      The textual body of the information is terminated with a CRLF
  813.      period CRLF sequence.  All DICT servers MUST implement this com-
  814.      mand.
  815.  
  816.  
  817. 3.4.3.2.  Responses
  818.  
  819.  
  820.           550 Invalid database, use "SHOW DB" for list of databases
  821.           112 database information follows
  822.  
  823.  
  824.      These response codes require no special parameters.
  825.  
  826.  
  827.  
  828. 3.4.4.  SHOW SERVER
  829.  
  830.      SHOW SERVER
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839. Faith, Martin                                                  [Page 15]
  840.  
  841. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  842.  
  843.  
  844. 3.4.4.1.  Description
  845.  
  846.      Displays local server information written by the local administra-
  847.      tor.  This could include information about local databases or
  848.      strategies, or administrative information such as who to contact
  849.      for access to databases requiring authentication.  All DICT servers
  850.      MUST implement this command.
  851.  
  852.  
  853. 3.4.4.2.  Responses
  854.  
  855.  
  856.           114 server information follows
  857.  
  858.  
  859.      This response code requires no special parameters.
  860.  
  861.  
  862.  
  863. 3.5.  The CLIENT Command
  864.  
  865.      CLIENT text
  866.  
  867.  
  868. 3.5.1.  Description
  869.  
  870.      This command allows the client to provide information about itself
  871.      for possible logging and statistical purposes.  All clients SHOULD
  872.      send this command after connecting to the server.  All DICT servers
  873.      MUST implement this command (note, though, that the server doesn't
  874.      have to do anything with the information provided by the client).
  875.  
  876.  
  877. 3.5.2.  Responses
  878.  
  879.  
  880.           250 ok (optional timing information here)
  881.  
  882.  
  883.      This response code requires no special parameters.
  884.  
  885.  
  886.  
  887. 3.6.  The STATUS Command
  888.  
  889.      STATUS
  890.  
  891.  
  892.  
  893.  
  894.  
  895. Faith, Martin                                                  [Page 16]
  896.  
  897. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  898.  
  899.  
  900. 3.6.1.  Description
  901.  
  902.      Display some server-specific timing or debugging information.  This
  903.      information may be useful in debugging or tuning a DICT server.
  904.      All DICT servers MUST implement this command (note, though, that
  905.      the text part of the response is not specified and may be omitted).
  906.  
  907.  
  908. 3.6.2.  Responses
  909.  
  910.  
  911.           210 (optional timing and statistical information here)
  912.  
  913.  
  914.      This response code requires no special parameters.
  915.  
  916.  
  917.  
  918. 3.7.  The HELP Command
  919.  
  920.      HELP
  921.  
  922.  
  923. 3.7.1.  Description
  924.  
  925.      Provides a short summary of commands that are understood by this
  926.      implementation of the DICT server.  The help text will be presented
  927.      as a textual response, terminated by a single period on a line by
  928.      itself.  All DICT servers MUST implement this command.
  929.  
  930.  
  931.  
  932. 3.7.2.  Responses
  933.  
  934.  
  935.           113 help text follows
  936.  
  937.  
  938.      This response code requires no special parameters.
  939.  
  940.  
  941. 3.8.  The QUIT Command
  942.  
  943.      QUIT
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951. Faith, Martin                                                  [Page 17]
  952.  
  953. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  954.  
  955.  
  956. 3.8.1.  Description
  957.  
  958.      This command is used by the client to cleanly exit the server.  All
  959.      DICT servers MUST implement this command.
  960.  
  961.  
  962.  
  963. 3.8.2.  Responses
  964.  
  965.  
  966.           221 Closing Connection
  967.  
  968.  
  969.      This response code requires no special parameters.
  970.  
  971.  
  972.  
  973. 3.9.  The AUTH Command
  974.  
  975.      AUTH username authentication-string
  976.  
  977.  
  978. 3.9.1.  Description
  979.  
  980.      The client can authenticate itself to the server using a username
  981.      and password.  The authentication-string will be computed as in the
  982.      APOP protocol discussed in [RFC1939].  Briefly, the authentication-
  983.      string is the MD5 checksum of the concatenation of the msg-id
  984.      (obtained from the initial banner) and the "shared secret" that is
  985.      stored in the server and client configuration files.  Since the
  986.      user does not have to type this shared secret when accessing the
  987.      server, the shared secret can be an arbitrarily long passphrase.
  988.      Because of the computational ease of computing the MD5 checksum,
  989.      the shared secret should be significantly longer than a usual pass-
  990.      word.
  991.  
  992.      Authentication may make more dictionary databases available for the
  993.      current session.  For example, there may be some publicly dis-
  994.      tributable databases available to all users, and other private
  995.      databases available only to authenticated users.  Or, a server may
  996.      require authentication from all users to minimize resource utiliza-
  997.      tion on the server machine.
  998.  
  999.      Authentication is an optional server capability.  The AUTH command
  1000.      MAY be implemented by a DICT server.
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007. Faith, Martin                                                  [Page 18]
  1008.  
  1009. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  1010.  
  1011.  
  1012. 3.9.2.  Responses
  1013.  
  1014.  
  1015.           230 Authentication successful
  1016.           531 Access denied, use "SHOW INFO" for server information
  1017.  
  1018.  
  1019.      These response codes require no special parameters.
  1020.  
  1021.  
  1022. 4.  Command Pipelining
  1023.  
  1024.      All DICT servers MUST be able to accept multiple commands in a sin-
  1025.      gle TCP send operation.  Using a single TCP send operation for mul-
  1026.      tiple commands can improved DICT performance significantly, espe-
  1027.      cially in the face of high latency network links.
  1028.  
  1029.      The possible implementation problems for a DICT server which would
  1030.      prevent command pipelining are similar to the problems that prevent
  1031.      pipelining in an SMTP server.  These problems are discussed in
  1032.      detail in [RFC1854], which should be consulted by all DICT server
  1033.      implementors.
  1034.  
  1035.      The main implication is that a DICT server implementation MUST NOT
  1036.      flush or otherwise lose the contents of the TCP input buffer under
  1037.      any circumstances whatsoever.
  1038.  
  1039.      A DICT client may pipeline several commands and must check the
  1040.      responses to each command individually.  If the server has shut
  1041.      down, it is possible that all of the commands will not be pro-
  1042.      cessed.  For example, a simple DICT client may pipeline a CLIENT,
  1043.      DEFINE, and QUIT command sequence as it is connecting to the
  1044.      server.  If the server is shut down, the initial response code sent
  1045.      by the server may be 420 (temporarily unavailable) instead of 220
  1046.      (banner).  In this case, the definition cannot be retrieved, and
  1047.      the client should report and error or retry the command.  If the
  1048.      server is working, it may be able to send back the banner, defini-
  1049.      tion, and termination message in a single TCP send operation.
  1050.  
  1051.  
  1052.  
  1053. 5.  URL Specification
  1054.  
  1055.      The DICT URL scheme is used to refer to definitions or word lists
  1056.      available using the DICT protocol:
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063. Faith, Martin                                                  [Page 19]
  1064.  
  1065. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  1066.  
  1067.  
  1068.      dict://<user>:<passphrase>@<host>:<port>/d:<word>:<database>:<n>
  1069.      dict://<user>:<passphrase>@<host>:<port>/m:<word>:<database>:<strat>:<n>
  1070.  
  1071.  
  1072.      The "/d" syntax specifies the DEFINE command (see section 3.2),
  1073.      whereas the "/m" specifies the MATCH command (section 3.3).
  1074.  
  1075.      Some or all of "<user>:<passphrase>@", ":<port>", "<database>",
  1076.      "<strat>", and "<n>" may be omitted.
  1077.  
  1078.      "<n>" will usually be omitted, but when included, it specifies the
  1079.      nth definition or match of a word.  A method for extracting exactly
  1080.      this information from the server is not avaiable using the DICT
  1081.      protocol.  However, a client using the URL specification could
  1082.      obtain all of the definitions or matches, and then select the one
  1083.      that is specified.
  1084.  
  1085.      If "<user>:<passphrase>@" is omitted, no authentication is done.
  1086.      If ":<port>" is omitted, the default port (2628) SHOULD be used.
  1087.      If "<database>" is omitted, "!" SHOULD be used (see section 3.2.1).
  1088.      If "<strat>" is omitted, "." SHOULD be used (see section 3.3.1).
  1089.  
  1090.      Trailing colons may be omitted.  For example, the following URLs
  1091.      might specify definitions or matches:
  1092.  
  1093.  
  1094.           dict://dict.org/d:shortcake:
  1095.           dict://dict.org/d:shortcake:*
  1096.           dict://dict.org/d:shortcake:wordnet:
  1097.           dict://dict.org/d:shortcake:wordnet:1
  1098.           dict://dict.org/d:abcdefgh
  1099.           dict://dict.org/d:sun
  1100.           dict://dict.org/d:sun::1
  1101.  
  1102.           dict://dict.org/m:sun
  1103.           dict://dict.org/m:sun::soundex
  1104.           dict://dict.org/m:sun:wordnet::1
  1105.           dict://dict.org/m:sun::soundex:1
  1106.           dict://dict.org/m:sun:::
  1107.  
  1108.  
  1109.      See [RFC1738] for the specification of Uniform Resource Locators.
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119. Faith, Martin                                                  [Page 20]
  1120.  
  1121. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  1122.  
  1123.  
  1124. 6.  Extensions
  1125.  
  1126.      This protocol was designed so that flat text databases can be used
  1127.      with a server after a minimum of analysis and formatting.  Our
  1128.      experience is that merely constructing an index for a database may
  1129.      be sufficient to make it useful with a DICT server.  The ability to
  1130.      serve preformatted text is especially important since freely-avail-
  1131.      able databases are often distributed as flat text files without any
  1132.      semantic mark-up information (and often contain "ASCII art" which
  1133.      precludes the automation of even simple formatting).
  1134.  
  1135.      However, given a database with sufficient mark-up information, it
  1136.      may be possible to generate output in a variety of different for-
  1137.      mats (e.g., simple HTML or more sophisticated SGML).  The specifi-
  1138.      cation of formatting is beyond the scope of this document.  The
  1139.      requirements for negotiation of format (including character set and
  1140.      other encodings) is complex and should be examined over time as
  1141.      more experience is gained.  We suggest that the use of different
  1142.      formats, as well as other server features, be explored as exten-
  1143.      sions to the protocol.
  1144.  
  1145.  
  1146. 6.1.  Experimental Command Syntax
  1147.  
  1148.      Single-letter commands are reserved for debugging and testing,
  1149.      SHOULD NOT be defined in any future DICT protocol specification,
  1150.      and MUST NOT be used by any client software.
  1151.  
  1152.      Commands beginning with the letter "X" are reserved for experimen-
  1153.      tal extensions, and SHOULD NOT be defined in any future DICT proto-
  1154.      col specification.  Authors of client software should understand
  1155.      that these commands are not part of the DICT protocol and may not
  1156.      be available on all DICT servers.
  1157.  
  1158.  
  1159. 6.2.  Experimental Commands and Pipelining
  1160.  
  1161.      Experimental commands should be designed so that a client can
  1162.      pipeline the experimental commands without knowing if a server sup-
  1163.      ports the commands (e.g., instead of using feature negotiation).
  1164.      If the server does not support the commands, then a response code
  1165.      of 500 will be given, notifying the client that the extension is
  1166.      not supported.  Of course, depending on the complexity of the
  1167.      extensions added, feature negotiation may be necessary.  To help
  1168.      minimize negotiation time, server-supported features may be
  1169.      announced in the banner (code 220) using the optional capabilities
  1170.      parameter.
  1171.  
  1172.  
  1173.  
  1174.  
  1175. Faith, Martin                                                  [Page 21]
  1176.  
  1177. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  1178.  
  1179.  
  1180. 7.  Summary of Response Codes
  1181.      Below is a summary of response codes.  A star (*) in the first col-
  1182.      umn indicates the response has defined arguments that must be pro-
  1183.      vided.
  1184.  
  1185.           * 110 n databases present - text follows
  1186.           * 111 n strategies available - text follows
  1187.             112 database information follows
  1188.             113 help text follows
  1189.             114 server information follows
  1190.           * 150 n definitions retrieved - definitions follow
  1191.           * 151 word database name - text follows
  1192.           * 152 n matches found - text follows
  1193.             210 (optional timing and statistical information here)
  1194.           * 220 text msg-id
  1195.             221 Closing Connection
  1196.             230 Authentication successful
  1197.             250 ok (optional timing information here)
  1198.             420 Server temporarily unavailable
  1199.             421 Server shutting down at operator request
  1200.             500 Syntax error, command not recognized
  1201.             501 Syntax error, illegal parameters
  1202.             502 Command not implemented
  1203.             503 Command parameter not implemented
  1204.             530 Access denied
  1205.             531 Access denied, use "SHOW INFO" for server information
  1206.             550 Invalid database, use "SHOW DB" for list of databases
  1207.             551 Invalid strategy, use "SHOW STRAT" for a list of strategies
  1208.             552 No match
  1209.             554 No databases present
  1210.             555 No strategies available
  1211.  
  1212.  
  1213.  
  1214.  
  1215. 8.  Sample Conversations
  1216.  
  1217.      Theses are samples of the conversations that might be expected with
  1218.      a typical DICT server.  The notation "C:" indicates commands set by
  1219.      the client, and "S:" indicates responses sent by the server.  Blank
  1220.      lines are included for clarity and do not indicate actual newlines
  1221.      in the transaction.
  1222.  
  1223.  
  1224. 8.1.  Sample 1 - opening connection, HELP, DEFINE, and QUIT commands
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231. Faith, Martin                                                  [Page 22]
  1232.  
  1233. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  1234.  
  1235.  
  1236.      C: [ client initiates connection ]
  1237.  
  1238.      S: 220 dict.org dictd (version 0.9) <27831.860032493@dict.org>
  1239.  
  1240.  
  1241.  
  1242.      C: HELP
  1243.  
  1244.      S: 113 Help text follows
  1245.      S: DEFINE database word            look up word in database
  1246.      S: MATCH database strategy word    match word in database using strategy
  1247.      S: [ more server-dependent help text ]
  1248.      S: .
  1249.      S: 250 Command complete
  1250.  
  1251.  
  1252.  
  1253.      C: DEFINE ! penguin
  1254.  
  1255.      S: 150 1 definitions found: list follows
  1256.      S: 151 "penguin" wn "WordNet 1.5" : definition text follows
  1257.      S: penguin
  1258.      S:   1. n: short-legged flightless birds of cold southern esp. Antarctic
  1259.      S:      regions having webbed feet and wings modified as flippers
  1260.      S: .
  1261.      S: 250 Command complete
  1262.  
  1263.  
  1264.  
  1265.      C: DEFINE * shortcacke
  1266.  
  1267.      S: 150 2 definitions found: list follows
  1268.      S: 151 "shortcake" wn "WordNet 1.5" : text follows
  1269.      S: shortcake
  1270.      S:   1. n: very short biscuit spread with sweetened fruit and usu.
  1271.      S:      whipped cream
  1272.      S: .
  1273.      S: 151 "Shortcake" web1913 "Webster's Dictionary (1913)" : text follows
  1274.      S: Shortcake
  1275.      S:    \Short"cake`\, n.
  1276.      S:    An unsweetened breakfast cake shortened with butter or lard,
  1277.      S:    rolled thin, and baked.
  1278.      S: .
  1279.      S: 250 Command complete
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287. Faith, Martin                                                  [Page 23]
  1288.  
  1289. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  1290.  
  1291.  
  1292.      C: DEFINE abcdefgh
  1293.  
  1294.      S: 552 No match
  1295.  
  1296.  
  1297.  
  1298.      C: quit
  1299.  
  1300.      S: 221 Closing connection
  1301.  
  1302.  
  1303.  
  1304. 8.2.  Sample 2 - SHOW commands, MATCH command
  1305.  
  1306.  
  1307.      C: SHOW DB
  1308.  
  1309.      S: 110 3 databases present: list follows
  1310.      S: wn "WordNet 1.5"
  1311.      S: foldoc "Free On-Line Dictionary of Computing"
  1312.      S: jargon "Hacker Jargon File"
  1313.      S: .
  1314.      S: 250 Command complete
  1315.  
  1316.  
  1317.  
  1318.      C: SHOW STRAT
  1319.  
  1320.      S: 111 5 strategies present: list follows
  1321.      S: exact "Match words exactly"
  1322.      S: prefix "Match word prefixes"
  1323.      S: substring "Match substrings anywhere in word"
  1324.      S: regex "Match using regular expressions"
  1325.      S: reverse "Match words given definition keywords"
  1326.      S: .
  1327.      S: 250 Command complete
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343. Faith, Martin                                                  [Page 24]
  1344.  
  1345. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  1346.  
  1347.  
  1348.      C: MATCH foldoc regex "s.si"
  1349.  
  1350.      S: 152 7 matches found: list follows
  1351.      S: foldoc Fast SCSI
  1352.      S: foldoc SCSI
  1353.      S: foldoc SCSI-1
  1354.      S: foldoc SCSI-2
  1355.      S: foldoc SCSI-3
  1356.      S: foldoc Ultra-SCSI
  1357.      S: foldoc Wide SCSI
  1358.      S: .
  1359.      S: 250 Command complete
  1360.  
  1361.  
  1362.  
  1363.      C: MATCH wn substring "abcdefgh"
  1364.  
  1365.      S: 552 No match
  1366.  
  1367.  
  1368.  
  1369. 8.3.  Sample 3 - Server downtime
  1370.  
  1371.  
  1372.      C: [ client initiates connection ]
  1373.  
  1374.      S: 420 Server temporarily unavailable
  1375.  
  1376.  
  1377.  
  1378.      C: [ client initiates connection ]
  1379.  
  1380.      S: 421 Server shutting down at operator request
  1381.  
  1382.  
  1383.  
  1384. 8.4.  Sample 4 - Authentication
  1385.  
  1386.  
  1387.      C: [ client initiates connection ]
  1388.  
  1389.      S: 220 dict.org dictd (version 0.9) <27831.860032493@dict.org>
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399. Faith, Martin                                                  [Page 25]
  1400.  
  1401. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  1402.  
  1403.  
  1404.      C: SHOW DB
  1405.  
  1406.      S: 110 1 database present: list follows
  1407.      S: free "Free database"
  1408.      S: .
  1409.      S: 250 Command complete
  1410.  
  1411.  
  1412.  
  1413.      C: AUTH joesmith authentication-string
  1414.  
  1415.      S: 230 Authentication successful
  1416.  
  1417.  
  1418.  
  1419.      C: SHOW DB
  1420.  
  1421.      S: 110 2 databases present: list follows
  1422.      S: free "Free database"
  1423.      S: licensed "Local licensed database"
  1424.      S: .
  1425.      S: 250 Command complete
  1426.  
  1427.  
  1428.  
  1429. 9.  Security Considerations
  1430.  
  1431.      This RFC raises no security issues.
  1432.  
  1433.  
  1434. 10.  References
  1435.  
  1436.  
  1437.      [ASCII] US-ASCII. Coded Character Set - 7-Bit American Standard
  1438.           Code for Information Interchange. Standard ANSI X3.4-1986,
  1439.           ANSI, 1986.
  1440.  
  1441.  
  1442.      [FOLDOC] Howe, Denis, ed.  The Free On-Line Dictionary of Comput-
  1443.           ing, <URL:http://wombat.doc.ic.ac.uk/>
  1444.  
  1445.  
  1446.      [ISO] ISO-8859. International Standard -- Information Processing --
  1447.           8-bit Single-Byte Coded Graphic Character Sets -- Part 1:
  1448.           Latin alphabet No. 1, ISO 8859-1:1987.
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455. Faith, Martin                                                  [Page 26]
  1456.  
  1457. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  1458.  
  1459.  
  1460.      [JARGON] The on-line hacker Jargon File, version 4.0.0, 25 JUL
  1461.           1996, <URL:http://www.ccil.org/jargon/>
  1462.  
  1463.  
  1464.      [KNUTH73] Knuth, Donald E. "The Art of Computer Programming", Vol-
  1465.           ume 3: Sorting and Searching (Addison-Wesley Publishing Co.,
  1466.           1973, pages 391 and 392). Knuth notes that the soundex method
  1467.           was originally described by Margaret K. Odell and Robert C.
  1468.           Russell [US Patents 1261167 (1918) and 1435663 (1922)].
  1469.  
  1470.  
  1471.      [PZ85] Pollock, Joseph J. and Zamora, Antonio, "Automatic spelling
  1472.           correction in scientific and scholarly text," CACM, 27(4):
  1473.           Apr. 1985, 358-368.
  1474.  
  1475.  
  1476.      [RFC640] Postel, J., "Revised FTP Reply Codes", RFC-640, June,
  1477.           1975.
  1478.  
  1479.  
  1480.      [RFC821] Postel, J., "Simple Mail Transfer Protocol", RFC-821,
  1481.           USC/Information Sciences Institute, August, 1982.
  1482.  
  1483.  
  1484.      [RFC822] Crocker, D., "Standard for the Format of ARPA Internet
  1485.           Text Messages", RFC-822, Department of Electrical Engineering,
  1486.           University of Delaware, August, 1982.
  1487.  
  1488.  
  1489.      [RFC977] Kantor, B., Lapsley, P., "Network News Transfer Protocol:
  1490.           A Proposed Standard for the Stream-Based Transmission of
  1491.           News", RFC-977, U.C. San Diego, U.C. Berkeley, February, 1986.
  1492.  
  1493.  
  1494.      [RFC1738] Berners-Lee, T., Masinter, L., and M. McCahill, "Uniform
  1495.           Resource Locators (URL)", RFC-1738, CERN, Xerox PARC, Univer-
  1496.           sity of Minnesota, December 1994.
  1497.  
  1498.  
  1499.      [RFC1985] Freed, N., and Cargille, A., "SMTP Service Extension for
  1500.           Command Pipelining", RFC-1854, Innosoft International, Inc.,
  1501.           and Network Working Group, October 1995.
  1502.  
  1503.  
  1504.      [RFC1939] Myers, J., Rose, M., "Post Office Protocol - Version 3",
  1505.           RFC-1939, Carnegie Mellon/Dover Beach Consulting, May, 1996.
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511. Faith, Martin                                                  [Page 27]
  1512.  
  1513. INTERNET-DRAFT         Dictionary Server Protocol           26 July 1997
  1514.  
  1515.  
  1516.      [RFC2068] Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Bern-
  1517.           ers-Lee, T., "Hypertext Transfer Protocol -- HTTP/1.1",
  1518.           RFC-2068, U.C. Irvine, DEC, MIT/LCS, January, 1997.
  1519.  
  1520.  
  1521.      [WEB1913] Webster's Revised Unabridged Dictionary (G & C. Merriam
  1522.           Co., 1913, edited by Noah Porter).  Online version prepared by
  1523.           MICRA, Inc., Plainfield, N.J. and edited by Patrick Cassidy
  1524.           <cassidy@micra.com>.  For further information, see
  1525.           <URL:ftp://uiarchive.cso.uiuc.edu/pub/etext/guten-
  1526.           berg/etext96/pgw*>, and <URL:http://humani-
  1527.           ties.uchicago.edu/forms unrest/webster.form.html>
  1528.  
  1529.  
  1530.      [WORDNET] Miller, G.A. (1990), ed. WordNet: An On-Line Lexical
  1531.           Database. International Journal of Lexicography. Volume 3,
  1532.           Number 4.  <URL:http://www.cogsci.princeton.edu/~wn/>
  1533.  
  1534.  
  1535. 11.  Acknowledgements
  1536.  
  1537.      Thanks to Arnt Gulbrandsen and Nicolai Langfeldt for many helpful
  1538.      discussions.  Thanks to Bennet Yee, Doug Hoffman, Kevin Martin, and
  1539.      Jay Kominek for extensive testing and feedback on the initial
  1540.      implementations of the DICT server.  Thanks to Zhong Shao for
  1541.      advice and support.
  1542.  
  1543.      Thanks to Brian Kanto, Phil Lapsley, and Jon Postel for writing
  1544.      exemplary RFCs which were consulted during the preparation of this
  1545.      document.
  1546.  
  1547.  
  1548. 12.  Author's Addresses
  1549.  
  1550.  
  1551.           Rickard E. Faith
  1552.           EMail: faith@cs.unc.edu (or faith@acm.org)
  1553.  
  1554.  
  1555.           Bret Martin
  1556.           EMail: bamartin@miranda.org
  1557.  
  1558.           The majority of this work was completed while Bret Martin was
  1559.           a student at Yale University.
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565. Faith, Martin                                                  [Page 28]
  1566.  
  1567. INTERNET-DRAFT            EXPIRES JANUARY 1998            INTERNET-DRAFT
  1568.  
  1569.