[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OZ SPELL server...
- To: Info-LISPM at MIT-OZ
- Subject: OZ SPELL server...
- From: Ian G. Macky <Ian at MIT-OZ>
- Date: Wed ,3 Nov 82 14:40:00 EDT
- Cc: HDT at MIT-OZ
- Mail-from: IAN created at 3-Nov-82 13:40:33
I hacked up ISPELL on OZ to run as a server, so that poor LM's can feed it
text and have it spelling corrected. What you do is...
Send it a data packet (opcode 200)at a time of words separated by
spaces or newlines, and you will get back 1-n data packets followed by
an EOF packet. The results you get are, for each word, one of
"T" if the word was found directly (as in SLOW) or indirectly
(as in SLOWLY or SLOWER)
"(choice1 choice2 ... choiceN)" if the word was not found, but
ISPELL had some suggestions
"NIL" if it was not found, and there were no close matches.
followed by a blank.
If you send "now is the time for all good qgirhu to coem to"
you will get back
"T T T T T T T NIL T (POEM COME) T"
When you are done sending text, just send an EOF packet and it will
go away (in fact, it will go away if it gets ANYTHING but a data
Does this scheme sound reasonable?