My bot on pl.wiktionary uses Morfeusz, a morphological analyser, i.e. a tool that tells you the morphology of a word (part of speech, person, gender, tense etc.). Morfeusz's homepage: http://sgjp.pl/morfeusz/morfeusz.html. Right now it is used by importsjp.py, but I have to run it locally hence it is not very convenient for pl.wikt editors.
The authors provide a Ubuntu repository for the library and python bindings (python-morfeusz2): http://sgjp.pl/morfeusz/dopobrania.html. Could they be installed on exec servers, please?