[2693] in SIPB bug reports

home help back first fref pref prev next nref lref last post

[daemon@ATHENA.MIT.EDU : Re: xthesaurus ]

daemon@ATHENA.MIT.EDU (Calvin Clark)
Tue Apr 7 16:02:49 1992

Date: Tue, 7 Apr 92 16:01:59 -0400
From: Calvin Clark <ckclark@mit.edu>
To: web@Athena.MIT.EDU
Cc: bug-sipb@Athena.MIT.EDU, macaroon@Athena.MIT.EDU
Reply-To: ckclark@mit.edu

Of course, the solution is to get a real thesaurus.  I did.

I have obtained the Project Gutenberg online 1911 Roget's Thesaurus with
an Emacs/Perl interface and installed it in the sipb locker.  The source
is in /mit/sipb/src/src/Roget.  The way you use it (or the way you will
use it, when the read-updated volume is updated tonight) is as follows:

athena% attach sipb (or add sipb; doesn't matter)
athena% emacs &

In emacs:

M-x load-file /mit/sipb/lib/elisp/thesaurus.el

M-x thesaurus-lookup-word word

Or you can put the following (or equivalent) in your .emacs file:

(setq load-path (cons "/mit/sipb/lib/elisp" load-path))
(autoload 'thesaurus-lookup-word "thesaurus")
(autoload 'thesaurus-show-words "thesaurus")
(autoload 'thesaurus-lookup-word-in-text "thesaurus")

So much for the Emacs interface.  The command line interface is a Perl
script.  (Emacs calls this as a subprocess to look up words in the
thesaurus.)  Here is the description of the usage of the Perl script,
which I have installed as "th" in the sipb locker:

#################################################################################
## Usage:
##
##      th <word> [<word> ...]
##              Search the thesaurus for all entries that begin with
##              "<word>".
##
##      th -V <word> [<word> ...]
##              Search the thesaurus for all entries that begin with
##              "<word>".  All displayed entries are separated by a line
##              of dashes.
##
##      th -W <word> [<word> ...]
##              Search the thesaurus for the entry that contains
##              "<word>" exactly.
##
##      th -w <word> [<word> ...]
##              Display all words in the thesaurus that begin with
##              "<word>".
##
##      th -w -v <word> [<word> ...]
##              Display all words in the thesaurus that begin with
##              "<word>".  Alongside each word, the numbers of the
##              entries that contain the word are displayed.
##
##      th -n <number>
##              Display thesaurus entry number "<number>".  Unlike a
##              word, only one number can be specified.
##
##
###############################################################################

This is *Alpha-Test* software.  Normally, I would be reluctant to
install any alpha-test software in the sipb locker, but these programs
seem to work okay, and the demand for the service they can provide is
high.

-Calvin

home help back first fref pref prev next nref lref last post