[comp.sources.wanted] v04i111: A short spelling check script

tim@lucretia.esa.oz (Tim Bunce) (10/07/88)

I have been using the recently posted spelling filters with much
success (Thanks). However there is a very real need to cater for
personal words.

I tried the following scheme but ran into a spot of what I think
was Apollo brain-damage (I quite like them really :-)

The shell script can be modified to append the misspelled words
into a 'history' file, say ~/.spellerrors. From time to time this
file could be sort | uniq'd and then vi'd to prune it down such
that it only contained words that should be added to 'your'
dictionary.

Then, cat ~/.spellerrors | spellin /usr/dict/histb > ~/.spelldict
could be used to merge them into a personal dictionary which the
spell script could then use. Bingo!

This last bit was where things tripped up. I could not get spell
to use the new dictionary. (This would be trivial under sys5
using the +wordfile option, but I'm using bsd4.2 :-< )

I'm posting to .wanted because I feel it would not be productive
to try to fix my Apollo shell source over the net. The underlying
concept is fairly trivial. I'm sure that someone has done it or
could do it in an afternoon and post it for the benefit of all.

-- 
Tim.                                           ..!munnari!tim@attila.esa.oz