1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% File: compoundfilter.fst
% Author: Helmut Schmid; IMS, University of Stuttgart
% Content: enforcement of compounding constraints
% Modified: Fri Jun 17 14:14:08 2005 (schmid)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#include "symbols.fst"
% Compounding filter
% Compounds are restricted to nouns and adjectives
$org$ = [#Origin#]:<>
% symbols occurring in non-compounds
$T$ = [#Letter# #EntryType#] | [#WordClass#]:<> | $org$
% expression matching non-compounds
$TS$ = $T$*
% expression matching compounds
$TC$ = ($T$ | <comp>:<>)*
($TS$ [<ADV><CARD><V><OTHER>] |\
$TC$ [<ADJ><N>]) \
<base>:<> $org$ [#InflClass#]
|