[pl] add disambiguator test, refactor

git-svn-id: https://languagetool.svn.sourceforge.net/svnroot/languagetool/trunk/languagetool@9453 2fe6a88b-1217-0410-b804-ba6ed01314b8