boyce@daemen.UUCP (03/08/86)
Index: usr.bin/spell/spell.sh 4.2BSD Description: Words that are present in the spell "stop" file, i.e. visable, acter, will be included in the misspelled words. Repeat-By: Use spell on a file that contains many of these words and rack your brains over why it complains. Fix: The second arguement to /usr/lib/spell is a file to save words that it knows about. It makes little sense (at least to me, correct me if I'm wrong) to save the correct words and add them to incorrect words. To fix the problem I don't include $T into the sorting of misspelled words. *** spell.sh.old Fri Mar 7 15:55:23 1986 --- spell.sh Fri Mar 7 16:28:58 1986 *************** *** 29,35 case $H in /dev/null) deroff -w $F | sort -u | /usr/lib/spell $S $T | /usr/lib/spell ${D-/usr/dict/hlista} $V $B | ! sort -u +0f +0 - $T ;; *) deroff -w $F | sort -u | /usr/lib/spell $S $T | /usr/lib/spell ${D-/usr/dict/hlista} $V $B | sort -u +0f +0 - $T | tee -a $H --- 29,35 ----- case $H in /dev/null) deroff -w $F | sort -u | /usr/lib/spell $S $T | /usr/lib/spell ${D-/usr/dict/hlista} $V $B | ! sort -u +0f +0 - ;; *) deroff -w $F | sort -u | /usr/lib/spell $S $T | /usr/lib/spell ${D-/usr/dict/hlista} $V $B | sort -u +0f +0 - $T | tee -a $H -- Doug Boyce Daemen College, Buffalo NY UUCP : decvax!sunybcs!daemen!boyce or ihnp4!kitty!daemen!boyce ARPA : boyce%buffalo@csnet-relay "What's the point spread on W.W. III?" [R. Reagan]
bill@ur-cvsvax.UUCP (Bill Vaughn) (03/11/86)
> Index: usr.bin/spell/spell.sh 4.2BSD > > Description: > Words that are present in the spell "stop" file, i.e. > visable, acter, will be included in the misspelled words. > > Repeat-By: > Use spell on a file that contains many of these words and rack > your brains over why it complains. > I think you got your files crossed. The 'stoplist' contains exceptions to the rules 'spell' uses to derive words from root words and a sizable list of prefixes and suffixes. Hence any words in common between your input and the stoplist will be in spell's output. 'visable' and 'acter' ARE misspelled after all, aren't they? Aside: I guess a case could be made for NOT including words from the stoplist in the spell 'history' file. It would require a second sort however. Bill Vaughn rochester!ur-cvsvax!bill bill%ur-cvsvax@rochester.arpa