[Hejes-devel] [910] kulegy: issue #721, uralkodohazak -- new rules
hejes-devel at nytud.hu
hejes-devel at nytud.hu
Fri Aug 23 12:20:15 CEST 2013
Revision: 910
Author: ludanyizs
Date: 2013-08-23 12:20:15 +0200 (Fri, 23 Aug 2013)
Log Message:
-----------
kulegy: issue #721, uralkodohazak -- new rules
Modified Paths:
--------------
trunk/web2py/applications/helyesiras_webdev/modules/Wordform.py
trunk/web2py/applications/helyesiras_webdev/modules/egybekulon2_def.py
trunk/web2py/applications/helyesiras_webdev/modules/resources/egybekulon2.grm
Modified: trunk/web2py/applications/helyesiras_webdev/modules/Wordform.py
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/modules/Wordform.py 2013-08-22 09:32:46 UTC (rev 909)
+++ trunk/web2py/applications/helyesiras_webdev/modules/Wordform.py 2013-08-23 10:20:15 UTC (rev 910)
@@ -889,6 +889,12 @@
Returns True, False or None (when unknown)
"""
return self.NatGeo == 1
+
+ def isUralkodohaz(self):
+ """ Lexical information: uralkodohaz neve
+ Returns True, False or None (when unknown)
+ """
+ return self.Uralkodohaz
def forPrefix(mydb, q) :
""" Load id-wordform pairs found for the given wordform prefix.
@@ -1023,7 +1029,8 @@
mo.inessivus,
mo.xivus,
th3.partof,
- th3.nature
+ th3.nature,
+ th5.uralkodohazak
FROM alt_types t
LEFT JOIN alt_types_compound c1 ON c1.tid=t.id
@@ -1134,6 +1141,7 @@
l.MorphXivus = row[87] # i-kepzos alak (foldrajzi nevek)
l.GeoPart = row[88] # telepules resze, pl. Ujpest, Varosliget
l.NatGeo = row[89] # termeszetfoldrajzi nev
+ l.Uralkodohaz = row[90] # uralkodohaz neve
return l
Modified: trunk/web2py/applications/helyesiras_webdev/modules/egybekulon2_def.py
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/modules/egybekulon2_def.py 2013-08-22 09:32:46 UTC (rev 909)
+++ trunk/web2py/applications/helyesiras_webdev/modules/egybekulon2_def.py 2013-08-23 10:20:15 UTC (rev 910)
@@ -20,7 +20,7 @@
'sem': ['Color1', 'Color3', 'CompoundPrefix2', 'FamilyName', 'PersFirst', 'Group', 'NumeralIndef',
'Material1', 'Material2', 'ProperName', 'ProperGeo', 'Folk', 'Container', 'Animal', 'Occupation', 'HatarozosMelleknev', 'FoneviJelzosSzerkAlaptag',
'Emphasis', 'EgyebFoneviJelzo', 'Occupation', 'Ecclesiastic', 'ProperGeo', 'Abbr', 'KozszoiBetuszo', 'KozszoiBetuszoKivetel',
- 'Major', 'isGeoSettlement', 'TulnevBetuszo'],
+ 'Major', 'isGeoSettlement', 'TulnevBetuszo', 'Uralkodohaz'],
# semantic features, see WordInfo.hasLexProp()
'match': '!REGEXP!',
# regexp over concatenated list of morphs' tags
Modified: trunk/web2py/applications/helyesiras_webdev/modules/resources/egybekulon2.grm
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/modules/resources/egybekulon2.grm 2013-08-22 09:32:46 UTC (rev 909)
+++ trunk/web2py/applications/helyesiras_webdev/modules/resources/egybekulon2.grm 2013-08-23 10:20:15 UTC (rev 910)
@@ -2853,3 +2853,21 @@
refs:
ex: te + miattad = temiattad, ő + általa = őáltala
kill:
+
+###############
+#M_EK_URALKODO#
+###############
+
+id: M_EK_URALKODO_1
+rule: N(sem="Uralkodohaz") + N(stem~"ház|család|dinasztia") == N(sep='-', hasnesep="1")
+comment: Az uralkodóházat jelentő "ház", "család" és "dinasztia" főneveket kötőjellel kell a családnévhez kapcsolni.
+refs: OH-170
+ex: Jagelló + ház = Jagelló-ház, Bourbon + család = Bourbon-család
+kill: M_EK_GYUJTONEV_1_1_2, M_EK_GYUJTONEV_1_2_2, M_EK_ALARENDELO
+
+id: M_EK_URALKODO_2
+rule: N(sem="FamilyName") + N(stem~"család") == N(sep=' ', hasnesep="1")
+comment: Ha a "család" szóhoz nem uralkodóházat jelölő tulajdonnév kapcsolódik, akkor különírást alkalmazunk.
+refs: OH-170
+ex: Szabó + család = Szabó család
+kill: M_EK_GYUJTONEV_1_1_2, M_EK_GYUJTONEV_1_2_2, M_EK_ALARENDELO
\ No newline at end of file
More information about the Hejes-devel
mailing list