File: inflection.fst

package info (click to toggle)
sfst 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,036 kB
  • sloc: cpp: 6,969; lex: 567; yacc: 269; perl: 135; python: 100; makefile: 49; sh: 13
file content (57 lines) | stat: -rw-r--r-- 1,466 bytes parent folder | download | duplicates (5)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  File:     inflection.fst
%  Author:   Helmut Schmid; IMS, Universitaet Stuttgart
%  Content:  definition of inflectional classes
%  Modified: Fri Jun 17 16:04:22 2005 (schmid)   
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% definition of the symbol classes
#include "symbols.fst"


%%% definition of the inflectional classes %%%%%%%%%%%%%%%%%%%%%%%%%%%%

$AdjReg$ =  {<positive>}:{} |\
	    {<comparative>}:{er} |\
	    {<superlative>}:{est}

$AdvReg$ =  <>

$NounReg$ = {<sg>}:{} |\
	    {<pl>}:{s}

$NounSg$ =  <sg>:<>

$NounPl$ =  <pl>:<>

$VerbReg$ = {<pres><sg><3>}:{s} |\
	    {<pres><sg>[<1><2>]}:{} |\
	    {<pres><pl>[<1><2><3>]}:{} |\
	    {<past>[<sg><pl>][<1><2><3>]}:{ed} |\
	    {<past><part>}:{ed} |\
	    {<pres><part>}:{ing}


% adding a tag for the inflectional class

$LCInfl$ = <>:<AdjReg>	$AdjReg$ |\
	   <>:<AdvReg>	$AdvReg$ |\
	   <>:<NounReg>	$NounReg$ |\
	   <>:<NounSg>	$NounSg$ |\
	   <>:<NounPl>	$NounPl$ |\
	   <>:<VerbReg>	$VerbReg$

% no capitalized or fixed word forms yet
% $UCInfl$ = ...
% $FixInfl$ = ...

% The capitalization of the resulting word form is indicated by
% the three feature tags <LC> (lower case the first character),
% <Cap> (capitalize the first character) and <Fix> (do nothing)

$LCInfl$ = $LCInfl$ <>:<LC>

% $UCInfl$ = $UCInfl$ <>:<UC>
% $FixInfl$ = $FixInfl$ <>:<Fix>

$LCInfl$ % | $UCInfl$ | $FixInfl$