#
# Combination of three grammars: polish-StdGrammar.txt, polish-NPInst.txt and polish-NPPP.txt
# It eliminates phrases containing non-letter characters.
#

NP: NPINST | NPPP | NPGEN;
NPINST: NPGEN NINST NAP_GEN*;
NPPP: NPGEN PREP NAP+; 
NPGEN: $NAP NAP_GEN*;
NAP[agreement]: AP* N AP*;
NAP_GEN[case = gen]: NAP;
NINST[case = inst]: NAP;
AP: ADJ | PPAS | ADJA DASH ADJ;
^N[pos = subst, ger;form ~ "[\d\p{L}]+"];
ADJ[pos = adj;form ~ "[\d\p{L}]+"];
ADJA[pos = adja;form ~ "[\d\p{L}]+"];
PPAS[pos = ppas;form ~ "[\d\p{L}]+"];
PREP[pos = prep;form ~ "[\d\p{L}]+"];
DASH[form = "-"];
