File: fonev_morfo.aff

package info (click to toggle)
magyarispell 0.99.4-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,988 kB
  • ctags: 132
  • sloc: sh: 883; awk: 337; makefile: 240
file content (184 lines) | stat: -rw-r--r-- 4,916 bytes parent folder | download | duplicates (3)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# 	
#	magyar.aff/magyar.dict: Hungarian Ispell affix table and dictionary 
#
#	Copyright (C) 1998-2003 Lszl Nmeth
#
#	This program is free software; you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation; either version 2 of the License, or
#	(at your option) any later version.
#
#	This program is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	You should have received a copy of the GNU General Public License
#	along with this program; if not, write to the Free Software
#	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

# 
# nvsz toldalkok - morfonetikus alterncik (pl. szerelem - szerelmek)
#

#		   3 4 5 6 7 8 9
# nev_jel(mit,mire,,a,o,,u,o,o)
# nev_jel(mit,mire,,e,e,,,,e)
# nev_jel(mit,mire,,e,,,,,e)

define(nev_jel_massal_morfo,
# $1	>	$2$11K
nev_birtokjel($1,$2$11K,$3,$4,$5,$6,$7)
nev_rag_2($1,$2$11K,$3,$4,$5,$6,$7)
x(# mellknvkpz - kivesszk a J: csoportba ti, vzi stb. miatt
  $1	>	$2I
  nev_birtokjel($1,$2I,$3,$4,$5,$6,$7)
  nev_rag_2($1,$2I,$3,$4,$5,$6,$7))
$1	>	$2$11M
nev_birtokjel($1,$2$11M,$3,$4,$5,$6,$7)
nev_rag_2($1,$2$11M,$3,$4,$5,$6,$7)
$1	>	$2$4IM
nev_birtokjel($1,$2$4IM,$3,$4,$9,$6,$7)
nev_rag_2($1,$2$4IM,$3,$4,$9,$6,$7)

$1	>	$2$11D
nev_birtokjel($1,$2$11D,$3,$4,$5,$6,$7)
nev_rag_2($1,$2$11D,$3,$4,$5,$6,$7)
$1	>	$2$4ID
nev_birtokjel($1,$2$4ID,$3,$4,$9,$6,$7)
nev_rag_2($1,$2$4ID,$3,$4,$9,$6,$7)

[^DT]$1	>	$2$4
nev_birtokjel([^DT]$1,$2$6,$3,$4,$9,$6,$7)
nev_rag_2([^DT]$1,$2$4,$3,$4,$9,$6,$7)
$1	>	$2$4I
nev_birtokjel($1,$2$4I,$3,$4,$9,$6,$7)
nev_rag_2($1,$2$4I,$3,$4,$9,$6,$7)
$1	>	$2$7NK
x( spec. : nkhez -> nkhz)
nev_birtokjel($1,$2$7NK,$3,$4,$8,$6,$7)
nev_rag_2($1,$2$7NK,$3,$4,$5,$6,$7)
$1	>	$2$4INK
nev_birtokjel($1,$2$4INK,$3,$4,$9,$6,$7)
nev_rag_2($1,$2$4INK,$3,$4,$9,$6,$7)
$1	>	$2$11T$10K
nev_birtokjel($1,$2$11T$10K,$3,$4,$5,$6,$7)
nev_rag_2($1,$2$5T$10K,$3,$4,$5,$6,$7)
$1	>	$2$4IT$9K
nev_birtokjel($1,$2$4IT$9K,$3,$4,$9,$6,$7)
nev_rag_2($1,$2$4IT$9K,$3,$4,$9,$6,$7)
$1	>	$2$7K
x( spec. : jkhez -> jkhz)
nev_birtokjel($1,$2$7K,$3,$4,$8,$6,$7)
nev_rag_2($1,$2$7K,$3,$4,$8,$6,$7)
$1	>	$2$4IK
nev_birtokjel($1,$2$4IK,$3,$4,$9,$6,$7)
nev_rag_2($1,$2$4IK,$3,$4,$9,$6,$7)
# $1	>	$2
# nev_rag($1,$2,$3,$4,$9,$6,$7)
# nev_rag_2($1,$2,$3,$4,$9,$6,$7)
x(********************* -a/o/e/nknt, -a/o/e/stu/l)
$1	>	$2$11NKNT
$1	>	$2$11ST$7L
)

# -----------------mellknvkpzk mssalhangz-vg fnevekhez
# mellknvkpzk, (ez nem kne a mellknevekhez, de mg sprolunk)
#		   3 4 5 6 7 8 9 10
# nev_jel(mit,mire,,a,o,,u,o,o,)
# nev_jel(mit,mire,,e,e,,,,e,)
# nev_jel(mit,mire,,e,,,,,e,)

#		   3 4 5 6 7 8
# nev_jel(mit,mire,,a,o,,u,o)
# nev_jel(mit,mire,,e,e,,,)
# nev_jel(mit,mire,,e,,,,)

# kies magnhangzj nvszi morfonetikus alterncik

flag *I:

K > -K,T
# csvn, fvn, kvn, nyvn, tvn, mvn
[] V E K		>	-EK,N
nev_jel_massal_morfo(`A K',`-AK,',,A,O,,U,O,O,O,A)
nev_jel_massal_morfo(`O K',`-OK,',,A,O,,U,O,O,O,O)
nev_jel_massal_morfo(`E K',`-EK,',,E,E,,,,E,E,E)
nev_jel_massal_morfo(` K',`-K,',,E,,,,,E,,)
A K	>	-AK,ACSKA
O K	>	-OK,OCSKA
E K	>	-EK,ECSKE
 K	>	-K,CSKE
A K	>	-AK,ACSKK
O K	>	-OK,OCSKK
E K	>	-EK,ECSKK
 K	>	-K,CSKK
nev_rag(`A K',``-AK,ACSK'',,A,A,,U,O,O)
nev_rag(`O K',``-OK,OCSK'',,A,O,,U,O,O)
nev_rag(`E K',``-EK,ECSK'',,E,E,,,,E)
nev_rag(` K',``-K,CSK'',,E,,,,,E)
nev_rag(`A K',``-AK,ACSKK'',,A,A,,U,O,O)
nev_rag(`O K',``-OK,OCSKK'',,A,O,,U,O,O)
nev_rag(`E K',``-EK,ECSKK'',,E,E,,,,E)
nev_rag(` K',``-K,CSKK'',,E,,,,,E)

K	>	-K,NKNTI
K	>	-K,NKNTIT

flag *n:

# mellknvkpzk
melleknevkepzo(`A K',`-AK,',,A,A,,U,O,O,)
melleknevkepzo(`O K',`-OK,',,A,O,,U,O,O,)
melleknevkepzo(`E K',`-EK,',,E,E,,,,E,)
melleknevkepzo(` K',`-K,',,E,,,,,E,)

flag *J:

# szerelmen, szerelmi helyes!

A K > -AK,ON
[^A]K > -K,N
A K > -AK,I
O K > -OK,I
E K > -EK,I
 K > -K,I
# fiaik?
# I K > -IK,I

A K > -AK,ILAG
O K > -OK,ILAG
E K > -EK,ILEG
 K > -K,ILEG

A K > -AK,UL
O K > -OK,UL
E K > -EK,L
 K > -K,L

nev_rag(A K,``-AK,I'',,A,O,,U,O,O)
nev_rag_2(A K,``-AK,I'',,A,O,,U,O,O)
nev_rag(O K,``-OK,I'',,A,O,,U,O,O)
nev_rag_2(O K,``-OK,I'',,A,O,,U,O,O)
nev_rag(E K,``-EK,I'',,E,E,,,,E)
nev_rag_2(E K,``-EK,I'',,E,E,,,,E)
nev_rag( K,``-K,I'',,E,E,,,,E)
nev_rag_2( K,``-K,I'',,E,,,,,E)

# hat/het E/3 mlt

H E T	>	ETT
H A T	>	OTT

# Megjegyzs: szerelemen, szerelemi is helyes, csak tovbbi 3 flag 
# felhasznlsval lehet ezen segteni. 
# De kehelyen, tcskn helyes alakoknak tnnek!

flag N:

# ezen a kis flden kvl nincs semmije, csak az a pr fldnkvli

.	>	N
.	>	HZ