AmHerDict.mesa
interface to the American Heritage Dictionary
John Maxwell, April 16, 1986 2:09:29 pm PST
DIRECTORY
Rope USING [ROPE];
AmHerDict: CEDAR DEFINITIONS
~ BEGIN
WordPosition: TYPE ~ RECORD [
start: INTEGER,
length: INTEGER
];
Definition: TYPE ~ RECORD [
definition: Rope.ROPE,
looks: LIST OF Run
];
Run: TYPE ~ RECORD [
start: INTEGER,
length: INTEGER,
look: ATOM
];
Proofread: PROC [string: Rope.ROPE, analyzerName: ATOM] RETURNS [WordPosition];
proofreads the string for misspellings using the analyzer named. Returns the position of the first misspelled word.
Corrections: PROC [string: Rope.ROPE, analyzerName: ATOM] RETURNS [LIST OF Rope.ROPE];
returns a list of possible corrections for string, based on the analyzer named.
GetDefinition: PROC [word: Rope.ROPE, dictName: ATOM] RETURNS [Definition];
returns the definition for word in the dict named.
Looks: PROC [dictName: ATOM] RETURNS [LIST OF LIST OF ATOM];
translates the look codes used in GetDefinition into fonts. An association list.
Pronunciation: PROC [word: Rope.ROPE, dictName: ATOM] RETURNS [Rope.ROPE];
returns the pronunciation of word from the dict named.
Analyzers: PROC [user: Rope.ROPE] RETURNS [LIST OF ATOM];
returns the names of the analyzers that the interface knows about
Dictionaries: PROC [user: Rope.ROPE] RETURNS [LIST OF ATOM];
returns the names of the dictionaries that the interface knows about
LispError: SIGNAL [error: Rope.ROPE] RETURNS [Rope.ROPE];
END.