| 1 | #!/bin/sh |
| 2 | |
| 3 | # This script reads dictionary in it's textual representation |
| 4 | # from the file lexicon.dump and outputs all the words that are |
| 5 | # correctly resolved by general rules into the file words.list. |
| 6 | |
| 7 | exec <lexicon.dump >words.list |
| 8 | |
| 9 | while read key desc; do |
| 10 | if [ "$desc" = "`../src/lexholder -s $key -g lexicon`" ] |
| 11 | then echo $key |
| 12 | fi |
| 13 | done |
| 14 | |
| 15 | exit 0 |