#
# Standard grammar for Polish. Grammar recognizes noun phrases optionally modified by noun phrases in the genitive.
# It eliminates phrases containing non-letter characters.
#

NPGEN : $NAP NAP_GEN*;
NAP[agreement] : AP* N AP*;
NAP_GEN[case = gen] : 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}]+"];
DASH[form = "-"];