Commandline spellcheck with libreoffice dictionary

Hi!
Is it possible to spellcheck a text file from a commandline with the same dictionary as used by LibreOffice? Or maybe it is easier to just dump all words from the dictionary?
I need to use Polish dictionary and different dictionaries e.g. those that I got with aspell are way liberal.
I would appreciate your help very much!

Best wishes,
Pawel

LibreOffice uses Hunspell SpellChecker. Under GNU/Linux, install standalone command line program called hunspell. You can then define which dictionary you want to use along with many other options, type man hunspell in terminal after installation for more information.

(apologies – I ran out of chars in my comment, so I had to move this to an Answer)

Per the hunspell site, “Hunspell is part of the OS X from version 10.6”. So that covers GNU/Linux and OSX.

It looks like you can compile it for Windows, but I don’t see any binaries available for download. It doesn’t look like hunspell is packaged up in Cygwin (which seems a little strange to me).