Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 9 down vote accepted

Give this a try:

aspell -d pl dump master | aspell -l pl expand > my.dict

Edited to match corrections in comment.

share|improve this answer
    
Nearly, I got what I wanted, but with english suffixes... Example: "hippiesowski hippiesowskiens hippiesowskily" –  rafalmag May 5 '10 at 20:53
    
Correct command is : aspell -d pl dump master | aspell -l pl expand > my.dict Now I got: "hippiesowski niehippiesowski hippiesowskimi ..." –  rafalmag May 5 '10 at 21:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.