Re: NSSpellServer & period
Re: NSSpellServer & period
- Subject: Re: NSSpellServer & period
- From: Steingrímur Árnason <email@hidden>
- Date: Wed, 7 Jan 2004 01:13:08 +0000
On 7.1.2004, at 00:00, Douglas Davidson wrote:
On Jan 5, 2004, at 5:22 PM, Steingrmmur Arnason wrote:
FYI Apple's own English spell server doesn't seem to take sentences
into account and doesn't claim that this is wrong: "this is some
text. some". In this case I imagine that the first word in the string
should be wrong as is isn't capitalized and the same goes for "some"
being the first word after a period. But when I type this into
TextEdit and run the built-in English spell checking - no errors are
reported. (It doesn't even seem to be case sensitive at all)
You are quite right--because capitalization is context-sensitive, the
spellchecker shipped by Apple regards it as a matter of grammar rather
than spelling, and in its current incarnation does not report
incorrect capitalization at all.
The problem of text being sent to the spellchecker without sufficient
surrounding context is a longstanding issue with the NSTextView
implementation of as-you-type spellchecking; I believe Panther should
be better in this regard. However, keep in mind that the architecture
of the spellchecking system implies that the server does not have
control over this; it is up to the client to determine how much
context is sent, so the server must be prepared to deal with as much
or as little context as the client sends.
Thanks for the info.
In the future, it would be nice if the NSSpellServer could force the
client to send the last 3-4 words in front of the one sent first. With
that small piece of info one could give better results without
compromising any efficiency of the current model.
I could agree that capitilization could be a part of a grammar service,
but then again I want to see something like NSGrammerServer for the
next big cat :)
All the best.
Steingrmmur
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.