How to convert aspell dictionary to simple list of words?
- by rafalmag
I want to get list of all words from aspell dictionary.
I downloaded aspell and aspell polish dictionary, then unziped it using:
preunzip pl.cwl
I got pl.wl:
...
hippie
hippies
hippiesowski/bXxYc
hippika/MNn
hippis/NOqsT
hippisiara/MnN
hippiska/mMN
hippisowski/bXxYc
...
but they appear with sufix like /bXxYc or /MNn. These suffixes are defined in pl_affix.dat, which looks like
...
SFX n Y 5
SFX n a 0 [^ij]a
SFX n ja yj [^aeijoóuy]ja
SFX n a 0 [aeijoóuy]ja
SFX n ia ij [^drt]ia
SFX n ia yj [drt]ia
...
It is connected to the declination and conjugation. How can I add to the first list all forms (with all corresponding suffixes as defined in .dat file ) ?
BTW: I need this list to spell-checker jazzy.