quan@sol.surv.utas.oz (Stephen Quan) (01/10/91)
/usr/dict/words contains words from (I presume) the Oxford English Dictionary. Is there any spell checking utilities that make use of this? So far, the only utility I know of is the 'look' command. Steve Quan, Uni. of Tas.
fenn@wpi.WPI.EDU (Brian Fennell) (01/10/91)
In article <quan.663477169@sol> quan@sol.surv.utas.oz (Stephen Quan) writes: >/usr/dict/words contains words from (I presume) the Oxford English Dictionary. >Is there any spell checking utilities that make use of this? So far, the only >utility I know of is the 'look' command. > >Steve Quan, >Uni. of Tas. I wrote this as a fancy look up program. there is also spell(1) which actually does spell checking on a file. (I am not sure how portable this is) - - - - - >8 - - - - - CUT - HERE - - - - - - - - - - - - - - - - - #! /bin/sh td="/tmp/td$$" lf=" " here="`pwd`" test "$#" '=' "0" -o '(' "$1" '=' "-h" -o "$1" '=' "-help" ')' && echo " usage: $0 pattern ... a pattern consists of : letters match a..z, A..Z ? wild, 1 unknown character * wild, 0-or-more ?'s @ wild, 1-or-more vowels" && shift mkdir $td; cd $td for w in $* ; do ww="`echo $w | sed '/\?/s//\./g' | sed '/\*/s//\.\*/g' | sed '/@/s//\[aeiouy\]\[aeiouy\]\*/g' `" echo ; echo " $ww :" grep "^$ww$" /usr/dict/words | head -100 | pr -t -w80 -5 2> /dev/null done cd $here; rmdir $td
ping@cubmol.bio.columbia.edu (Shiping Zhang) (01/10/91)
In article <quan.663477169@sol> quan@sol.surv.utas.oz (Stephen Quan) writes: >Is there any spell checking utilities that make use of this? So far, the only >utility I know of is the 'look' command. Do you have the 'spell' command? -ping
speelmo@bronze.ucs.indiana.edu (Lance Speelmon -- UCS) (01/11/91)
I have the source code for a full screen spell checker that uses the dict file. I will mail it to you if you would like... Lance In article <quan.663477169@sol> quan@sol.surv.utas.oz (Stephen Quan) writes: >/usr/dict/words contains words from (I presume) the Oxford English Dictionary. >Is there any spell checking utilities that make use of this? So far, the only >utility I know of is the 'look' command. > >Steve Quan, >Uni. of Tas. -- ============================================================================== | Lance Speelmon | University Computing Services | | speelmo@bronze.ucs.indiana.edu | Network Operations Center | ==============================================================================