mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
@@ -18,7 +18,7 @@ Grc,Ancient Greek,ancient_greek,,,y,,n,n,,n
|
|||||||
Gre,Greek,greek,,,,,,,,y
|
Gre,Greek,greek,,,,,,,,y
|
||||||
Heb,Hebrew,hebrew,,,,,n,n,,n
|
Heb,Hebrew,hebrew,,,,,n,n,,n
|
||||||
Hin,Hindi,hindi,Hindustani,to_devanagari,y,,,,,y
|
Hin,Hindi,hindi,Hindustani,to_devanagari,y,,,,,y
|
||||||
Hun,Hungarian,hungarian,,,y,n,n,n,,n
|
Hun,Hungarian,hungarian,,,n,y,y,y,n,n
|
||||||
Ice,Icelandic,icelandic,,,,,,n,,y
|
Ice,Icelandic,icelandic,,,,,,n,,y
|
||||||
Ina,Interlingua,interlingua,,,y,,n,n,,n
|
Ina,Interlingua,interlingua,,,y,,n,n,,n
|
||||||
Ita,Italian,italian,Romance,,y,,,,y,y
|
Ita,Italian,italian,Romance,,y,,,,y,y
|
||||||
|
|||||||
|
7
src/api/CombinatorsHun.gf
Normal file
7
src/api/CombinatorsHun.gf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
--# -path=.:alltenses:prelude:src/hungarian
|
||||||
|
|
||||||
|
resource CombinatorsHun = Combinators with
|
||||||
|
(Cat = CatHun),
|
||||||
|
(Structural = StructuralHun),
|
||||||
|
(Noun = NounHun),
|
||||||
|
(Constructors = ConstructorsHun) ** open MissingHun in {} ;
|
||||||
3
src/api/ConstructorsHun.gf
Normal file
3
src/api/ConstructorsHun.gf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
--# -path=.:alltenses:prelude:../hungarian
|
||||||
|
|
||||||
|
resource ConstructorsHun = Constructors with (Grammar = GrammarHun) ** open MissingHun in {} ;
|
||||||
5
src/api/SymbolicHun.gf
Normal file
5
src/api/SymbolicHun.gf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
--# -path=.:../hungarian:../common:../abstract:../prelude
|
||||||
|
|
||||||
|
resource SymbolicHun = Symbolic with
|
||||||
|
(Symbol = SymbolHun),
|
||||||
|
(Grammar = GrammarHun) ** open MissingHun in {} ;
|
||||||
4
src/api/SyntaxHun.gf
Normal file
4
src/api/SyntaxHun.gf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
--# -path=.:alltenses:prelude:../hungarian
|
||||||
|
|
||||||
|
instance SyntaxHun of Syntax =
|
||||||
|
ConstructorsHun, CatHun, StructuralHun, CombinatorsHun ;
|
||||||
3
src/api/TryHun.gf
Normal file
3
src/api/TryHun.gf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
--# -path=.:../hungarian:../common:../abstract:../prelude
|
||||||
|
|
||||||
|
resource TryHun = SyntaxHun, LexiconHun, ParadigmsHun - [mkAdv] ;
|
||||||
@@ -1,59 +1,67 @@
|
|||||||
concrete AdjectiveHun of Adjective = CatHun ** open ResHun, Prelude in
|
concrete AdjectiveHun of Adjective = CatHun ** open ResHun, Prelude in {
|
||||||
{
|
|
||||||
--{
|
flags optimize=all_subs ;
|
||||||
--
|
|
||||||
-- lin
|
lin
|
||||||
--
|
|
||||||
-- PositA a = {
|
-- : A -> AP ;
|
||||||
-- s = \\_ => a.s ! AAdj Posit Nom ;
|
PositA a = emptyAP ** {
|
||||||
-- isPre = True
|
s = a.s ! Posit
|
||||||
-- } ;
|
} ;
|
||||||
-- ComparA a np = {
|
|
||||||
-- s = \\_ => a.s ! AAdj Compar Nom ++ "than" ++ np.s ! npNom ;
|
-- : A -> NP -> AP ;
|
||||||
-- isPre = False
|
ComparA a np = emptyAP ** {
|
||||||
-- } ;
|
s = a.s ! Compar ;
|
||||||
-- UseComparA a = {
|
compar = np.s ! Ade ;
|
||||||
-- s = \\_ => a.s ! AAdj Compar Nom ;
|
} ;
|
||||||
-- isPre = True
|
|
||||||
-- } ;
|
-- : A2 -> NP -> AP ; -- married to her
|
||||||
--
|
ComplA2 a2 np = emptyAP ** {
|
||||||
-- AdjOrd ord = {
|
s = a2.s ! Posit ;
|
||||||
-- s = \\_ => ord.s ! Nom ;
|
compar = np.s ! a2.c2.c ++ a2.c2.s
|
||||||
-- isPre = True
|
} ;
|
||||||
-- } ;
|
|
||||||
--
|
-- : A2 -> AP ; -- married to itself
|
||||||
-- CAdvAP ad ap np = {
|
-- ReflA2 a2 = a2 ** { } ;
|
||||||
-- s = \\a => ad.s ++ ap.s ! a ++ ad.p ++ np.s ! npNom ;
|
|
||||||
-- isPre = False
|
-- : A2 -> AP ; -- married
|
||||||
-- } ;
|
UseA2 = PositA ;
|
||||||
--
|
|
||||||
-- ComplA2 a np = {
|
-- : A -> AP ; -- warmer
|
||||||
-- s = \\_ => a.s ! AAdj Posit Nom ++ a.c2 ++ np.s ! NPAcc ;
|
UseComparA a = emptyAP ** {
|
||||||
-- isPre = False
|
s = a.s ! Compar ;
|
||||||
-- } ;
|
} ;
|
||||||
--
|
|
||||||
-- ReflA2 a = {
|
-- : CAdv -> AP -> NP -> AP ; -- as cool as John
|
||||||
-- s = \\ag => a.s ! AAdj Posit Nom ++ a.c2 ++ reflPron ! ag ;
|
CAdvAP adv ap np = ap ** {
|
||||||
-- isPre = False
|
s = \\n => adv.s ++ ap.s ! n ;
|
||||||
-- } ;
|
compar = ap.compar ++ adv.p ++ np.s ! Nom
|
||||||
--
|
} ;
|
||||||
-- SentAP ap sc = {
|
|
||||||
-- s = \\a => ap.s ! a ++ sc.s ;
|
-- The superlative use is covered in $Ord$.
|
||||||
-- isPre = False
|
|
||||||
-- } ;
|
-- : Ord -> AP ; -- warmest
|
||||||
--
|
AdjOrd ord = emptyAP ** ord ;
|
||||||
-- AdAP ada ap = {
|
|
||||||
-- s = \\a => ada.s ++ ap.s ! a ;
|
-- Sentence and question complements defined for all adjectival
|
||||||
-- isPre = ap.isPre
|
-- phrases, although the semantics is only clear for some adjectives.
|
||||||
-- } ;
|
|
||||||
--
|
-- : AP -> SC -> AP ; -- good that she is here
|
||||||
-- UseA2 a = {
|
-- SentAP ap sc = ap ** {} ;
|
||||||
-- s = \\_ => a.s ! AAdj Posit Nom ;
|
|
||||||
-- isPre = True
|
-- An adjectival phrase can be modified by an *adadjective*, such as "very".
|
||||||
-- } ;
|
|
||||||
--
|
-- : AdA -> AP -> AP ;
|
||||||
-- AdvAP ap adv = {s = \\a => ap.s ! a ++ adv.s ; isPre = False} ;
|
AdAP ada ap = ap ** {
|
||||||
--
|
s = \\af => ada.s ++ ap.s ! af ;
|
||||||
--}
|
} ;
|
||||||
|
|
||||||
|
|
||||||
|
-- It can also be postmodified by an adverb, typically a prepositional phrase.
|
||||||
|
|
||||||
|
-- : AP -> Adv -> AP ; -- warm by nature
|
||||||
|
AdvAP ap adv = ap ** {
|
||||||
|
s = \\af => ap.s ! af ++ adv.s ;
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,25 +1,35 @@
|
|||||||
concrete AdverbHun of Adverb = CatHun ** open ResHun, Prelude in
|
concrete AdverbHun of Adverb = CatHun ** open ResHun, ParamHun, ParadigmsHun, Prelude in {
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
|
||||||
-- lin
|
|
||||||
-- PositAdvAdj a = {s = a.s ! AAdv} ;
|
|
||||||
-- ComparAdvAdj cadv a np = {
|
|
||||||
-- s = cadv.s ++ a.s ! AAdv ++ cadv.p ++ np.s ! npNom
|
|
||||||
-- } ;
|
|
||||||
-- ComparAdvAdjS cadv a s = {
|
|
||||||
-- s = cadv.s ++ a.s ! AAdv ++ cadv.p ++ s.s
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- PrepNP prep np = {s = prep.s ++ np.s ! NPAcc} ;
|
|
||||||
--
|
|
||||||
-- AdAdv = cc2 ;
|
|
||||||
-- PositAdAAdj a = {s = a.s ! AAdv} ;
|
|
||||||
--
|
|
||||||
-- SubjS = cc2 ;
|
|
||||||
--
|
|
||||||
-- AdnCAdv cadv = {s = cadv.s ++ cadv.p} ;
|
|
||||||
--
|
|
||||||
--}
|
|
||||||
|
|
||||||
}
|
lin
|
||||||
|
|
||||||
|
-- : A -> Adv ;
|
||||||
|
--PositAdvAdj adj = { } ;
|
||||||
|
|
||||||
|
-- : CAdv -> A -> NP -> Adv ; -- more warmly than John
|
||||||
|
-- ComparAdvAdj cadv a np = { } ;
|
||||||
|
|
||||||
|
-- ComparAdvAdjS : CAdv -> A -> S -> Adv ; -- more warmly than he runs
|
||||||
|
|
||||||
|
-- : Prep -> NP -> Adv ;
|
||||||
|
PrepNP prep np = {
|
||||||
|
s = np.s ! prep.c ++ prep.s ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- Adverbs can be modified by 'adadjectives', just like adjectives.
|
||||||
|
|
||||||
|
--AdAdv : AdA -> Adv -> Adv ; -- very quickly
|
||||||
|
-- AdAdv ada adv = adv **
|
||||||
|
-- Like adverbs, adadjectives can be produced by adjectives.
|
||||||
|
|
||||||
|
-- : A -> AdA ; -- extremely
|
||||||
|
-- PositAdAAdj a = { } ;
|
||||||
|
-- Subordinate clauses can function as adverbs.
|
||||||
|
|
||||||
|
-- : Subj -> S -> Adv ;
|
||||||
|
-- SubjS subj s =
|
||||||
|
|
||||||
|
-- Comparison adverbs also work as numeral adverbs.
|
||||||
|
|
||||||
|
--AdnCAdv : CAdv -> AdN ; -- less (than five)
|
||||||
|
--AdnCAdv cadv = {s = } ;
|
||||||
|
} ;
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
--# -path=.:../abstract:../common:prelude
|
|
||||||
|
|
||||||
abstract AllHunAbs =
|
|
||||||
Lang,
|
|
||||||
IrregHunAbs-[
|
|
||||||
blow_V,burn_V,come_V,dig_V,fall_V,fly_V,freeze_V,go_V,lie_V,run_V,
|
|
||||||
sew_V,sing_V,sit_V,sleep_V,spit_V,stand_V,swell_V,swim_V,think_V],
|
|
||||||
ExtraHunAbs
|
|
||||||
**
|
|
||||||
{
|
|
||||||
--{} ;
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,13 +1,6 @@
|
|||||||
--# -path=.:../abstract:../common:../prelude
|
--# -path=.:../abstract:../common:../prelude
|
||||||
|
|
||||||
concrete AllHun of AllHunAbs =
|
concrete AllHun of AllHunAbs =
|
||||||
LangHun,
|
LangHun,
|
||||||
IrregHun-[
|
ExtendHun
|
||||||
blow_V,burn_V,come_V,dig_V,fall_V,fly_V,freeze_V,go_V,lie_V,run_V,
|
** {} ;
|
||||||
sew_V,sing_V,sit_V,sleep_V,spit_V,stand_V,swell_V,swim_V,think_V],
|
|
||||||
ExtraHun
|
|
||||||
**
|
|
||||||
{
|
|
||||||
--{} ;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
6
src/hungarian/AllHunAbs.gf
Normal file
6
src/hungarian/AllHunAbs.gf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
--# -path=.:../abstract:../common:prelude
|
||||||
|
|
||||||
|
abstract AllHunAbs =
|
||||||
|
Lang,
|
||||||
|
Extend
|
||||||
|
** {} ;
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
concrete BackwardHun of Backward = CatHun ** open ResHun in
|
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
|
||||||
-- flags optimize=all_subs ;
|
|
||||||
--
|
|
||||||
-- lin
|
|
||||||
--
|
|
||||||
---- A repository of obsolete constructs, needed for backward compatibility.
|
|
||||||
---- They create spurious ambiguities if used in combination with Lang.
|
|
||||||
--
|
|
||||||
---- from Verb 19/4/2008
|
|
||||||
--
|
|
||||||
-- ComplV2 v np = insertObj (\\_ => v.c2 ++ np.s ! Acc) (predV v) ;
|
|
||||||
-- ComplV3 v np np2 =
|
|
||||||
-- insertObj (\\_ => v.c2 ++ np.s ! Acc ++ v.c3 ++ np2.s ! Acc) (predV v) ;
|
|
||||||
-- ComplV2V v np vp =
|
|
||||||
-- insertObj (\\a => infVP v.isAux vp a)
|
|
||||||
-- (insertObj (\\_ => v.c2 ++ np.s ! Acc) (predV v)) ;
|
|
||||||
-- ComplV2S v np s =
|
|
||||||
-- insertObj (\\_ => conjThat ++ s.s)
|
|
||||||
-- (insertObj (\\_ => v.c2 ++ np.s ! Acc) (predV v)) ;
|
|
||||||
-- ComplV2Q v np q =
|
|
||||||
-- insertObj (\\_ => q.s ! QIndir)
|
|
||||||
-- (insertObj (\\_ => v.c2 ++ np.s ! Acc) (predV v)) ;
|
|
||||||
-- ComplV2A v np ap =
|
|
||||||
-- insertObj (\\_ => v.c2 ++ np.s ! Acc ++ ap.s ! np.a) (predV v) ;
|
|
||||||
--
|
|
||||||
-- ReflV2 v = insertObj (\\a => v.c2 ++ reflPron ! a) (predV v) ;
|
|
||||||
--
|
|
||||||
---- from Sentence 19/4/2008
|
|
||||||
--
|
|
||||||
-- SlashV2 np v2 =
|
|
||||||
-- mkClause (np.s ! Nom) np.a (predV v2) ** {c2 = v2.c2} ;
|
|
||||||
--
|
|
||||||
-- SlashVVV2 np vv v2 =
|
|
||||||
-- mkClause (np.s ! Nom) np.a
|
|
||||||
-- (insertObj (\\a => infVP vv.isAux (predV v2) a) (predVV vv)) **
|
|
||||||
-- {c2 = v2.c2} ;
|
|
||||||
--
|
|
||||||
---- from Noun 19/4/2008
|
|
||||||
--
|
|
||||||
-- NumInt n = {s = n.s ; n = Pl} ;
|
|
||||||
-- OrdInt n = {s = n.s ++ "th"} ; --- DEPRECATED
|
|
||||||
--
|
|
||||||
-- DetSg quant ord = {
|
|
||||||
-- s = quant.s ! Sg ++ ord.s ;
|
|
||||||
-- n = Sg
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- DetPl quant num ord = {
|
|
||||||
-- s = quant.s ! num.n ++ num.s ++ ord.s ;
|
|
||||||
-- n = num.n
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- NoNum = {s = []; n = Pl } ;
|
|
||||||
--
|
|
||||||
-- DefArt = {s = \\_ => artDef} ;
|
|
||||||
--
|
|
||||||
-- IndefArt = {
|
|
||||||
-- s = table {
|
|
||||||
-- Sg => artIndef ;
|
|
||||||
-- Pl => []
|
|
||||||
-- }
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- MassDet = {s = \\_ => []} ;
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--
|
|
||||||
---- from Structural 19/4/2008
|
|
||||||
--
|
|
||||||
-- that_NP = regNP "that" Sg ;
|
|
||||||
-- these_NP = regNP "these" Pl ;
|
|
||||||
-- this_NP = regNP "this" Sg ;
|
|
||||||
-- those_NP = regNP "those" Pl ;
|
|
||||||
--
|
|
||||||
--}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,94 +1,121 @@
|
|||||||
concrete CatHun of Cat = CommonX ** open ResHun, Prelude in
|
concrete CatHun of Cat = CommonX ** open ResHun, Prelude in {
|
||||||
{
|
|
||||||
|
flags optimize=all_subs ;
|
||||||
|
|
||||||
lincat
|
lincat
|
||||||
--
|
|
||||||
---- exception to CommonX, due to the distinction contracted/uncontracted negation
|
--2 Sentences and clauses
|
||||||
--
|
-- Constructed in SentenceHun, and also in IdiomHun
|
||||||
-- Pol = {s : Str ; p : CPolarity} ;
|
|
||||||
--
|
S = ResHun.Sentence ;
|
||||||
---- Tensed/Untensed
|
QS = SS ;
|
||||||
--
|
RS = ResHun.RP ;
|
||||||
-- S = {s : Str} ;
|
-- relative sentence. Tense and polarity fixed,
|
||||||
-- QS = {s : QForm => Str} ;
|
-- but agreement may depend on the CN/NP it modifies.
|
||||||
-- RS = {s : Agr => Str ; c : NPCase} ; -- c for it clefts
|
|
||||||
-- SSlash = {s : Str ; c2 : Str} ;
|
Cl = ResHun.ClSlash ;
|
||||||
--
|
ClSlash = ResHun.ClSlash ;
|
||||||
---- Sentence
|
SSlash = ResHun.Sentence ; -- sentence missing NP; e.g. "she has looked at"
|
||||||
--
|
Imp = {s : Number => Polarity => Str} ; -- imperative e.g. "look at this"
|
||||||
-- Cl = {s : ResHun.Tense => Anteriority => CPolarity => Order => Str} ;
|
|
||||||
-- ClSlash = {
|
--2 Questions and interrogatives
|
||||||
-- s : ResHun.Tense => Anteriority => CPolarity => Order => Str ;
|
|
||||||
-- c2 : Str
|
-- Constructed in QuestionHun.
|
||||||
-- } ;
|
|
||||||
-- Imp = {s : CPolarity => ImpForm => Str} ;
|
QCl = ResHun.QClause ;
|
||||||
--
|
IComp = SS ; -- interrogative complement of copula e.g. "where"
|
||||||
---- Question
|
IDet = ResHun.Determiner ; -- interrogative determiner e.g. "how many"
|
||||||
--
|
IQuant = ResHun.Quant ; -- interrogative quantifier e.g. "which"
|
||||||
-- QCl = {s : ResHun.Tense => Anteriority => CPolarity => QForm => Str} ;
|
IP = ResHun.NounPhrase ; -- interrogative pronoun e.g. "who"
|
||||||
-- IP = {s : NPCase => Str ; n : Number} ;
|
|
||||||
-- IComp = {s : Str} ;
|
--2 Subord clauses and pronouns
|
||||||
-- IDet = {s : Str ; n : Number} ;
|
|
||||||
-- IQuant = {s : Number => Str} ;
|
RCl = ResHun.RClause ;
|
||||||
--
|
RP = ResHun.RP ;
|
||||||
---- Relative
|
|
||||||
--
|
--2 Verb phrases
|
||||||
-- RCl = {
|
|
||||||
-- s : ResHun.Tense => Anteriority => CPolarity => Agr => Str ;
|
-- Constructed in VerbHun.
|
||||||
-- c : NPCase
|
|
||||||
-- } ;
|
VP = ResHun.VerbPhrase ;
|
||||||
-- RP = {s : RCase => Str ; a : RAgr} ;
|
VPSlash = ResHun.VPSlash ;
|
||||||
--
|
Comp = ResHun.VerbPhrase ;
|
||||||
---- Verb
|
|
||||||
--
|
|
||||||
-- VP = ResHun.VP ;
|
--2 Adjectival phrases
|
||||||
-- VPSlash = ResHun.VP ** {c2 : Str} ;
|
|
||||||
-- Comp = {s : Agr => Str} ;
|
-- Constructed in AdjectiveHun.
|
||||||
--
|
|
||||||
---- Adjective
|
AP = ResHun.AdjPhrase ;
|
||||||
--
|
|
||||||
-- AP = {s : Agr => Str ; isPre : Bool} ;
|
|
||||||
--
|
--2 Nouns and noun phrases
|
||||||
---- Noun
|
|
||||||
--
|
-- Constructed in NounHun.
|
||||||
N = {s : Number => Case => Str} ;
|
-- Many atomic noun phrases e.g. "everybody"
|
||||||
-- NP = {s : NPCase => Str ; a : Agr} ;
|
-- are constructed in StructuralHun.
|
||||||
-- Pron = {s : NPCase => Str ; sp : Case => Str ; a : Agr} ;
|
-- The determiner structure is
|
||||||
-- Det = {s : Str ; sp : NPCase => Str ; n : Number ; hasNum : Bool} ;
|
-- ``` Predet (QuantSg | QuantPl Num) Ord
|
||||||
-- Predet = {s : Str} ;
|
-- as defined in NounHun.
|
||||||
-- Ord = { s : Case => Str } ;
|
|
||||||
-- Num = {s : Case => Str ; n : Number ; hasCard : Bool} ;
|
CN = ResHun.Noun ;
|
||||||
-- Card = {s : Case => Str ; n : Number} ;
|
NP = ResHun.NounPhrase ;
|
||||||
-- Quant = {s : Bool => Number => Str ; sp : Bool => Number => NPCase => Str} ;
|
Pron = ResHun.Pronoun ; --Pronouns need enough info to turn it into NP or Quant.
|
||||||
--
|
Det = ResHun.Determiner ;
|
||||||
---- Numeral
|
Predet = {s : Str} ;
|
||||||
--
|
Quant = ResHun.Quant ;
|
||||||
-- Numeral = {s : CardOrd => Case => Str ; n : Number} ;
|
Num = ResHun.Num ;
|
||||||
-- Digits = {s : CardOrd => Case => Str ; n : Number ; tail : DTail} ;
|
Ord = {
|
||||||
--
|
s : Number => Str ; -- Number => Case => Str ; -- Ord can come from AP and become AP again
|
||||||
---- Structural
|
n : Number -- Ord can come from Num, which has inherent number
|
||||||
--
|
} ;
|
||||||
-- Conj = {s1,s2 : Str ; n : Number} ;
|
DAP = ResHun.Determiner ;
|
||||||
-----b Conj = {s : Str ; n : Number} ;
|
|
||||||
-----b DConj = {s1,s2 : Str ; n : Number} ;
|
|
||||||
-- Subj = {s : Str} ;
|
--2 Numerals
|
||||||
-- Prep = {s : Str} ;
|
|
||||||
--
|
-- Constructed in NumeralHun.
|
||||||
---- Open lexical classes, e.g. Lexicon
|
|
||||||
--
|
Card = ResHun.Numeral ;
|
||||||
-- V, VS, VQ, VA = Verb ; -- = {s : VForm => Str} ;
|
Numeral = ResHun.Numeral ;
|
||||||
-- V2, V2A, V2Q, V2S = Verb ** {c2 : Str} ;
|
Digits = {s : CardOrd => Str ; n : Number} ;
|
||||||
-- V3 = Verb ** {c2, c3 : Str} ;
|
|
||||||
-- VV = {s : VVForm => Str ; typ : VVType} ;
|
|
||||||
-- V2V = Verb ** {c2,c3 : Str ; typ : VVType} ;
|
|
||||||
--
|
--2 Structural words
|
||||||
-- A = {s : AForm => Str} ;
|
|
||||||
-- A2 = {s : AForm => Str ; c2 : Str} ;
|
-- Constructed in StructuralHun.
|
||||||
--
|
Conj = ResHun.Conj ;
|
||||||
-- N = {s : Number => Case => Str ; g : Gender} ;
|
Subj = SS ;
|
||||||
-- N2 = {s : Number => Case => Str ; g : Gender} ** {c2 : Str} ;
|
Prep = ResHun.Postposition ;
|
||||||
-- N3 = {s : Number => Case => Str ; g : Gender} ** {c2,c3 : Str} ;
|
|
||||||
-- PN = {s : Case => Str ; g : Gender} ;
|
|
||||||
--
|
|
||||||
--}
|
--2 Words of open classes
|
||||||
|
|
||||||
|
-- These are constructed in LexiconHun and in
|
||||||
|
-- additional lexicon modules.
|
||||||
|
|
||||||
|
VS, -- sentence-complement verb e.g. "claim"
|
||||||
|
-- TODO: eventually different lincats
|
||||||
|
VQ, -- question-complement verb e.g. "wonder"
|
||||||
|
VA, -- adjective-complement verb e.g. "look"
|
||||||
|
V = ResHun.Verb ;
|
||||||
|
|
||||||
|
VV, -- verb-phrase-complement verb e.g. "want"
|
||||||
|
V2A, -- verb with NP and AP complement e.g. "paint"
|
||||||
|
V2V, -- verb with NP and V complement e.g. "cause"
|
||||||
|
V2S, -- verb with NP and S complement e.g. "tell"
|
||||||
|
V2Q, -- verb with NP and Q complement e.g. "ask"
|
||||||
|
V2 = ResHun.Verb2 ;
|
||||||
|
V3 = ResHun.Verb3 ;
|
||||||
|
|
||||||
|
A = ResHun.Adjective ;
|
||||||
|
A2 = ResHun.Adjective2 ;
|
||||||
|
|
||||||
|
N,
|
||||||
|
N2,
|
||||||
|
N3 = ResHun.Noun ;
|
||||||
|
PN = ResHun.NounPhrase ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,58 +1,65 @@
|
|||||||
concrete ConjunctionHun of Conjunction =
|
concrete ConjunctionHun of Conjunction =
|
||||||
CatHun ** open ResHun, Coordination, Prelude in
|
CatHun ** open ResHun, Coordination, Prelude in {
|
||||||
{
|
|
||||||
--{
|
-- Adverb and other simple {s : Str} types.
|
||||||
--
|
lincat
|
||||||
-- flags optimize=all_subs ;
|
[Adv],[AdV],[IAdv],[S] = {s1,s2 : Str} ;
|
||||||
--
|
|
||||||
-- lin
|
lin
|
||||||
--
|
BaseAdv, BaseAdV, BaseIAdv, BaseS = twoSS ;
|
||||||
-- ConjS = conjunctDistrSS ;
|
ConsAdv, ConsAdV, ConsIAdv, ConsS = consrSS comma ;
|
||||||
--
|
ConjAdv, ConjAdV, ConjIAdv, ConjS = conjunctDistrSS ;
|
||||||
-- ConjAdv = conjunctDistrSS ;
|
|
||||||
--
|
-- Adjectival phrases
|
||||||
-- ConjNP conj ss = conjunctDistrTable NPCase conj ss ** {
|
lincat
|
||||||
-- a = conjAgr (agrP3 conj.n) ss.a
|
[AP] = {s1,s2 : Number => Str} ;
|
||||||
-- } ;
|
|
||||||
--
|
lin
|
||||||
-- ConjAP conj ss = conjunctDistrTable Agr conj ss ** {
|
BaseAP x y =
|
||||||
-- isPre = ss.isPre
|
-- Don't try to have discontinuous comparative forms
|
||||||
-- } ;
|
let xCont : AP = x ** {s = \\n => x.s ! n ++ x.compar} ;
|
||||||
--
|
yCont : AP = y ** {s = \\n => y.s ! n ++ y.compar} ;
|
||||||
-- ConjRS conj ss = conjunctDistrTable Agr conj ss ** {
|
in twoTable Number xCont yCont ;
|
||||||
-- c = ss.c
|
ConsAP a as =
|
||||||
-- } ;
|
let aCont : AP = a ** {s = \\n => a.s ! n ++ a.compar} ;
|
||||||
--
|
in consrTable Number comma aCont as ;
|
||||||
-- ConjIAdv = conjunctDistrSS ;
|
ConjAP co as = conjunctDistrTable Number co as ** {compar = []} ;
|
||||||
--
|
|
||||||
-- ConjCN co ns = conjunctDistrTable2 Number Case co ns ** {g = Neutr} ; --- gender?
|
-- Noun phrases
|
||||||
--
|
lincat
|
||||||
---- These fun's are generated from the list cat's.
|
[NP] = ResHun.BaseNP ** {s1,s2 : Case => Str} ;
|
||||||
--
|
|
||||||
-- BaseS = twoSS ;
|
lin
|
||||||
-- ConsS = consrSS comma ;
|
BaseNP x y = twoTable Case x y ** y ;
|
||||||
-- BaseAdv = twoSS ;
|
ConsNP x xs = consrTable Case comma x xs ** xs ;
|
||||||
-- ConsAdv = consrSS comma ;
|
ConjNP co xs = conjunctDistrTable Case co xs ** xs ;
|
||||||
-- BaseNP x y = twoTable NPCase x y ** {a = conjAgr x.a y.a} ;
|
|
||||||
-- ConsNP xs x = consrTable NPCase comma xs x ** {a = conjAgr xs.a x.a} ;
|
-- Relative sentences
|
||||||
-- BaseAP x y = twoTable Agr x y ** {isPre = andB x.isPre y.isPre} ;
|
lincat
|
||||||
-- ConsAP xs x = consrTable Agr comma xs x ** {isPre = andB xs.isPre x.isPre} ;
|
[RS] = {s1,s2 : Number => Case => Str} ;
|
||||||
-- BaseRS x y = twoTable Agr x y ** {c = y.c} ;
|
|
||||||
-- ConsRS xs x = consrTable Agr comma xs x ** {c = xs.c} ;
|
lin
|
||||||
-- BaseIAdv = twoSS ;
|
BaseRS = twoTable2 Number Case ;
|
||||||
-- ConsIAdv = consrSS comma ;
|
ConsRS = consrTable2 Number Case comma ;
|
||||||
-- BaseCN = twoTable2 Number Case ;
|
ConjRS = conjunctDistrTable2 Number Case ;
|
||||||
-- ConsCN = consrTable2 Number Case comma ;
|
|
||||||
--
|
{-
|
||||||
-- lincat
|
lincat
|
||||||
-- [S] = {s1,s2 : Str} ;
|
[CN] = { } ;
|
||||||
-- [Adv] = {s1,s2 : Str} ;
|
|
||||||
-- [IAdv] = {s1,s2 : Str} ;
|
lin
|
||||||
-- [NP] = {s1,s2 : NPCase => Str ; a : Agr} ;
|
BaseCN = {} ;
|
||||||
-- [AP] = {s1,s2 : Agr => Str ; isPre : Bool} ;
|
ConsCN = {} ;
|
||||||
-- [RS] = {s1,s2 : Agr => Str ; c : NPCase} ;
|
ConjCN co cs = conjunctDistrTable … co cs ** cs ;
|
||||||
-- [CN] = {s1,s2 : Number => Case => Str} ;
|
|
||||||
--
|
lincat
|
||||||
--}
|
[DAP] =
|
||||||
|
|
||||||
|
lin
|
||||||
|
BaseDAP x y = x **
|
||||||
|
ConsDAP xs x = xs **
|
||||||
|
ConjDet conj xs = xs **
|
||||||
|
|
||||||
|
-}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
113
src/hungarian/ConstructionHun.gf
Normal file
113
src/hungarian/ConstructionHun.gf
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
concrete ConstructionHun of Construction = CatHun ** open ParadigmsHun in {
|
||||||
|
|
||||||
|
lincat
|
||||||
|
Timeunit = N ;
|
||||||
|
Weekday = N ;
|
||||||
|
Monthday = NP ;
|
||||||
|
Month = N ;
|
||||||
|
Year = NP ;
|
||||||
|
{-
|
||||||
|
lin
|
||||||
|
|
||||||
|
timeunitAdv n time =
|
||||||
|
weekdayPunctualAdv w = ; -- on Sunday
|
||||||
|
weekdayHabitualAdv w = ; -- on Sundays
|
||||||
|
weekdayNextAdv w = -- next Sunday
|
||||||
|
weekdayLastAdv w = -- last Sunday
|
||||||
|
|
||||||
|
monthAdv m = mkAdv in_Prep (mkNP m) ;
|
||||||
|
yearAdv y = mkAdv in_Prep y ;
|
||||||
|
dayMonthAdv d m = ; -- on 17 May
|
||||||
|
monthYearAdv m y = ; -- in May 2012
|
||||||
|
dayMonthYearAdv d m y = ; -- on 17 May 2013
|
||||||
|
|
||||||
|
intYear = symb ;
|
||||||
|
intMonthday = symb ;
|
||||||
|
|
||||||
|
lincat Language = N ;
|
||||||
|
|
||||||
|
lin InLanguage l = mkAdv ???_Prep (mkNP l) ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
weekdayN w = w ;
|
||||||
|
monthN m = m ;
|
||||||
|
|
||||||
|
weekdayPN w = mkPN w ;
|
||||||
|
monthPN m = mkPN m ;
|
||||||
|
|
||||||
|
languageCN l = mkCN l ;
|
||||||
|
languageNP l = mkNP l ;
|
||||||
|
|
||||||
|
|
||||||
|
oper mkLanguage : Str -> N = \s -> mkN s ;
|
||||||
|
|
||||||
|
----------------------------------------------
|
||||||
|
---- lexicon of special names
|
||||||
|
|
||||||
|
lin second_Timeunit = mkN "second" ;
|
||||||
|
lin minute_Timeunit = mkN "minute" ;
|
||||||
|
lin hour_Timeunit = mkN "hour" ;
|
||||||
|
lin day_Timeunit = mkN "day" ;
|
||||||
|
lin week_Timeunit = mkN "week" ;
|
||||||
|
lin month_Timeunit = mkN "month" ;
|
||||||
|
lin year_Timeunit = mkN "year" ;
|
||||||
|
|
||||||
|
lin monday_Weekday = mkN "Monday" ;
|
||||||
|
lin tuesday_Weekday = mkN "Tuesday" ;
|
||||||
|
lin wednesday_Weekday = mkN "Wednesday" ;
|
||||||
|
lin thursday_Weekday = mkN "Thursday" ;
|
||||||
|
lin friday_Weekday = mkN "Friday" ;
|
||||||
|
lin saturday_Weekday = mkN "Saturday" ;
|
||||||
|
lin sunday_Weekday = mkN "Sunday" ;
|
||||||
|
|
||||||
|
lin january_Month = mkN "January" ;
|
||||||
|
lin february_Month = mkN "February" ;
|
||||||
|
lin march_Month = mkN "March" ;
|
||||||
|
lin april_Month = mkN "April" ;
|
||||||
|
lin may_Month = mkN "May" ;
|
||||||
|
lin june_Month = mkN "June" ;
|
||||||
|
lin july_Month = mkN "July" ;
|
||||||
|
lin august_Month = mkN "August" ;
|
||||||
|
lin september_Month = mkN "September" ;
|
||||||
|
lin october_Month = mkN "October" ;
|
||||||
|
lin november_Month = mkN "November" ;
|
||||||
|
lin december_Month = mkN "December" ;
|
||||||
|
|
||||||
|
lin afrikaans_Language = mkLanguage "Afrikaans" ;
|
||||||
|
lin amharic_Language = mkLanguage "Amharic" ;
|
||||||
|
lin arabic_Language = mkLanguage "Arabic" ;
|
||||||
|
lin bulgarian_Language = mkLanguage "Bulgarian" ;
|
||||||
|
lin catalan_Language = mkLanguage "Catalan" ;
|
||||||
|
lin chinese_Language = mkLanguage "Chinese" ;
|
||||||
|
lin danish_Language = mkLanguage "Danish" ;
|
||||||
|
lin dutch_Language = mkLanguage "Dutch" ;
|
||||||
|
lin english_Language = mkLanguage "Euslish" ;
|
||||||
|
lin estonian_Language = mkLanguage "Estonian" ;
|
||||||
|
lin finnish_Language = mkLanguage "Finnish" ;
|
||||||
|
lin french_Language = mkLanguage "French" ;
|
||||||
|
lin german_Language = mkLanguage "German" ;
|
||||||
|
lin greek_Language = mkLanguage "Greek" ;
|
||||||
|
lin hebrew_Language = mkLanguage "Hebrew" ;
|
||||||
|
lin hindi_Language = mkLanguage "Hindi" ;
|
||||||
|
lin japanese_Language = mkLanguage "Japanese" ;
|
||||||
|
lin italian_Language = mkLanguage "Italian" ;
|
||||||
|
lin latin_Language = mkLanguage "Latin" ;
|
||||||
|
lin latvian_Language = mkLanguage "Latvian" ;
|
||||||
|
lin maltese_Language = mkLanguage "Maltese" ;
|
||||||
|
lin nepali_Language = mkLanguage "Nepali" ;
|
||||||
|
lin norwegian_Language = mkLanguage "Norwegian" ;
|
||||||
|
lin persian_Language = mkLanguage "Persian" ;
|
||||||
|
lin polish_Language = mkLanguage "Polish" ;
|
||||||
|
lin punjabi_Language = mkLanguage "Punjabi" ;
|
||||||
|
lin romanian_Language = mkLanguage "Romanian" ;
|
||||||
|
lin russian_Language = mkLanguage "Russian" ;
|
||||||
|
lin sindhi_Language = mkLanguage "Sindhi" ;
|
||||||
|
lin spanish_Language = mkLanguage "Spanish" ;
|
||||||
|
lin swahili_Language = mkLanguage "Swahili" ;
|
||||||
|
lin swedish_Language = mkLanguage "Swedish" ;
|
||||||
|
lin thai_Language = mkLanguage "Thai" ;
|
||||||
|
lin turkish_Language = mkLanguage "Turkish" ;
|
||||||
|
lin urdu_Language = mkLanguage "Urdu" ;
|
||||||
|
-}
|
||||||
|
|
||||||
|
} ;
|
||||||
8
src/hungarian/ExtendHun.gf
Normal file
8
src/hungarian/ExtendHun.gf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
--# -path=.:../common:../abstract
|
||||||
|
|
||||||
|
concrete ExtendHun of Extend = CatHun
|
||||||
|
-- ** ExtendFunctor - []
|
||||||
|
-- with (Grammar=GrammarHun)
|
||||||
|
** open Prelude, ResHun, NounHun in {
|
||||||
|
|
||||||
|
} ;
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
abstract ExtraHunAbs = Extra - [ProDrop] **
|
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
|
||||||
---- uncontracted negative polarity; contracted is the default for PNeg
|
|
||||||
-- fun
|
|
||||||
-- UncNeg : Pol ;
|
|
||||||
--
|
|
||||||
---- freely compounded nouns
|
|
||||||
--
|
|
||||||
-- CompoundCN : CN -> CN -> CN ; -- rock album
|
|
||||||
--
|
|
||||||
-- that_RP : RP ; -- "that" as a relational pronoun (IdRP is "which" / "who")
|
|
||||||
--
|
|
||||||
-- each_Det : Det ;
|
|
||||||
-- any_Quant : Quant ;
|
|
||||||
--
|
|
||||||
---- infinitive without to
|
|
||||||
--
|
|
||||||
-- UttVPShort : VP -> Utt ;
|
|
||||||
--
|
|
||||||
---- emphasizing "do", e.g. "John does walk"
|
|
||||||
--
|
|
||||||
-- do_VV : VV ;
|
|
||||||
--
|
|
||||||
--
|
|
||||||
----- these are obsolete: use UncNeg : Pol instead
|
|
||||||
--
|
|
||||||
-- fun
|
|
||||||
-- UncNegCl : Temp -> Pol -> Cl -> S ;
|
|
||||||
-- UncNegQCl : Temp -> Pol -> QCl -> QS ;
|
|
||||||
-- UncNegRCl : Temp -> Pol -> RCl -> RS ;
|
|
||||||
--
|
|
||||||
-- UncNegImpSg : Pol -> Imp -> Utt; -- do not help yourself
|
|
||||||
-- UncNegImpPl : Pol -> Imp -> Utt; -- do not help yourselves
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,164 +0,0 @@
|
|||||||
concrete ExtraHun of ExtraHunAbs = CatHun **
|
|
||||||
open ResHun, Coordination, Prelude, MorphoHun, ParadigmsHun in
|
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
|
||||||
-- lin
|
|
||||||
-- GenNP np = {s = \\_,_ => np.s ! npGen ; sp = \\_,_,_ => np.s ! npGen} ;
|
|
||||||
-- GenIP ip = {s = \\_ => ip.s ! NCase Gen} ;
|
|
||||||
-- GenRP nu cn = {
|
|
||||||
-- s = \\c => "whose" ++ nu.s ! Nom ++
|
|
||||||
-- case c of {
|
|
||||||
-- RC _ (NCase Gen) => cn.s ! nu.n ! Gen ;
|
|
||||||
-- _ => cn.s ! nu.n ! Nom
|
|
||||||
-- } ;
|
|
||||||
-- a = RAg (agrP3 Sg)
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- ComplBareVS v s = insertObj (\\_ => s.s) (predV v) ;
|
|
||||||
--
|
|
||||||
-- StrandRelSlash rp slash = {
|
|
||||||
-- s = \\t,a,p,ag =>
|
|
||||||
-- rp.s ! RC (fromAgr ag).g NPAcc ++ slash.s ! t ! a ! p ! ODir ++ slash.c2 ;
|
|
||||||
-- c = NPAcc
|
|
||||||
-- } ;
|
|
||||||
-- EmptyRelSlash slash = {
|
|
||||||
-- s = \\t,a,p,_ => slash.s ! t ! a ! p ! ODir ++ slash.c2 ;
|
|
||||||
-- c = NPAcc
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- StrandQuestSlash ip slash =
|
|
||||||
-- {s = \\t,a,b,q =>
|
|
||||||
-- (mkQuestion (ss (ip.s ! NPAcc)) slash).s ! t ! a ! b ! q ++ slash.c2
|
|
||||||
-- };
|
|
||||||
--
|
|
||||||
-- lincat
|
|
||||||
-- VPI = {s : VPIForm => Agr => Str} ;
|
|
||||||
-- [VPI] = {s1,s2 : VPIForm => Agr => Str} ;
|
|
||||||
--
|
|
||||||
-- lin
|
|
||||||
-- BaseVPI = twoTable2 VPIForm Agr ;
|
|
||||||
-- ConsVPI = consrTable2 VPIForm Agr comma ;
|
|
||||||
--
|
|
||||||
-- MkVPI vp = {
|
|
||||||
-- s = \\v,a => vp.ad ++ vp.inf ++ vp.s2 ! a
|
|
||||||
-- } ;
|
|
||||||
-- ConjVPI = conjunctDistrTable2 VPIForm Agr ;
|
|
||||||
-- ComplVPIVV vv vpi =
|
|
||||||
------ insertObj (\\a => infVP vv.typ vpi a) (predVV vv) ;
|
|
||||||
-- let isAux = case vv.typ of {VVAux => True ; _ => False} in
|
|
||||||
-- insertObj (\\a => (if_then_Str isAux [] "to") ++ vpi.s ! VPIInf ! a) (predVV vv) ;
|
|
||||||
--
|
|
||||||
-- lin
|
|
||||||
-- that_RP =
|
|
||||||
-- { s = table {
|
|
||||||
-- RC _ (NCase Gen) => "whose" ;
|
|
||||||
-- RC _ _ => "that" ;
|
|
||||||
-- _ => "that" ---- "in that" ?
|
|
||||||
---- RPrep Neutr => "which" ;
|
|
||||||
---- RPrep _ => "whom"
|
|
||||||
-- } ;
|
|
||||||
-- a = RNoAg
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- each_Det = mkDeterminer Sg "each" ;
|
|
||||||
-- any_Quant = mkQuant "any" "any" ;
|
|
||||||
--
|
|
||||||
---- for VP conjunction
|
|
||||||
--
|
|
||||||
-- param
|
|
||||||
-- VPIForm = VPIInf | VPIPPart ;
|
|
||||||
--
|
|
||||||
-- lincat
|
|
||||||
-- VPS = {s : Agr => Str} ;
|
|
||||||
-- [VPS] = {s1,s2 : Agr => Str} ;
|
|
||||||
--
|
|
||||||
-- lin
|
|
||||||
-- BaseVPS = twoTable Agr ;
|
|
||||||
-- ConsVPS = consrTable Agr comma ;
|
|
||||||
--
|
|
||||||
-- PredVPS np vpi = {s = np.s ! npNom ++ vpi.s ! np.a} ;
|
|
||||||
--
|
|
||||||
-- MkVPS t p vp = {
|
|
||||||
-- s = \\a =>
|
|
||||||
-- let
|
|
||||||
-- verb = vp.s ! t.t ! t.a ! p.p ! ODir ! a ;
|
|
||||||
-- verbf = verb.aux ++ verb.adv ++ verb.fin ++ verb.inf ;
|
|
||||||
-- in t.s ++ p.s ++ vp.ad ++ verbf ++ vp.s2 ! a
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- ConjVPS = conjunctDistrTable Agr ;
|
|
||||||
--
|
|
||||||
-- ICompAP ap = {s = "how" ++ ap.s ! agrP3 Sg} ; ---- IComp should have agr!
|
|
||||||
--
|
|
||||||
-- IAdvAdv adv = {s = "how" ++ adv.s} ;
|
|
||||||
--
|
|
||||||
-- PartVP vp = {
|
|
||||||
-- s = \\a => vp.ad ++ vp.prp ++ vp.s2 ! a ;
|
|
||||||
-- isPre = False ---- depends on whether there are complements
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- EmbedPresPart vp = {s = infVP VVPresPart vp (agrP3 Sg)} ; --- agr
|
|
||||||
--
|
|
||||||
-- UttVPShort vp = {s = infVP VVAux vp (agrP3 Sg)} ;
|
|
||||||
--
|
|
||||||
-- do_VV = {
|
|
||||||
-- s = table {
|
|
||||||
-- VVF VInf => ["do"] ;
|
|
||||||
-- VVF VPres => "does" ;
|
|
||||||
-- VVF VPPart => ["done"] ; ----
|
|
||||||
-- VVF VPresPart => ["doing"] ;
|
|
||||||
-- VVF VPast => ["did"] ; --# notpresent
|
|
||||||
-- VVPastNeg => ["didn't"] ; --# notpresent
|
|
||||||
-- VVPresNeg => "doesn't"
|
|
||||||
-- } ;
|
|
||||||
-- typ = VVAux
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--lin
|
|
||||||
-- UncNeg = {s = [] ; p = CNeg False} ;
|
|
||||||
--
|
|
||||||
-- PassVPSlash vps =
|
|
||||||
-- let
|
|
||||||
-- be = predAux auxBe ;
|
|
||||||
-- ppt = vps.ptp
|
|
||||||
-- in {
|
|
||||||
-- s = be.s ;
|
|
||||||
-- prp = be.prp ;
|
|
||||||
-- ptp = be.ptp ;
|
|
||||||
-- inf = be.inf ;
|
|
||||||
-- ad = vps.ad ;
|
|
||||||
-- s2 = \\a => ppt ++ vps.s2 ! a ---- order
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
--------------
|
|
||||||
----- obsolete: use UncNeg : Pol
|
|
||||||
--
|
|
||||||
-- UncNegCl t p cl = {
|
|
||||||
-- s = t.s ++ p.s ++ cl.s ! t.t ! t.a ! unc p.p ! ODir
|
|
||||||
-- } ;
|
|
||||||
-- UncNegQCl t p cl = {
|
|
||||||
-- s = \\q => t.s ++ p.s ++ cl.s ! t.t ! t.a ! unc p.p ! q
|
|
||||||
-- } ;
|
|
||||||
-- UncNegRCl t p cl = {
|
|
||||||
-- s = \\r => t.s ++ p.s ++ cl.s ! t.t ! t.a ! unc p.p ! r ;
|
|
||||||
-- c = cl.c
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- UncNegImpSg p imp = {s = p.s ++ imp.s ! unc p.p ! ImpF Sg False} ;
|
|
||||||
-- UncNegImpPl p imp = {s = p.s ++ imp.s ! unc p.p ! ImpF Pl False} ;
|
|
||||||
--
|
|
||||||
-- CompoundCN a b = {s = \\n,c => a.s ! Sg ! Nom ++ b.s ! n ! c ; g = b.g} ;
|
|
||||||
--
|
|
||||||
-- oper
|
|
||||||
-- unc : CPolarity -> CPolarity = \x -> case x of {
|
|
||||||
-- CNeg _ => CNeg False ;
|
|
||||||
-- _ => x
|
|
||||||
-- } ;
|
|
||||||
---------
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
--# -path=.:../abstract:../common:prelude
|
concrete GrammarHun of Grammar =
|
||||||
|
NounHun,
|
||||||
concrete GrammarHun of Grammar =
|
VerbHun,
|
||||||
NounHun,
|
|
||||||
VerbHun,
|
|
||||||
AdjectiveHun,
|
AdjectiveHun,
|
||||||
AdverbHun,
|
AdverbHun,
|
||||||
NumeralHun,
|
NumeralHun,
|
||||||
@@ -11,21 +9,12 @@ concrete GrammarHun of Grammar =
|
|||||||
RelativeHun,
|
RelativeHun,
|
||||||
ConjunctionHun,
|
ConjunctionHun,
|
||||||
PhraseHun,
|
PhraseHun,
|
||||||
TextX - [Pol,PPos,PNeg],
|
TextX,
|
||||||
StructuralHun,
|
StructuralHun,
|
||||||
IdiomHun,
|
IdiomHun,
|
||||||
TenseX - [Pol,PPos,PNeg]
|
TenseX
|
||||||
** open ResHun, Prelude in
|
** {
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
|
||||||
--flags startcat = Phr ; unlexer = text ; lexer = text ;
|
|
||||||
--
|
|
||||||
--lin
|
|
||||||
-- PPos = {s = [] ; p = CPos} ;
|
|
||||||
-- PNeg = {s = [] ; p = CNeg True} ; -- contracted: don't
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--} ;
|
|
||||||
|
|
||||||
}
|
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||||
|
|
||||||
|
} ;
|
||||||
|
|||||||
@@ -1,36 +1,47 @@
|
|||||||
concrete IdiomHun of Idiom = CatHun ** open Prelude, ResHun in
|
|
||||||
{
|
--1 Idiom: Idiomatic Expressions
|
||||||
--{
|
|
||||||
--
|
concrete IdiomHun of Idiom = CatHun ** open Prelude, ResHun, VerbHun, NounHun, StructuralHun in {
|
||||||
-- flags optimize=all_subs ;
|
|
||||||
--
|
-- This module defines constructions that are formed in fixed ways,
|
||||||
-- lin
|
-- often different even in closely related languages.
|
||||||
-- ImpersCl vp = mkClause "it" (agrP3 Sg) vp ;
|
|
||||||
-- GenericCl vp = mkClause "one" (agrP3 Sg) vp ;
|
{- lin
|
||||||
--
|
|
||||||
-- CleftNP np rs = mkClause "it" (agrP3 Sg)
|
|
||||||
-- (insertObj (\\_ => rs.s ! np.a)
|
-- ImpersCl : VP -> Cl ; -- it is hot
|
||||||
-- (insertObj (\\_ => np.s ! rs.c) (predAux auxBe))) ;
|
-- GenericCl : VP -> Cl ; -- one sleeps
|
||||||
--
|
ImpersCl,
|
||||||
-- CleftAdv ad s = mkClause "it" (agrP3 Sg)
|
GenericCl = \vp -> predVP impersNP (passVP vp) ;
|
||||||
-- (insertObj (\\_ => conjThat ++ s.s)
|
|
||||||
-- (insertObj (\\_ => ad.s) (predAux auxBe))) ;
|
CleftNP : NP -> RS -> Cl ; -- it is I who did it
|
||||||
--
|
CleftAdv : Adv -> S -> Cl ; -- it is here she slept
|
||||||
-- ExistNP np =
|
|
||||||
-- mkClause "there" (agrP3 (fromAgr np.a).n)
|
-- : NP -> Cl ; -- there is a house
|
||||||
-- (insertObj (\\_ => np.s ! NPAcc) (predAux auxBe)) ;
|
ExistNP np =
|
||||||
--
|
|
||||||
-- ExistIP ip =
|
ExistIP : IP -> QCl ; -- which houses are there
|
||||||
-- mkQuestion (ss (ip.s ! npNom))
|
|
||||||
-- (mkClause "there" (agrP3 ip.n) (predAux auxBe)) ;
|
-- 7/12/2012 generalizations of these
|
||||||
--
|
|
||||||
-- ProgrVP vp = insertObj (\\a => vp.ad ++ vp.prp ++ vp.s2 ! a) (predAux auxBe) ;
|
ExistNPAdv : NP -> Adv -> Cl ; -- there is a house in Paris
|
||||||
--
|
ExistIPAdv : IP -> Adv -> QCl ; -- which houses are there in Paris
|
||||||
-- ImpPl1 vp = {s = "let's" ++ infVP VVAux vp (AgP1 Pl)} ;
|
|
||||||
--
|
-- : VP -> VP ;
|
||||||
-- ImpP3 np vp = {s = "let" ++ np.s ! NPAcc ++ infVP VVAux vp np.a} ;
|
ProgrVP vp = vp ** {
|
||||||
--
|
} ;
|
||||||
--}
|
|
||||||
--
|
|
||||||
|
-- : VP -> Utt ; -- let's go
|
||||||
|
ImpPl1 vp = { } ;
|
||||||
|
|
||||||
|
ImpP3 : NP -> VP -> Utt ; -- let John walk
|
||||||
|
|
||||||
|
-- 3/12/2013 non-reflexive uses of "self"
|
||||||
|
|
||||||
|
SelfAdvVP : VP -> VP ; -- is at home himself
|
||||||
|
SelfAdVVP : VP -> VP ; -- is himself at home
|
||||||
|
SelfNP : NP -> NP ; -- the president himself (is at home)
|
||||||
|
-}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,185 +0,0 @@
|
|||||||
--# -path=.:prelude:../abstract:../common
|
|
||||||
|
|
||||||
concrete IrregHun of IrregHunAbs = CatHun ** open ParadigmsHun in
|
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
|
||||||
--flags optimize=values ;
|
|
||||||
--
|
|
||||||
-- lin
|
|
||||||
-- awake_V = irregV "awake" "awoke" "awoken" ;
|
|
||||||
-- bear_V = irregV "bear" "bore" "born" ;
|
|
||||||
-- beat_V = irregV "beat" "beat" "beat" ;
|
|
||||||
-- become_V = irregV "become" "became" "become" ;
|
|
||||||
-- begin_V = irregV "begin" "began" "begun" ;
|
|
||||||
-- bend_V = irregV "bend" "bent" "bent" ;
|
|
||||||
-- beset_V = irregV "beset" "beset" "beset" ;
|
|
||||||
-- bet_V = irregDuplV "bet" "bet" "bet" ;
|
|
||||||
-- bid_V = irregDuplV "bid" (variants {"bid" ; "bade"}) (variants {"bid" ; "bidden"}) ;
|
|
||||||
-- bind_V = irregV "bind" "bound" "bound" ;
|
|
||||||
-- bite_V = irregV "bite" "bit" "bitten" ;
|
|
||||||
-- bleed_V = irregV "bleed" "bled" "bled" ;
|
|
||||||
-- blow_V = irregV "blow" "blew" "blown" ;
|
|
||||||
-- break_V = irregV "break" "broke" "broken" ;
|
|
||||||
-- breed_V = irregV "breed" "bred" "bred" ;
|
|
||||||
-- bring_V = irregV "bring" "brought" "brought" ;
|
|
||||||
-- broadcast_V = irregV "broadcast" "broadcast" "broadcast" ;
|
|
||||||
-- build_V = irregV "build" "built" "built" ;
|
|
||||||
-- burn_V = irregV "burn" (variants {"burned" ; "burnt"}) (variants {"burned" ; "burnt"}) ;
|
|
||||||
-- burst_V = irregV "burst" "burst" "burst" ;
|
|
||||||
-- buy_V = irregV "buy" "bought" "bought" ;
|
|
||||||
-- cast_V = irregV "cast" "cast" "cast" ;
|
|
||||||
-- catch_V = irregV "catch" "caught" "caught" ;
|
|
||||||
-- choose_V = irregV "choose" "chose" "chosen" ;
|
|
||||||
-- cling_V = irregV "cling" "clung" "clung" ;
|
|
||||||
-- come_V = irregV "come" "came" "come" ;
|
|
||||||
-- cost_V = irregV "cost" "cost" "cost" ;
|
|
||||||
-- creep_V = irregV "creep" "crept" "crept" ;
|
|
||||||
-- cut_V = irregDuplV "cut" "cut" "cut" ;
|
|
||||||
-- deal_V = irregV "deal" "dealt" "dealt" ;
|
|
||||||
-- dig_V = irregDuplV "dig" "dug" "dug" ;
|
|
||||||
-- dive_V = irregV "dive" (variants {"dived" ; "dove"}) "dived" ;
|
|
||||||
-- do_V = mk5V "do" "does" "did" "done" "doing" ;
|
|
||||||
-- draw_V = irregV "draw" "drew" "drawn" ;
|
|
||||||
-- dream_V = irregV "dream" (variants {"dreamed" ; "dreamt"}) (variants {"dreamed" ; "dreamt"}) ;
|
|
||||||
-- drive_V = irregV "drive" "drove" "driven" ;
|
|
||||||
-- drink_V = irregV "drink" "drank" "drunk" ;
|
|
||||||
-- eat_V = irregV "eat" "ate" "eaten" ;
|
|
||||||
-- fall_V = irregV "fall" "fell" "fallen" ;
|
|
||||||
-- feed_V = irregV "feed" "fed" "fed" ;
|
|
||||||
-- feel_V = irregV "feel" "felt" "felt" ;
|
|
||||||
-- fight_V = irregV "fight" "fought" "fought" ;
|
|
||||||
-- find_V = irregV "find" "found" "found" ;
|
|
||||||
-- fit_V = irregDuplV "fit" "fit" "fit" ;
|
|
||||||
-- flee_V = irregV "flee" "fled" "fled" ;
|
|
||||||
-- fling_V = irregV "fling" "flung" "flung" ;
|
|
||||||
-- fly_V = irregV "fly" "flew" "flown" ;
|
|
||||||
-- forbid_V = irregDuplV "forbid" "forbade" "forbidden" ;
|
|
||||||
-- forget_V = irregDuplV "forget" "forgot" "forgotten" ;
|
|
||||||
-- forgive_V = irregV "forgive" "forgave" "forgiven" ;
|
|
||||||
-- forsake_V = irregV "forsake" "forsook" "forsaken" ;
|
|
||||||
-- freeze_V = irregV "freeze" "froze" "frozen" ;
|
|
||||||
-- get_V = irregDuplV "get" "got" "gotten" ;
|
|
||||||
-- give_V = irregV "give" "gave" "given" ;
|
|
||||||
-- go_V = mk5V "go" "goes" "went" "gone" "going" ;
|
|
||||||
-- grind_V = irregV "grind" "ground" "ground" ;
|
|
||||||
-- grow_V = irregV "grow" "grew" "grown" ;
|
|
||||||
-- hang_V = irregV "hang" "hung" "hung" ;
|
|
||||||
-- have_V = mk5V "have" "has" "had" "had" "having" ;
|
|
||||||
-- hear_V = irregV "hear" "heard" "heard" ;
|
|
||||||
-- hide_V = irregV "hide" "hid" "hidden" ;
|
|
||||||
-- hit_V = irregDuplV "hit" "hit" "hit" ;
|
|
||||||
-- hold_V = irregV "hold" "held" "held" ;
|
|
||||||
-- hurt_V = irregV "hurt" "hurt" "hurt" ;
|
|
||||||
-- keep_V = irregV "keep" "kept" "kept" ;
|
|
||||||
-- kneel_V = irregV "kneel" "knelt" "knelt" ;
|
|
||||||
-- knit_V = irregDuplV "knit" "knit" "knit" ;
|
|
||||||
-- know_V = irregV "know" "knew" "know" ;
|
|
||||||
-- lay_V = irregV "lay" "laid" "laid" ;
|
|
||||||
-- lead_V = irregV "lead" "led" "led" ;
|
|
||||||
-- leap_V = irregV "leap" (variants {"leaped" ; "lept"}) (variants {"leaped" ; "lept"}) ;
|
|
||||||
-- learn_V = irregV "learn" (variants {"learned" ; "learnt"}) (variants {"learned" ; "learnt"}) ;
|
|
||||||
-- leave_V = irregV "leave" "left" "left" ;
|
|
||||||
-- lend_V = irregV "lend" "lent" "lent" ;
|
|
||||||
-- let_V = irregDuplV "let" "let" "let" ;
|
|
||||||
-- lie_V = irregV "lie" "lay" "lain" ;
|
|
||||||
-- light_V = irregV "light" (variants {"lighted" ; "lit"}) "lighted" ;
|
|
||||||
-- lose_V = irregV "lose" "lost" "lost" ;
|
|
||||||
-- make_V = irregV "make" "made" "made" ;
|
|
||||||
-- mean_V = irregV "mean" "meant" "meant" ;
|
|
||||||
-- meet_V = irregV "meet" "met" "met" ;
|
|
||||||
-- misspell_V = irregV "misspell" (variants {"misspelled" ; "misspelt"}) (variants {"misspelled" ; "misspelt"}) ;
|
|
||||||
-- mistake_V = irregV "mistake" "mistook" "mistaken" ;
|
|
||||||
-- mow_V = irregV "mow" "mowed" (variants {"mowed" ; "mown"}) ;
|
|
||||||
-- overcome_V = irregV "overcome" "overcame" "overcome" ;
|
|
||||||
-- overdo_V = mk5V "overdo" "overdoes" "overdid" "overdone" "overdoing" ;
|
|
||||||
-- overtake_V = irregV "overtake" "overtook" "overtaken" ;
|
|
||||||
-- overthrow_V = irregV "overthrow" "overthrew" "overthrown" ;
|
|
||||||
-- pay_V = irregV "pay" "paid" "paid" ;
|
|
||||||
-- plead_V = irregV "plead" "pled" "pled" ;
|
|
||||||
-- prove_V = irregV "prove" "proved" (variants {"proved" ; "proven"}) ;
|
|
||||||
-- put_V = irregDuplV "put" "put" "put" ;
|
|
||||||
-- quit_V = irregDuplV "quit" "quit" "quit" ;
|
|
||||||
-- read_V = irregV "read" "read" "read" ;
|
|
||||||
-- rid_V = irregDuplV "rid" "rid" "rid" ;
|
|
||||||
-- ride_V = irregV "ride" "rode" "ridden" ;
|
|
||||||
-- ring_V = irregV "ring" "rang" "rung" ;
|
|
||||||
-- rise_V = irregV "rise" "rose" "risen" ;
|
|
||||||
-- run_V = irregDuplV "run" "ran" "run" ;
|
|
||||||
-- saw_V = irregV "saw" "sawed" (variants {"sawed" ; "sawn"}) ;
|
|
||||||
-- say_V = irregV "say" "said" "said" ;
|
|
||||||
-- see_V = irregV "see" "saw" "seen" ;
|
|
||||||
-- seek_V = irregV "seek" "sought" "sought" ;
|
|
||||||
-- sell_V = irregV "sell" "sold" "sold" ;
|
|
||||||
-- send_V = irregV "send" "sent" "sent" ;
|
|
||||||
-- set_V = irregDuplV "set" "set" "set" ;
|
|
||||||
-- sew_V = irregV "sew" "sewed" (variants {"sewed" ; "sewn"}) ;
|
|
||||||
-- shake_V = irregV "shake" "shook" "shaken" ;
|
|
||||||
-- shave_V = irregV "shave" "shaved" (variants {"shaved" ; "shaven"}) ;
|
|
||||||
-- shear_V = irregV "shear" "shore" "shorn" ;
|
|
||||||
-- shed_V = irregDuplV "shed" "shed" "shed" ;
|
|
||||||
-- shine_V = irregV "shine" "shone" "shone" ;
|
|
||||||
-- shoe_V = irregV "shoe" "shoed" (variants {"shoed" ; "shod"}) ;
|
|
||||||
-- shoot_V = irregV "shoot" "shot" "shot" ;
|
|
||||||
-- show_V = irregV "show" "showed" (variants {"showed" ; "shown"}) ;
|
|
||||||
-- shrink_V = irregV "shrink" "shrank" "shrunk" ;
|
|
||||||
-- shut_V = irregDuplV "shut" "shut" "shut" ;
|
|
||||||
-- sing_V = irregV "sing" "sang" "sung" ;
|
|
||||||
-- sink_V = irregV "sink" "sank" "sunk" ;
|
|
||||||
-- sit_V = irregDuplV "sit" "sat" "sat" ;
|
|
||||||
-- sleep_V = irregV "sleep" "slept" "slept" ;
|
|
||||||
-- slay_V = irregV "slay" "slew" "slain" ;
|
|
||||||
-- slide_V = irregV "slide" "slid" "slid" ;
|
|
||||||
-- sling_V = irregV "sling" "slung" "slung" ;
|
|
||||||
-- slit_V = irregDuplV "slit" "slit" "slit" ;
|
|
||||||
-- smite_V = irregV "smite" "smote" "smitten" ;
|
|
||||||
-- sow_V = irregV "sow" "sowed" (variants {"sowed" ; "sown"}) ;
|
|
||||||
-- speak_V = irregV "speak" "spoke" "spoken" ;
|
|
||||||
-- speed_V = irregV "speed" "sped" "sped" ;
|
|
||||||
-- spend_V = irregV "spend" "spent" "spent" ;
|
|
||||||
-- spill_V = irregV "spill" (variants {"spilled" ; "spilt"}) (variants {"spilled" ; "spilt"}) ;
|
|
||||||
-- spin_V = irregDuplV "spin" "spun" "spun" ;
|
|
||||||
-- spit_V = irregDuplV "spit" (variants {"spit" ; "spat"}) "spit" ;
|
|
||||||
-- split_V = irregDuplV "split" "split" "split" ;
|
|
||||||
-- spread_V = irregV "spread" "spread" "spread" ;
|
|
||||||
-- spring_V = irregV "spring" (variants {"sprang" ; "sprung"}) "sprung" ;
|
|
||||||
-- stand_V = irregV "stand" "stood" "stood" ;
|
|
||||||
-- steal_V = irregV "steal" "stole" "stolen" ;
|
|
||||||
-- stick_V = irregV "stick" "stuck" "stuck" ;
|
|
||||||
-- sting_V = irregV "sting" "stung" "stung" ;
|
|
||||||
-- stink_V = irregV "stink" "stank" "stunk" ;
|
|
||||||
-- stride_V = irregV "stride" "strod" "stridden" ;
|
|
||||||
-- strike_V = irregV "strike" "struck" "struck" ;
|
|
||||||
-- string_V = irregV "string" "strung" "strung" ;
|
|
||||||
-- strive_V = irregV "strive" "strove" "striven" ;
|
|
||||||
-- swear_V = irregV "swear" "swore" "sworn" ;
|
|
||||||
-- sweep_V = irregV "sweep" "swept" "swept" ;
|
|
||||||
-- swell_V = irregV "swell" "swelled" (variants {"swelled" ; "swollen"}) ;
|
|
||||||
-- swim_V = irregDuplV "swim" "swam" "swum" ;
|
|
||||||
-- swing_V = irregV "swing" "swung" "swung" ;
|
|
||||||
-- take_V = irregV "take" "took" "taken" ;
|
|
||||||
-- teach_V = irregV "teach" "taught" "taught" ;
|
|
||||||
-- tear_V = irregV "tear" "tore" "torn" ;
|
|
||||||
-- tell_V = irregV "tell" "told" "told" ;
|
|
||||||
-- think_V = irregV "think" "thought" "thought" ;
|
|
||||||
-- thrive_V = irregV "thrive" (variants {"thrived" ; "throve"}) "thrived" ;
|
|
||||||
-- throw_V = irregV "throw" "threw" "thrown" ;
|
|
||||||
-- thrust_V = irregV "thrust" "thrust" "thrust" ;
|
|
||||||
-- tread_V = irregV "tread" "trod" "trodden" ;
|
|
||||||
-- understand_V = irregV "understand" "understood" "understood" ;
|
|
||||||
-- uphold_V = irregV "uphold" "upheld" "upheld" ;
|
|
||||||
-- upset_V = irregDuplV "upset" "upset" "upset" ;
|
|
||||||
-- wake_V = irregV "wake" "woke" "woken" ;
|
|
||||||
-- wear_V = irregV "wear" "wore" "worn" ;
|
|
||||||
-- weave_V = irregV "weave" (variants {"weaved" ; "wove"}) (variants {"weaved" ; "woven"}) ;
|
|
||||||
-- wed_V = irregDuplV "wed" "wed" "wed" ;
|
|
||||||
-- weep_V = irregV "weep" "wept" "wept" ;
|
|
||||||
-- wind_V = irregV "wind" "wound" "wound" ;
|
|
||||||
-- win_V = irregDuplV "win" "won" "won" ;
|
|
||||||
-- withhold_V = irregV "withhold" "withheld" "withheld" ;
|
|
||||||
-- withstand_V = irregV "withstand" "withstood" "withstood" ;
|
|
||||||
-- wring_V = irregV "wring" "wrung" "wrung" ;
|
|
||||||
-- write_V = irregV "write" "wrote" "written" ;
|
|
||||||
--}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,180 +0,0 @@
|
|||||||
abstract IrregHunAbs = Cat **
|
|
||||||
{
|
|
||||||
--{
|
|
||||||
--fun
|
|
||||||
-- awake_V : V ;
|
|
||||||
-- bear_V : V ;
|
|
||||||
-- beat_V : V ;
|
|
||||||
-- become_V : V ;
|
|
||||||
-- begin_V : V ;
|
|
||||||
-- bend_V : V ;
|
|
||||||
-- beset_V : V ;
|
|
||||||
-- bet_V : V ;
|
|
||||||
-- bid_V : V ;
|
|
||||||
-- bind_V : V ;
|
|
||||||
-- bite_V : V ;
|
|
||||||
-- bleed_V : V ;
|
|
||||||
-- blow_V : V ;
|
|
||||||
-- break_V : V ;
|
|
||||||
-- breed_V : V ;
|
|
||||||
-- bring_V : V ;
|
|
||||||
-- broadcast_V : V ;
|
|
||||||
-- build_V : V ;
|
|
||||||
-- burn_V : V ;
|
|
||||||
-- burst_V : V ;
|
|
||||||
-- buy_V : V ;
|
|
||||||
-- cast_V : V ;
|
|
||||||
-- catch_V : V ;
|
|
||||||
-- choose_V : V ;
|
|
||||||
-- cling_V : V ;
|
|
||||||
-- come_V : V ;
|
|
||||||
-- cost_V : V ;
|
|
||||||
-- creep_V : V ;
|
|
||||||
-- cut_V : V ;
|
|
||||||
-- deal_V : V ;
|
|
||||||
-- dig_V : V ;
|
|
||||||
-- dive_V : V ;
|
|
||||||
-- do_V : V ;
|
|
||||||
-- draw_V : V ;
|
|
||||||
-- dream_V : V ;
|
|
||||||
-- drive_V : V ;
|
|
||||||
-- drink_V : V ;
|
|
||||||
-- eat_V : V ;
|
|
||||||
-- fall_V : V ;
|
|
||||||
-- feed_V : V ;
|
|
||||||
-- feel_V : V ;
|
|
||||||
-- fight_V : V ;
|
|
||||||
-- find_V : V ;
|
|
||||||
-- fit_V : V ;
|
|
||||||
-- flee_V : V ;
|
|
||||||
-- fling_V : V ;
|
|
||||||
-- fly_V : V ;
|
|
||||||
-- forbid_V : V ;
|
|
||||||
-- forget_V : V ;
|
|
||||||
-- forgive_V : V ;
|
|
||||||
-- forsake_V : V ;
|
|
||||||
-- freeze_V : V ;
|
|
||||||
-- get_V : V ;
|
|
||||||
-- give_V : V ;
|
|
||||||
-- go_V : V ;
|
|
||||||
-- grind_V : V ;
|
|
||||||
-- grow_V : V ;
|
|
||||||
-- hang_V : V ;
|
|
||||||
-- have_V : V ;
|
|
||||||
-- hear_V : V ;
|
|
||||||
-- hide_V : V ;
|
|
||||||
-- hit_V : V ;
|
|
||||||
-- hold_V : V ;
|
|
||||||
-- hurt_V : V ;
|
|
||||||
-- keep_V : V ;
|
|
||||||
-- kneel_V : V ;
|
|
||||||
-- knit_V : V ;
|
|
||||||
-- know_V : V ;
|
|
||||||
-- lay_V : V ;
|
|
||||||
-- lead_V : V ;
|
|
||||||
-- leap_V : V ;
|
|
||||||
-- learn_V : V ;
|
|
||||||
-- leave_V : V ;
|
|
||||||
-- lend_V : V ;
|
|
||||||
-- let_V : V ;
|
|
||||||
-- lie_V : V ;
|
|
||||||
-- light_V : V ;
|
|
||||||
-- lose_V : V ;
|
|
||||||
-- make_V : V ;
|
|
||||||
-- mean_V : V ;
|
|
||||||
-- meet_V : V ;
|
|
||||||
-- misspell_V : V ;
|
|
||||||
-- mistake_V : V ;
|
|
||||||
-- mow_V : V ;
|
|
||||||
-- overcome_V : V ;
|
|
||||||
-- overdo_V : V ;
|
|
||||||
-- overtake_V : V ;
|
|
||||||
-- overthrow_V : V ;
|
|
||||||
-- pay_V : V ;
|
|
||||||
-- plead_V : V ;
|
|
||||||
-- prove_V : V ;
|
|
||||||
-- put_V : V ;
|
|
||||||
-- quit_V : V ;
|
|
||||||
-- read_V : V ;
|
|
||||||
-- rid_V : V ;
|
|
||||||
-- ride_V : V ;
|
|
||||||
-- ring_V : V ;
|
|
||||||
-- rise_V : V ;
|
|
||||||
-- run_V : V ;
|
|
||||||
-- saw_V : V ;
|
|
||||||
-- say_V : V ;
|
|
||||||
-- see_V : V ;
|
|
||||||
-- seek_V : V ;
|
|
||||||
-- sell_V : V ;
|
|
||||||
-- send_V : V ;
|
|
||||||
-- set_V : V ;
|
|
||||||
-- sew_V : V ;
|
|
||||||
-- shake_V : V ;
|
|
||||||
-- shave_V : V ;
|
|
||||||
-- shear_V : V ;
|
|
||||||
-- shed_V : V ;
|
|
||||||
-- shine_V : V ;
|
|
||||||
-- shoe_V : V ;
|
|
||||||
-- shoot_V : V ;
|
|
||||||
-- show_V : V ;
|
|
||||||
-- shrink_V : V ;
|
|
||||||
-- shut_V : V ;
|
|
||||||
-- sing_V : V ;
|
|
||||||
-- sink_V : V ;
|
|
||||||
-- sit_V : V ;
|
|
||||||
-- sleep_V : V ;
|
|
||||||
-- slay_V : V ;
|
|
||||||
-- slide_V : V ;
|
|
||||||
-- sling_V : V ;
|
|
||||||
-- slit_V : V ;
|
|
||||||
-- smite_V : V ;
|
|
||||||
-- sow_V : V ;
|
|
||||||
-- speak_V : V ;
|
|
||||||
-- speed_V : V ;
|
|
||||||
-- spend_V : V ;
|
|
||||||
-- spill_V : V ;
|
|
||||||
-- spin_V : V ;
|
|
||||||
-- spit_V : V ;
|
|
||||||
-- split_V : V ;
|
|
||||||
-- spread_V : V ;
|
|
||||||
-- spring_V : V ;
|
|
||||||
-- stand_V : V ;
|
|
||||||
-- steal_V : V ;
|
|
||||||
-- stick_V : V ;
|
|
||||||
-- sting_V : V ;
|
|
||||||
-- stink_V : V ;
|
|
||||||
-- stride_V : V ;
|
|
||||||
-- strike_V : V ;
|
|
||||||
-- string_V : V ;
|
|
||||||
-- strive_V : V ;
|
|
||||||
-- swear_V : V ;
|
|
||||||
-- sweep_V : V ;
|
|
||||||
-- swell_V : V ;
|
|
||||||
-- swim_V : V ;
|
|
||||||
-- swing_V : V ;
|
|
||||||
-- take_V : V ;
|
|
||||||
-- teach_V : V ;
|
|
||||||
-- tear_V : V ;
|
|
||||||
-- tell_V : V ;
|
|
||||||
-- think_V : V ;
|
|
||||||
-- thrive_V : V ;
|
|
||||||
-- throw_V : V ;
|
|
||||||
-- thrust_V : V ;
|
|
||||||
-- tread_V : V ;
|
|
||||||
-- understand_V : V ;
|
|
||||||
-- uphold_V : V ;
|
|
||||||
-- upset_V : V ;
|
|
||||||
-- wake_V : V ;
|
|
||||||
-- wear_V : V ;
|
|
||||||
-- weave_V : V ;
|
|
||||||
-- wed_V : V ;
|
|
||||||
-- weep_V : V ;
|
|
||||||
-- wind_V : V ;
|
|
||||||
-- win_V : V ;
|
|
||||||
-- withhold_V : V ;
|
|
||||||
-- withstand_V : V ;
|
|
||||||
-- wring_V : V ;
|
|
||||||
-- write_V : V ;
|
|
||||||
--}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,14 +1,4 @@
|
|||||||
--# -path=.:../abstract:../common:../prelude
|
concrete LangHun of Lang =
|
||||||
|
|
||||||
concrete LangHun of Lang =
|
|
||||||
GrammarHun,
|
GrammarHun,
|
||||||
LexiconHun
|
LexiconHun,
|
||||||
**
|
ConstructionHun ;
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
|
||||||
--flags startcat = Phr ; unlexer = text ; lexer = text ;
|
|
||||||
--
|
|
||||||
--} ;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,383 +1,418 @@
|
|||||||
--# -path=.:prelude
|
concrete LexiconHun of Lexicon = CatHun **
|
||||||
|
open ParadigmsHun, ParamHun, Prelude in {
|
||||||
|
|
||||||
concrete LexiconHun of Lexicon = CatHun **
|
----
|
||||||
open ParadigmsHun, Prelude in
|
-- A
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
|
||||||
flags coding = utf8 ;
|
|
||||||
|
|
||||||
|
-- lin add_V3 = mkV3 "" ;
|
||||||
|
-- lin airplane_N = mkN "" ;
|
||||||
|
-- lin alas_Interj = mkInterj "" ;
|
||||||
|
-- lin already_Adv = mkA "" ;
|
||||||
|
-- lin animal_N = mkN "" ;
|
||||||
|
--lin answer_V2S = mkV2S "válasz" ;
|
||||||
|
-- lin apartment_N = mkN "" ;
|
||||||
|
lin apple_N = mkN "alma" ;
|
||||||
|
lin art_N = mkN "müvészet" ;
|
||||||
|
-- lin ashes_N = mkN "" ;
|
||||||
|
-- lin ask_V2Q = mkV2 "" ;
|
||||||
|
|
||||||
|
----
|
||||||
|
-- B
|
||||||
|
|
||||||
|
lin baby_N = mkN "bébi" ;
|
||||||
|
-- lin back_N = mkN "" ;
|
||||||
|
-- lin bad_A = mkA "" ;
|
||||||
|
lin bank_N = mkN "bank" ;
|
||||||
|
-- lin bark_N = mkN "" ;
|
||||||
|
-- lin beautiful_A = mkA "" ;
|
||||||
|
-- lin become_VA = mkVA "" ;
|
||||||
|
lin beer_N = mkN "sör" ;
|
||||||
|
-- lin beg_V2V = mkV2 "" ;
|
||||||
|
lin belly_N = mkN "has" ;
|
||||||
|
lin big_A = mkA "nagy" ;
|
||||||
|
-- lin bike_N = mkN "" ;
|
||||||
|
lin bird_N = mkN "madár" ;
|
||||||
|
-- lin bite_V2 = mkV2 "" ;
|
||||||
|
lin black_A = mkA "fekete" ;
|
||||||
|
-- lin blood_N = mkN "" ;
|
||||||
|
-- lin blow_V = mkV "" ;
|
||||||
|
lin blue_A = mkA "kék" ;
|
||||||
|
-- lin boat_N = mkN "" ;
|
||||||
|
-- lin bone_N = mkN "" ;
|
||||||
|
-- lin boot_N = mkN "" ;
|
||||||
|
-- lin boss_N = mkN "" ;
|
||||||
|
-- lin book_N = mkN "" ;
|
||||||
|
lin boy_N = mkN "fiú" ;
|
||||||
|
-- lin bread_N = mkN "" ;
|
||||||
|
-- lin break_V2 = mkV2 "" ;
|
||||||
|
-- lin breast_N = mkN "" ;
|
||||||
|
-- lin breathe_V = mkV "" ;
|
||||||
|
-- lin broad_A = mkA "" ;
|
||||||
|
-- lin brother_N2 = mkN "" ;
|
||||||
|
-- lin brown_A = mkA "" ;
|
||||||
|
-- lin burn_V = mkV "" ;
|
||||||
|
-- lin butter_N = mkN "" ;
|
||||||
|
-- lin buy_V2 = mkV2 "" ;
|
||||||
|
|
||||||
|
----
|
||||||
|
-- C
|
||||||
|
|
||||||
|
-- lin camera_N = mkN "" ;
|
||||||
|
-- lin cap_N = mkN "" ;
|
||||||
|
-- lin car_N = mkN "" ;
|
||||||
|
-- lin carpet_N = mkN "" ;
|
||||||
|
lin cat_N = mkN "macska" ;
|
||||||
|
-- lin ceiling_N = mkN "" ;
|
||||||
|
-- lin chair_N = mkN "" ;
|
||||||
|
-- lin cheese_N = mkN "" ;
|
||||||
|
lin child_N = mkN "gyerek" ;
|
||||||
|
-- lin church_N = mkN "" ;
|
||||||
|
lin city_N = mkN "város" ;
|
||||||
|
-- lin clean_A = mkA "" ;
|
||||||
|
-- lin clever_A = mkA "" ;
|
||||||
|
-- lin close_V2 = mkV2 "" ;
|
||||||
|
-- lin cloud_N = mkN "" ;
|
||||||
|
lin coat_N = mkN "kabát" ;
|
||||||
|
-- lin cold_A = mkA "" ;
|
||||||
|
-- lin come_V = mkV "" ;
|
||||||
|
-- lin computer_N = mkN "" ;
|
||||||
|
-- lin correct_A = mkA "" ;
|
||||||
|
-- lin count_V2 = mkV2 "" ;
|
||||||
|
lin country_N = mkN "ország" ;
|
||||||
|
-- lin cousin_N = mkN "" ;
|
||||||
|
-- lin cow_N = mkN "" ;
|
||||||
|
-- lin cut_V2 = mkV2 "" ;
|
||||||
--
|
--
|
||||||
lin
|
-- ----
|
||||||
-- airplane_N = regN "airplane" ;
|
-- -- D
|
||||||
-- alas_Interj = ss "alas" ;
|
|
||||||
-- answer_V2S = mkV2S (mkV "answer" "answered") toP ;
|
|
||||||
-- apartment_N = regN "apartment" ;
|
|
||||||
-- apple_N = regN "apple" ;
|
|
||||||
-- art_N = regN "art" ;
|
|
||||||
-- ask_V2Q = mkV2Q (regV "ask") noPrep ;
|
|
||||||
-- baby_N = regN "baby" ;
|
|
||||||
-- bad_A = mkADeg "bad" "worse" "worst" "badly" ;
|
|
||||||
-- bank_N = regN "bank" ;
|
|
||||||
-- beautiful_A = compoundADeg (regA "beautiful") ;
|
|
||||||
-- become_VA = mkVA (irregV "become" "became" "become") ;
|
|
||||||
-- beer_N = regN "beer" ;
|
|
||||||
-- beg_V2V = mkV2V (regDuplV "beg") noPrep toP ;
|
|
||||||
-- -- prevent_V2V = ingV2V (mkV "prevent") noPrep (mkPrep "from") ;
|
|
||||||
-- -- make_V2V = mkV2V make_V noPrep noPrep ;
|
|
||||||
-- big_A = duplADeg "big" ;
|
|
||||||
-- bike_N = regN "bike" ;
|
|
||||||
-- bird_N = regN "bird" ;
|
|
||||||
-- black_A = regADeg "black" ;
|
|
||||||
-- blue_A = regADeg "blue" ;
|
|
||||||
-- boat_N = regN "boat" ;
|
|
||||||
-- book_N = regN "book" ;
|
|
||||||
-- boot_N = regN "boot" ;
|
|
||||||
-- boss_N = mkN human (regN "boss") ;
|
|
||||||
-- boy_N = mkN masculine (regN "boy") ;
|
|
||||||
-- bread_N = regN "bread" ;
|
|
||||||
-- break_V2 = dirV2 (irregV "break" "broke" "broken") ;
|
|
||||||
-- broad_A = regADeg "broad" ;
|
|
||||||
-- brother_N2 = mkN2 (mkN masculine (mkN "brother")) (mkPrep "of") ;
|
|
||||||
-- brown_A = regADeg "brown" ;
|
|
||||||
-- butter_N = regN "butter" ;
|
|
||||||
-- buy_V2 = dirV2 (irregV "buy" "bought" "bought") ;
|
|
||||||
-- camera_N = regN "camera" ;
|
|
||||||
-- cap_N = regN "cap" ;
|
|
||||||
-- car_N = regN "car" ;
|
|
||||||
-- carpet_N = regN "carpet" ;
|
|
||||||
-- cat_N = regN "cat" ;
|
|
||||||
-- ceiling_N = regN "ceiling" ;
|
|
||||||
-- chair_N = regN "chair" ;
|
|
||||||
-- cheese_N = regN "cheese" ;
|
|
||||||
child_N = mkN "gyerek" ;
|
|
||||||
-- church_N = regN "church" ;
|
|
||||||
-- city_N = regN "city" ;
|
|
||||||
-- clean_A = regADeg "clean" ;
|
|
||||||
-- clever_A = mkA "clever" "cleverer" ;
|
|
||||||
-- close_V2 = dirV2 (regV "close") ;
|
|
||||||
-- coat_N = regN "coat" ;
|
|
||||||
-- cold_A = regADeg "cold" ;
|
|
||||||
-- come_V = (irregV "come" "came" "come") ;
|
|
||||||
-- computer_N = regN "computer" ;
|
|
||||||
-- country_N = regN "country" ;
|
|
||||||
-- cousin_N = mkN human (regN "cousin") ;
|
|
||||||
-- cow_N = regN "cow" ;
|
|
||||||
-- die_V = (regV "die") ;
|
|
||||||
-- dirty_A = regADeg "dirty" ;
|
|
||||||
-- distance_N3 = mkN3 (regN "distance") fromP toP ;
|
|
||||||
-- doctor_N = mkN human (regN "doctor") ;
|
|
||||||
-- dog_N = regN "dog" ;
|
|
||||||
-- door_N = regN "door" ;
|
|
||||||
-- drink_V2 = dirV2 (irregV "drink" "drank" "drunk") ;
|
|
||||||
-- easy_A2V = mkA2V (regA "easy") forP ;
|
|
||||||
-- eat_V2 = dirV2 (irregV "eat" "ate" "eaten") ;
|
|
||||||
-- empty_A = regADeg "empty" ;
|
|
||||||
-- enemy_N = regN "enemy" ;
|
|
||||||
-- factory_N = regN "factory" ;
|
|
||||||
-- father_N2 = mkN2 (mkN masculine (mkN "father")) (mkPrep "of") ;
|
|
||||||
-- fear_VS = mkVS (regV "fear") ;
|
|
||||||
-- find_V2 = dirV2 (irregV "find" "found" "found") ;
|
|
||||||
-- fish_N = mk2N "fish" "fish" ;
|
|
||||||
-- floor_N = regN "floor" ;
|
|
||||||
-- forget_V2 = dirV2 (irregDuplV "forget" "forgot" "forgotten") ;
|
|
||||||
-- fridge_N = regN "fridge" ;
|
|
||||||
-- friend_N = mkN human (regN "friend") ;
|
|
||||||
-- fruit_N = regN "fruit" ;
|
|
||||||
-- fun_AV = mkAV (regA "fun") ;
|
|
||||||
-- garden_N = regN "garden" ;
|
|
||||||
-- girl_N = mkN feminine (regN "girl") ;
|
|
||||||
-- glove_N = regN "glove" ;
|
|
||||||
-- gold_N = regN "gold" ;
|
|
||||||
-- good_A = mkADeg "good" "better" "best" "well" ;
|
|
||||||
-- go_V = mk5V "go" "goes" "went" "gone" "going" ;
|
|
||||||
-- green_A = regADeg "green" ;
|
|
||||||
-- harbour_N = regN "harbour" ;
|
|
||||||
-- hate_V2 = dirV2 (regV "hate") ;
|
|
||||||
-- hat_N = regN "hat" ;
|
|
||||||
-- hear_V2 = dirV2 (irregV "hear" "heard" "heard") ;
|
|
||||||
-- hill_N = regN "hill" ;
|
|
||||||
-- hope_VS = mkVS (regV "hope") ;
|
|
||||||
-- horse_N = regN "horse" ;
|
|
||||||
-- hot_A = duplADeg "hot" ;
|
|
||||||
house_N = mkN "ház" ;
|
|
||||||
-- important_A = compoundADeg (regA "important") ;
|
|
||||||
-- industry_N = regN "industry" ;
|
|
||||||
-- iron_N = regN "iron" ;
|
|
||||||
-- king_N = mkN masculine (regN "king") ;
|
|
||||||
-- know_V2 = dirV2 (irregV "know" "knew" "known") ;
|
|
||||||
-- know_VQ = mkVQ (irregV "know" "knew" "known") ;
|
|
||||||
-- know_VS = mkVS (irregV "know" "knew" "known") ;
|
|
||||||
-- lake_N = regN "lake" ;
|
|
||||||
-- lamp_N = regN "lamp" ;
|
|
||||||
-- learn_V2 = dirV2 (regV "learn") ;
|
|
||||||
-- leather_N = regN "leather" ;
|
|
||||||
-- leave_V2 = dirV2 (irregV "leave" "left" "left") ;
|
|
||||||
-- like_V2 = dirV2 (regV "like") ;
|
|
||||||
-- listen_V2 = prepV2 (regV "listen") toP ;
|
|
||||||
-- live_V = (regV "live") ;
|
|
||||||
-- long_A = regADeg "long" ;
|
|
||||||
-- lose_V2 = dirV2 (irregV "lose" "lost" "lost") ;
|
|
||||||
-- love_N = regN "love" ;
|
|
||||||
-- love_V2 = dirV2 (regV "love") ;
|
|
||||||
-- man_N = mkN masculine (mk2N "man" "men") ;
|
|
||||||
-- married_A2 = mkA2 (regA "married") toP ;
|
|
||||||
-- meat_N = regN "meat" ;
|
|
||||||
-- milk_N = regN "milk" ;
|
|
||||||
-- moon_N = regN "moon" ;
|
|
||||||
-- mother_N2 = mkN2 (mkN feminine (mkN "mother")) (mkPrep "of") ;
|
|
||||||
-- mountain_N = regN "mountain" ;
|
|
||||||
-- music_N = regN "music" ;
|
|
||||||
-- narrow_A = regADeg "narrow" ;
|
|
||||||
-- new_A = regADeg "new" ;
|
|
||||||
-- newspaper_N = regN "newspaper" ;
|
|
||||||
-- oil_N = regN "oil" ;
|
|
||||||
-- old_A = regADeg "old" ;
|
|
||||||
-- open_V2 = dirV2 (regV "open") ;
|
|
||||||
-- paint_V2A = mkV2A (regV "paint") noPrep ;
|
|
||||||
-- paper_N = regN "paper" ;
|
|
||||||
-- paris_PN = mkPN (mkN nonhuman (mkN "Paris")) ;
|
|
||||||
-- peace_N = regN "peace" ;
|
|
||||||
-- pen_N = regN "pen" ;
|
|
||||||
-- planet_N = regN "planet" ;
|
|
||||||
-- plastic_N = regN "plastic" ;
|
|
||||||
-- play_V2 = dirV2 (regV "play") ;
|
|
||||||
-- policeman_N = mkN masculine (mkN "policeman" "policemen") ;
|
|
||||||
-- priest_N = mkN human (regN "priest") ;
|
|
||||||
-- probable_AS = mkAS (regA "probable") ;
|
|
||||||
-- queen_N = mkN feminine (regN "queen") ;
|
|
||||||
-- radio_N = regN "radio" ;
|
|
||||||
-- rain_V0 = mkV0 (regV "rain") ;
|
|
||||||
-- read_V2 = dirV2 (irregV "read" "read" "read") ;
|
|
||||||
-- red_A = duplADeg "red" ;
|
|
||||||
-- religion_N = regN "religion" ;
|
|
||||||
-- restaurant_N = regN "restaurant" ;
|
|
||||||
-- river_N = regN "river" ;
|
|
||||||
-- rock_N = regN "rock" ;
|
|
||||||
-- roof_N = regN "roof" ;
|
|
||||||
-- rubber_N = regN "rubber" ;
|
|
||||||
-- run_V = (irregDuplV "run" "ran" "run") ;
|
|
||||||
-- say_VS = mkVS (irregV "say" "said" "said") ;
|
|
||||||
-- school_N = regN "school" ;
|
|
||||||
-- science_N = regN "science" ;
|
|
||||||
-- sea_N = regN "sea" ;
|
|
||||||
-- seek_V2 = dirV2 (irregV "seek" "sought" "sought") ;
|
|
||||||
-- see_V2 = dirV2 (irregV "see" "saw" "seen") ;
|
|
||||||
-- sell_V3 = dirV3 (irregV "sell" "sold" "sold") toP ;
|
|
||||||
-- send_V3 = dirV3 (irregV "send" "sent" "sent") toP ;
|
|
||||||
-- sheep_N = mk2N "sheep" "sheep" ;
|
|
||||||
-- ship_N = regN "ship" ;
|
|
||||||
-- shirt_N = regN "shirt" ;
|
|
||||||
-- shoe_N = regN "shoe" ;
|
|
||||||
-- shop_N = regN "shop" ;
|
|
||||||
-- short_A = regADeg "short" ;
|
|
||||||
-- silver_N = regN "silver" ;
|
|
||||||
-- sister_N = mkN feminine (mkN "sister") ;
|
|
||||||
-- sleep_V = (irregV "sleep" "slept" "slept") ;
|
|
||||||
-- small_A = regADeg "small" ;
|
|
||||||
-- snake_N = regN "snake" ;
|
|
||||||
-- sock_N = regN "sock" ;
|
|
||||||
-- speak_V2 = dirV2 (irregV "speak" "spoke" "spoken") ;
|
|
||||||
-- star_N = regN "star" ;
|
|
||||||
-- steel_N = regN "steel" ;
|
|
||||||
-- stone_N = regN "stone" ;
|
|
||||||
-- stove_N = regN "stove" ;
|
|
||||||
-- student_N = mkN human (regN "student") ;
|
|
||||||
-- stupid_A = mkA "stupid" ;
|
|
||||||
-- sun_N = regN "sun" ;
|
|
||||||
-- switch8off_V2 = dirV2 (partV (regV "switch") "off") ;
|
|
||||||
-- switch8on_V2 = dirV2 (partV (regV "switch") "on") ;
|
|
||||||
-- table_N = regN "table" ;
|
|
||||||
-- talk_V3 = mkV3 (regV "talk") toP aboutP ;
|
|
||||||
-- teacher_N = mkN human (regN "teacher") ;
|
|
||||||
-- teach_V2 = dirV2 (irregV "teach" "taught" "taught") ;
|
|
||||||
-- television_N = regN "television" ;
|
|
||||||
-- thick_A = regADeg "thick" ;
|
|
||||||
-- thin_A = duplADeg "thin" ;
|
|
||||||
-- train_N = regN "train" ;
|
|
||||||
-- travel_V = (regDuplV "travel") ;
|
|
||||||
-- tree_N = regN "tree" ;
|
|
||||||
-- ---- trousers_N = regN "trousers" ;
|
|
||||||
-- ugly_A = mkA "ugly" ;
|
|
||||||
-- understand_V2 = dirV2 (irregV "understand" "understood" "understood") ;
|
|
||||||
-- university_N = regN "university" ;
|
|
||||||
-- village_N = regN "village" ;
|
|
||||||
-- wait_V2 = prepV2 (regV "wait") forP ;
|
|
||||||
-- walk_V = (regV "walk") ;
|
|
||||||
-- warm_A = regADeg "warm" ;
|
|
||||||
-- war_N = regN "war" ;
|
|
||||||
-- watch_V2 = dirV2 (regV "watch") ;
|
|
||||||
-- water_N = regN "water" ;
|
|
||||||
-- white_A = mkA "white" ;
|
|
||||||
-- window_N = regN "window" ;
|
|
||||||
-- wine_N = regN "wine" ;
|
|
||||||
-- win_V2 = dirV2 (irregDuplV "win" "won" "won") ;
|
|
||||||
-- woman_N = mkN feminine (mk2N "woman" "women") ;
|
|
||||||
-- wonder_VQ = mkVQ (mkV "wonder" "wondered") ;
|
|
||||||
-- wood_N = regN "wood" ;
|
|
||||||
-- write_V2 = dirV2 (irregV "write" "wrote" "written") ;
|
|
||||||
-- yellow_A = mkA "yellow" ;
|
|
||||||
-- young_A = regADeg "young" ;
|
|
||||||
--
|
--
|
||||||
-- do_V2 = dirV2 (mk5V "do" "does" "did" "done" "doing") ;
|
-- lin day_N = mkN "" ;
|
||||||
-- now_Adv = mkAdv "now" ;
|
-- lin die_V = mkV "" ;
|
||||||
-- already_Adv = mkAdv "already" ;
|
-- lin dig_V = mkV "" ;
|
||||||
-- song_N = regN "song" ;
|
-- lin dirty_A = mkA "" ;
|
||||||
-- add_V3 = dirV3 (regV "add") toP ;
|
-- lin distance_N3 = mkN "" ;
|
||||||
-- number_N = regN "number" ;
|
-- lin do_V2 = mkV2 do_V ;
|
||||||
-- put_V2 = prepV2 (irregDuplV "put" "put" "put") noPrep ;
|
-- lin doctor_N = mkN "" ;
|
||||||
-- stop_V = regDuplV "stop" ;
|
-- lin dog_N = mkN "" ;
|
||||||
-- jump_V = regV "jump" ;
|
lin door_N = mkN "ajtó" ;
|
||||||
|
-- lin drink_V2 = mkV2 "" ;
|
||||||
|
-- lin dry_A = mkA "" ;
|
||||||
|
-- lin dull_A = mkA "" ;
|
||||||
|
-- lin dust_N = mkN "" ;
|
||||||
|
|
||||||
|
----
|
||||||
|
-- E
|
||||||
|
|
||||||
|
-- lin ear_N = mkN "" ;
|
||||||
|
-- lin earth_N = mkN "" ;
|
||||||
|
-- lin eat_V2 = mkV2 "" ;
|
||||||
|
-- lin egg_N = mkN "" ;
|
||||||
|
-- lin empty_A = mkA "" ;
|
||||||
|
-- lin enemy_N = mkN "" ;
|
||||||
|
lin eye_N = mkN "szem" ;
|
||||||
|
|
||||||
|
----
|
||||||
|
-- F
|
||||||
|
|
||||||
|
-- lin factory_N = mkN "" ;
|
||||||
|
-- lin fall_V = mkV "" ;
|
||||||
|
-- lin far_Adv = mkA "" ;
|
||||||
|
-- lin fat_N = mkN "" ;
|
||||||
|
-- lin father_N2 = mkN2 "" ;
|
||||||
|
-- lin fear_V2 = mkV2 "" ;
|
||||||
|
-- lin fear_VS = mkVS "" ;
|
||||||
|
-- lin feather_N = mkN "" ;
|
||||||
|
-- lin fight_V2 = mkV2 "" ;
|
||||||
|
-- lin find_V2 = mkV2 "" ;
|
||||||
|
-- lin fingernail_N = mkN "" ;
|
||||||
|
-- lin fire_N = mkN "" ;
|
||||||
|
lin fish_N = mkN "hal" ;
|
||||||
|
-- lin float_V = mkV "" ;
|
||||||
|
-- lin floor_N = mkN "" ;
|
||||||
|
-- lin flow_V = mkV "" ;
|
||||||
|
-- lin flower_N = mkN "" ;
|
||||||
|
lin fly_V = mkV "repül" ;
|
||||||
|
-- lin fog_N = mkN "" ;
|
||||||
|
-- lin foot_N = mkN "" ;
|
||||||
|
-- lin forest_N = mkN "" ;
|
||||||
|
-- lin forget_V2 = mkV2 "" ;
|
||||||
|
-- lin freeze_V = mkV "" ;
|
||||||
|
-- lin fridge_N = mkN "" ;
|
||||||
|
-- lin friend_N = mkN "" ;
|
||||||
|
lin fruit_N = mkN "gyümölcs" ;
|
||||||
|
-- lin full_A = mkA "" ;
|
||||||
|
-- --lin fun_AV
|
||||||
|
|
||||||
|
----
|
||||||
|
-- G
|
||||||
|
|
||||||
|
lin garden_N = mkN "kert" ;
|
||||||
|
lin girl_N = mkN "lány" ;
|
||||||
|
-- lin give_V3 = mkV3 "" ;
|
||||||
|
-- lin glove_N = mkN "" ;
|
||||||
|
-- lin go_V = mkV "" ;
|
||||||
|
lin gold_N = mkN "arany" ;
|
||||||
|
-- lin good_A = mkA "" ;
|
||||||
|
-- lin grammar_N = mkN "" ;
|
||||||
|
-- lin grass_N = mkN "" ;
|
||||||
|
-- lin green_A = mkA "" ;
|
||||||
|
|
||||||
|
----
|
||||||
|
-- H
|
||||||
|
|
||||||
|
-- lin hair_N = mkN "" ;
|
||||||
|
lin hand_N = mkN "kéz" ;
|
||||||
|
-- lin harbour_N = mkN "" ;
|
||||||
|
-- lin hat_N = mkN "" ;
|
||||||
|
-- lin hate_V2 = mkV2 "" ;
|
||||||
|
lin head_N = mkN "fej" ;
|
||||||
|
-- lin hear_V2 = mkV2 "" ;
|
||||||
|
-- lin heart_N = mkN "" ;
|
||||||
|
-- lin heavy_A = mkA "" ;
|
||||||
|
-- lin hill_N = mkN "" ;
|
||||||
|
-- lin hit_V2 = mkV2 "" ;
|
||||||
|
-- lin hold_V2 = mkV2 "" ;
|
||||||
|
-- lin hope_VS = mkV "" ;
|
||||||
|
-- lin horn_N = mkN "" ;
|
||||||
|
lin horse_N = mkN "ló" ;
|
||||||
|
-- lin hot_A = mkA "" ;
|
||||||
|
lin house_N = mkN "ház" ;
|
||||||
|
-- lin hunt_V2 = mkV2 "" ;
|
||||||
|
-- lin husband_N = mkN "" ;
|
||||||
|
|
||||||
|
--------
|
||||||
|
-- I - K
|
||||||
|
|
||||||
|
-- lin ice_N = mkN "" ;
|
||||||
|
-- lin industry_N = mkN "" ;
|
||||||
|
-- lin iron_N = mkN "" ;
|
||||||
|
-- lin john_PN = mkPN "" ;
|
||||||
|
-- lin jump_V = mkV "" ;
|
||||||
|
-- lin kill_V2 = mkV2 "" ;
|
||||||
|
-- lin king_N = mkN "" ;
|
||||||
|
-- lin knee_N = mkN "" ;
|
||||||
|
-- lin know_V2 = mkV2 "" ;
|
||||||
|
-- lin know_VQ = mkVQ "" ;
|
||||||
|
-- lin know_VS = mkV "" ;
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
-- L
|
||||||
|
|
||||||
|
-- lin lake_N = mkN "" ;
|
||||||
|
-- lin lamp_N = mkN "" ;
|
||||||
|
-- lin language_N = mkN "" ;
|
||||||
|
-- lin laugh_V = mkV "" ;
|
||||||
|
-- lin leaf_N = mkN "" ;
|
||||||
|
-- lin learn_V2 = mkV2 "" ;
|
||||||
|
-- lin leather_N = mkN "" ;
|
||||||
|
-- lin leave_V2 = mkV2 "" ;
|
||||||
|
-- lin leg_N = mkN "" ;
|
||||||
|
-- lin lie_V = mkV "" ;
|
||||||
|
-- lin like_V2 = mkV2 "" ;
|
||||||
|
-- lin listen_V2 = mkV2 "" ;
|
||||||
|
-- lin live_V = mkV "";
|
||||||
|
-- lin liver_N = mkN "" ;
|
||||||
|
-- lin long_A = mkA "" ;
|
||||||
|
-- lin lose_V2 = mkV2 "" ;
|
||||||
|
-- lin louse_N = mkN "" ;
|
||||||
|
-- lin love_N = mkN "" ;
|
||||||
|
-- lin love_V2 = mkV2 "" ;
|
||||||
|
|
||||||
|
----
|
||||||
|
-- M
|
||||||
|
|
||||||
|
lin man_N = mkN "férfi" "ak" harmA ; -- force plural allomorph and a-harmony
|
||||||
|
lin married_A2 = mkA2 "házas" Ins ;
|
||||||
|
-- lin meat_N = mkN "" ;
|
||||||
|
-- lin milk_N = mkN "" ;
|
||||||
|
-- lin moon_N = mkN "" ;
|
||||||
|
lin mother_N2 = mkN2 "anya" ;
|
||||||
|
-- lin mountain_N = mkN "" ;
|
||||||
|
-- lin mouth_N = mkN "" ;
|
||||||
|
-- lin music_N = mkN "" ;
|
||||||
|
|
||||||
|
----
|
||||||
|
-- N
|
||||||
|
|
||||||
|
lin name_N = mkN "név" ;
|
||||||
|
-- lin narrow_A = mkA "" ;
|
||||||
|
-- lin near_A = mkA "" ;
|
||||||
|
-- lin neck_N = mkN "" ;
|
||||||
|
-- lin new_A = mkA "" ;
|
||||||
|
-- lin newspaper_N = mkN "" ;
|
||||||
|
-- lin night_N = mkN "" ;
|
||||||
|
-- lin nose_N = mkN "" ;
|
||||||
|
lin now_Adv = mkAdv "most" ;
|
||||||
|
-- lin number_N = mkN "" ;
|
||||||
--
|
--
|
||||||
-- left_Ord = mkOrd "left" ;
|
-- --------
|
||||||
-- right_Ord = mkOrd "right" ;
|
-- -- O - P
|
||||||
-- far_Adv = mkAdv "far" ;
|
|
||||||
-- correct_A = (regA "correct") ;
|
|
||||||
-- dry_A = regA "dry" ;
|
|
||||||
-- dull_A = regA "dull" ;
|
|
||||||
-- full_A = regA "full" ;
|
|
||||||
-- heavy_A = regA "heavy" ;
|
|
||||||
-- near_A = regA "near" ;
|
|
||||||
-- rotten_A = (regA "rotten") ;
|
|
||||||
-- round_A = regA "round" ;
|
|
||||||
-- sharp_A = regA "sharp" ;
|
|
||||||
-- smooth_A = regA "smooth" ;
|
|
||||||
-- straight_A = regA "straight" ;
|
|
||||||
-- wet_A = regA "wet" ; ----
|
|
||||||
-- wide_A = regA "wide" ;
|
|
||||||
-- animal_N = regN "animal" ;
|
|
||||||
-- ashes_N = regN "ash" ; -- FIXME: plural only?
|
|
||||||
-- back_N = regN "back" ;
|
|
||||||
-- bark_N = regN "bark" ;
|
|
||||||
-- belly_N = regN "belly" ;
|
|
||||||
-- blood_N = regN "blood" ;
|
|
||||||
-- bone_N = regN "bone" ;
|
|
||||||
-- breast_N = regN "breast" ;
|
|
||||||
-- cloud_N = regN "cloud" ;
|
|
||||||
-- day_N = regN "day" ;
|
|
||||||
-- dust_N = regN "dust" ;
|
|
||||||
-- ear_N = regN "ear" ;
|
|
||||||
-- earth_N = regN "earth" ;
|
|
||||||
-- egg_N = regN "egg" ;
|
|
||||||
-- eye_N = regN "eye" ;
|
|
||||||
-- fat_N = regN "fat" ;
|
|
||||||
-- feather_N = regN "feather" ;
|
|
||||||
-- fingernail_N = regN "fingernail" ;
|
|
||||||
-- fire_N = regN "fire" ;
|
|
||||||
-- flower_N = regN "flower" ;
|
|
||||||
-- fog_N = regN "fog" ;
|
|
||||||
-- foot_N = mk2N "foot" "feet" ;
|
|
||||||
-- forest_N = regN "forest" ;
|
|
||||||
-- grass_N = regN "grass" ;
|
|
||||||
-- guts_N = regN "gut" ; -- FIXME: no singular
|
|
||||||
-- hair_N = regN "hair" ;
|
|
||||||
-- hand_N = regN "hand" ;
|
|
||||||
-- head_N = regN "head" ;
|
|
||||||
-- heart_N = regN "heart" ;
|
|
||||||
-- horn_N = regN "horn" ;
|
|
||||||
-- husband_N = mkN masculine (regN "husband") ;
|
|
||||||
-- ice_N = regN "ice" ;
|
|
||||||
-- knee_N = regN "knee" ;
|
|
||||||
-- leaf_N = mk2N "leaf" "leaves" ;
|
|
||||||
-- leg_N = regN "leg" ;
|
|
||||||
-- liver_N = regN "liver" ;
|
|
||||||
-- louse_N = mk2N "louse" "lice" ;
|
|
||||||
-- mouth_N = regN "mouth" ;
|
|
||||||
-- name_N = regN "name" ;
|
|
||||||
-- neck_N = regN "neck" ;
|
|
||||||
-- night_N = regN "night" ;
|
|
||||||
-- nose_N = regN "nose" ;
|
|
||||||
-- person_N = mkN human (regN "person") ;
|
|
||||||
-- rain_N = regN "rain" ;
|
|
||||||
-- road_N = regN "road" ;
|
|
||||||
-- root_N = regN "root" ;
|
|
||||||
-- rope_N = regN "rope" ;
|
|
||||||
-- salt_N = regN "salt" ;
|
|
||||||
-- sand_N = regN "sand" ;
|
|
||||||
-- seed_N = regN "seed" ;
|
|
||||||
-- skin_N = regN "skin" ;
|
|
||||||
-- sky_N = regN "sky" ;
|
|
||||||
-- smoke_N = regN "smoke" ;
|
|
||||||
-- snow_N = regN "snow" ;
|
|
||||||
-- stick_N = regN "stick" ;
|
|
||||||
-- tail_N = regN "tail" ;
|
|
||||||
-- tongue_N = regN "tongue" ;
|
|
||||||
-- tooth_N = mk2N "tooth" "teeth" ;
|
|
||||||
-- wife_N = mkN feminine (mk2N "wife" "wives") ;
|
|
||||||
-- wind_N = regN "wind" ;
|
|
||||||
-- wing_N = regN "wing" ;
|
|
||||||
-- worm_N = regN "worm" ;
|
|
||||||
-- year_N = regN "year" ;
|
|
||||||
-- blow_V = IrregHun.blow_V ;
|
|
||||||
-- breathe_V = dirV2 (regV "breathe") ;
|
|
||||||
-- burn_V = IrregHun.burn_V ;
|
|
||||||
-- dig_V = IrregHun.dig_V ;
|
|
||||||
-- fall_V = IrregHun.fall_V ;
|
|
||||||
-- float_V = regV "float" ;
|
|
||||||
-- flow_V = regV "flow" ;
|
|
||||||
-- fly_V = IrregHun.fly_V ;
|
|
||||||
-- freeze_V = IrregHun.freeze_V ;
|
|
||||||
-- give_V3 = dirV3 give_V toP ;
|
|
||||||
-- laugh_V = regV "laugh" ;
|
|
||||||
-- lie_V = IrregHun.lie_V ;
|
|
||||||
-- play_V = regV "play" ;
|
|
||||||
-- sew_V = IrregHun.sew_V ;
|
|
||||||
-- sing_V = IrregHun.sing_V ;
|
|
||||||
-- sit_V = IrregHun.sit_V ;
|
|
||||||
-- smell_V = regV "smell" ;
|
|
||||||
-- spit_V = IrregHun.spit_V ;
|
|
||||||
-- stand_V = IrregHun.stand_V ;
|
|
||||||
-- swell_V = IrregHun.swell_V ;
|
|
||||||
-- swim_V = IrregHun.swim_V ;
|
|
||||||
-- think_V = IrregHun.think_V ;
|
|
||||||
-- turn_V = regV "turn" ;
|
|
||||||
-- vomit_V = mkV "vomit" "vomited" ;
|
|
||||||
--
|
--
|
||||||
-- bite_V2 = dirV2 IrregHun.bite_V ;
|
|
||||||
-- count_V2 = dirV2 (regV "count") ;
|
|
||||||
-- cut_V2 = dirV2 IrregHun.cut_V ;
|
|
||||||
-- fear_V2 = dirV2 (regV "fear") ;
|
|
||||||
-- fight_V2 = dirV2 fight_V ;
|
|
||||||
-- hit_V2 = dirV2 hit_V ;
|
|
||||||
-- hold_V2 = dirV2 hold_V ;
|
|
||||||
-- hunt_V2 = dirV2 (regV "hunt") ;
|
|
||||||
-- kill_V2 = dirV2 (regV "kill") ;
|
|
||||||
-- pull_V2 = dirV2 (regV "pull") ;
|
|
||||||
-- push_V2 = dirV2 (regV "push") ;
|
|
||||||
-- rub_V2 = dirV2 (regDuplV "rub") ;
|
|
||||||
-- scratch_V2 = dirV2 (regV "scratch") ;
|
|
||||||
-- split_V2 = dirV2 split_V ;
|
|
||||||
-- squeeze_V2 = dirV2 (regV "squeeze") ;
|
|
||||||
-- stab_V2 = dirV2 (regDuplV "stab") ;
|
|
||||||
-- suck_V2 = dirV2 (regV "suck") ;
|
|
||||||
-- throw_V2 = dirV2 throw_V ;
|
|
||||||
-- tie_V2 = dirV2 (regV "tie") ;
|
|
||||||
-- wash_V2 = dirV2 (regV "wash") ;
|
|
||||||
-- wipe_V2 = dirV2 (regV "wipe") ;
|
|
||||||
--
|
--
|
||||||
---- other_A = regA "other" ;
|
lin oil_N = mkN "olaj" ;
|
||||||
|
-- lin old_A = mkA "" ;
|
||||||
|
-- lin open_V2 = mkV2 "" ;
|
||||||
|
-- lin paint_V2A = mkV2A "" ;
|
||||||
|
-- lin paper_N = mkN "" ;
|
||||||
|
-- lin paris_PN = mkPN "Paris" ;
|
||||||
|
lin peace_N = mkN "béke" ;
|
||||||
|
-- lin pen_N = mkN "" ;
|
||||||
|
lin person_N = mkN "ember" ;
|
||||||
|
-- lin planet_N = mkN "" ;
|
||||||
|
-- lin plastic_N = mkN "" ;
|
||||||
|
-- lin play_V = mkV "" ;
|
||||||
|
-- lin policeman_N = mkN "" ;
|
||||||
|
-- lin priest_N = mkN "" ;
|
||||||
|
-- lin pull_V2 = mkV2 "" ;
|
||||||
|
-- lin push_V2 = mkV2 "" ;
|
||||||
|
-- lin put_V2 = mkV2 "" ;
|
||||||
--
|
--
|
||||||
-- grammar_N = regN "grammar" ;
|
-- --------
|
||||||
-- language_N = regN "language" ;
|
-- -- Q - R
|
||||||
-- rule_N = regN "rule" ;
|
|
||||||
--
|
--
|
||||||
---- added 4/6/2007
|
-- lin queen_N = mkN "" ;
|
||||||
-- john_PN = mkPN (mkN masculine (mkN "John")) ;
|
lin question_N = mkN "kérdés" ;
|
||||||
-- question_N = regN "question" ;
|
-- lin radio_N = mkN "" ;
|
||||||
-- ready_A = regA "ready" ;
|
-- lin rain_N = mkN "" ;
|
||||||
-- reason_N = regN "reason" ;
|
-- lin rain_V0 = mkV "" ;
|
||||||
-- today_Adv = mkAdv "today" ;
|
-- lin read_V2 = mkV2 "" ;
|
||||||
-- uncertain_A = regA "uncertain" ;
|
-- lin ready_A = mkA "" ;
|
||||||
--
|
-- lin reason_N = mkN "" ;
|
||||||
--oper
|
lin red_A = mkA "piros" ;
|
||||||
-- aboutP = mkPrep "about" ;
|
-- lin religion_N = mkN "" ;
|
||||||
-- atP = mkPrep "at" ;
|
-- lin restaurant_N = mkN "" ;
|
||||||
-- forP = mkPrep "for" ;
|
-- lin river_N = mkN "" ;
|
||||||
-- fromP = mkPrep "from" ;
|
lin road_N = mkN "út" ;
|
||||||
-- inP = mkPrep "in" ;
|
-- lin rock_N = mkN "" ;
|
||||||
-- onP = mkPrep "on" ;
|
-- lin roof_N = mkN "" ;
|
||||||
-- toP = mkPrep "to" ;
|
-- lin root_N = mkN "" ;
|
||||||
--
|
-- lin rope_N = mkN "" ;
|
||||||
--} ;
|
-- lin rotten_A = mkA "" ;
|
||||||
|
-- lin round_A = mkA "" ;
|
||||||
|
-- lin rub_V2 = mkV2 "" ;
|
||||||
|
-- lin rubber_N = mkN "" ;
|
||||||
|
-- lin rule_N = mkN "" ;
|
||||||
|
-- lin run_V = mkV "" ;
|
||||||
|
|
||||||
|
----
|
||||||
|
-- S
|
||||||
|
|
||||||
|
-- lin salt_N = mkN "" ;
|
||||||
|
-- lin sand_N = mkN "" ;
|
||||||
|
-- lin say_VS = mkVS "" ;
|
||||||
|
-- lin school_N = mkN "" ;
|
||||||
|
-- lin science_N = mkN "" ;
|
||||||
|
-- lin scratch_V2 = mkV2 "" ;
|
||||||
|
-- lin sea_N = mkN "" ;
|
||||||
|
lin see_V2 = mkV2 "lát" ;
|
||||||
|
-- lin seed_N = mkN "" ;
|
||||||
|
-- lin seek_V2 = mkV2 "" ;
|
||||||
|
-- lin sell_V3 = mkV3 "" ;
|
||||||
|
-- lin send_V3 = mkV3 "" ;
|
||||||
|
-- lin sew_V = mkV "" ;
|
||||||
|
-- lin sharp_A = mkA "" ;
|
||||||
|
-- lin sheep_N = mkN "" fem ;
|
||||||
|
-- lin ship_N = mkN "" ;
|
||||||
|
lin shirt_N = mkN "ing" ;
|
||||||
|
lin shoe_N = mkN "cipő" ;
|
||||||
|
-- lin shop_N = mkN "" ;
|
||||||
|
-- lin short_A = mkA "" ;
|
||||||
|
-- lin silver_N = mkN "" ;
|
||||||
|
-- lin sing_V = mkV "" ;
|
||||||
|
-- lin sister_N = mkN "" ;
|
||||||
|
-- lin sit_V = mkV "" ;
|
||||||
|
-- lin skin_N = mkN "" ;
|
||||||
|
-- lin sky_N = mkN "" ;
|
||||||
|
-- lin sleep_V = mkV "" ;
|
||||||
|
-- lin small_A = mkA "" ;
|
||||||
|
-- lin smell_V = mkV "" ;
|
||||||
|
-- lin smoke_N = mkN "" ;
|
||||||
|
-- lin smooth_A = mkA "" ;
|
||||||
|
-- lin snake_N = mkN "" ;
|
||||||
|
-- lin snow_N = mkN "" ;
|
||||||
|
-- lin sock_N = mkN "" ;
|
||||||
|
-- lin song_N = mkN "" ;
|
||||||
|
-- lin speak_V2 = mkV2 "" ;
|
||||||
|
-- lin spit_V = mkV "" ;
|
||||||
|
-- lin split_V2 = mkV2 "" ;
|
||||||
|
-- lin squeeze_V2 = mkV2 "" ;
|
||||||
|
-- lin stab_V2 = mkV2 "" ;
|
||||||
|
-- lin stand_V = mkV "" ;
|
||||||
|
-- lin star_N = mkN "" ;
|
||||||
|
-- lin steel_N = mkN "" ;
|
||||||
|
-- lin stick_N = mkN "" ;
|
||||||
|
lin stone_N = mkN "kő";
|
||||||
|
-- lin stop_V = mkV "" ;
|
||||||
|
-- lin stove_N = mkN "" ;
|
||||||
|
-- lin straight_A = mkA "" ;
|
||||||
|
-- lin student_N = mkN "" ;
|
||||||
|
-- lin stupid_A = mkA "" ;
|
||||||
|
-- lin suck_V2 = mkV2 "" ;
|
||||||
|
-- lin sun_N = mkN "" ;
|
||||||
|
-- lin swell_V = mkV "" ;
|
||||||
|
-- lin swim_V = mkV "" ;
|
||||||
|
|
||||||
|
----
|
||||||
|
-- T
|
||||||
|
|
||||||
|
|
||||||
|
lin table_N = mkN "asztal" ;
|
||||||
|
-- lin tail_N = mkN "" ;
|
||||||
|
lin talk_V3 = mkV3 "beszél" ;
|
||||||
|
-- lin teach_V2 = mkV2 "" ;
|
||||||
|
lin teacher_N = mkN "tanár" ;
|
||||||
|
-- lin television_N = mkN "" ;
|
||||||
|
-- lin thick_A = mkA "" ;
|
||||||
|
-- lin thin_A = mkA "" ;
|
||||||
|
-- lin think_V = mkV "" ;
|
||||||
|
-- lin throw_V2 = mkV2 "" ;
|
||||||
|
-- lin tie_V2 = mkV2 "" ;
|
||||||
|
lin today_Adv = mkAdv "ma" ;
|
||||||
|
-- lin tongue_N = mkN "" ;
|
||||||
|
-- lin tooth_N = mkN "" ;
|
||||||
|
-- lin train_N = mkN "" ;
|
||||||
|
-- lin travel_V = mkV "" ;
|
||||||
|
-- lin tree_N = mkN "" ;
|
||||||
|
-- lin turn_V = mkV "" ;
|
||||||
|
|
||||||
|
--------
|
||||||
|
-- U - V
|
||||||
|
|
||||||
|
-- lin ugly_A = mkA "" ;
|
||||||
|
-- lin uncertain_A = mkA "" ;
|
||||||
|
-- lin understand_V2 = mkV2 "" ;
|
||||||
|
-- lin university_N = mkN "" ;
|
||||||
|
lin village_N = mkN "falu" ;
|
||||||
|
-- lin vomit_V = mkV2 "" ;
|
||||||
|
|
||||||
|
--------
|
||||||
|
-- W - Y
|
||||||
|
|
||||||
|
-- lin wait_V2 = mkV2 "" ;
|
||||||
|
-- lin walk_V = mkV "" ;
|
||||||
|
-- lin war_N = mkN "" ;
|
||||||
|
-- lin warm_A = mkA "" ;
|
||||||
|
-- lin wash_V2 = mkV2 "" ;
|
||||||
|
-- lin watch_V2 = mkV2 "" ;
|
||||||
|
lin water_N = mkN "víz" ;
|
||||||
|
-- lin wet_A = mkA "" ;
|
||||||
|
-- lin white_A = mkA "" ;
|
||||||
|
-- lin wide_A = mkA "" ;
|
||||||
|
-- lin wife_N = mkN "" ;
|
||||||
|
-- lin win_V2 = mkV2 "" ;
|
||||||
|
-- lin wind_N = mkN "" ;
|
||||||
|
lin window_N = mkN "ablak" ;
|
||||||
|
lin wine_N = mkN "bor" ;
|
||||||
|
-- lin wing_N = mkN "" ;
|
||||||
|
-- lin wipe_V2 = mkV2 "" ;
|
||||||
|
lin woman_N = mkN "nő" "k" harmO ;
|
||||||
|
-- lin wonder_VQ = mkVQ "" ;
|
||||||
|
-- lin wood_N = mkN "" ;
|
||||||
|
-- lin worm_N = mkN "" ;
|
||||||
|
-- lin write_V2 = mkV2 "" ;
|
||||||
|
-- lin year_N = mkN "" ;
|
||||||
|
-- lin yellow_A = mkA "" ;
|
||||||
|
-- lin young_A = mkA "" ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
540
src/hungarian/MissingHun.gf
Normal file
540
src/hungarian/MissingHun.gf
Normal file
@@ -0,0 +1,540 @@
|
|||||||
|
resource MissingHun = open GrammarHun, Prelude in {
|
||||||
|
-- temporary definitions to enable the compilation of RGL API
|
||||||
|
|
||||||
|
oper AdAdv : AdA -> Adv -> Adv = notYet "AdAdv" ;
|
||||||
|
oper AdNum : AdN -> Card -> Card = notYet "AdNum" ;
|
||||||
|
oper AdVVP : AdV -> VP -> VP = notYet "AdVVP" ;
|
||||||
|
oper AdVVPSlash : AdV -> VPSlash -> VPSlash = notYet "AdVVPSlash" ;
|
||||||
|
oper AddAdvQVP : QVP -> IAdv -> QVP = notYet "AddAdvQVP" ;
|
||||||
|
oper AdjDAP : DAP -> AP -> DAP = notYet "AdjDAP" ;
|
||||||
|
oper AdnCAdv : CAdv -> AdN = notYet "AdnCAdv" ;
|
||||||
|
oper AdvIAdv : IAdv -> Adv -> IAdv = notYet "AdvIAdv" ;
|
||||||
|
oper AdvIP : IP -> Adv -> IP = notYet "AdvIP" ;
|
||||||
|
oper AdvQVP : VP -> IAdv -> QVP = notYet "AdvQVP" ;
|
||||||
|
oper AdvSlash : ClSlash -> Adv -> ClSlash = notYet "AdvSlash" ;
|
||||||
|
oper BaseAdV : AdV -> AdV -> ListAdV = notYet "BaseAdV" ;
|
||||||
|
oper BaseCN : CN -> CN -> ListCN = notYet "BaseCN" ;
|
||||||
|
oper BaseIAdv : IAdv -> IAdv -> ListIAdv = notYet "BaseIAdv" ;
|
||||||
|
oper CleftAdv : Adv -> S -> Cl = notYet "CleftAdv" ;
|
||||||
|
oper CleftNP : NP -> RS -> Cl = notYet "CleftNP" ;
|
||||||
|
oper CompIAdv : IAdv -> IComp = notYet "CompIAdv" ;
|
||||||
|
oper CompIP : IP -> IComp = notYet "CompIP" ;
|
||||||
|
oper ComparAdvAdj : CAdv -> A -> NP -> Adv = notYet "ComparAdvAdj" ;
|
||||||
|
oper ComparAdvAdjS : CAdv -> A -> S -> Adv = notYet "ComparAdvAdjS" ;
|
||||||
|
oper ComplN2 : N2 -> NP -> CN = notYet "ComplN2" ;
|
||||||
|
oper ComplN3 : N3 -> NP -> N2 = notYet "ComplN3" ;
|
||||||
|
oper ComplSlashIP : VPSlash -> IP -> QVP = notYet "ComplSlashIP" ;
|
||||||
|
oper ComplVA : VA -> AP -> VP = notYet "ComplVA" ;
|
||||||
|
oper ComplVQ : VQ -> QS -> VP = notYet "ComplVQ" ;
|
||||||
|
oper ComplVS : VS -> S -> VP = notYet "ComplVS" ;
|
||||||
|
oper ComplVV : VV -> VP -> VP = notYet "ComplVV" ;
|
||||||
|
oper ConjAdV : Conj -> ListAdV -> AdV = notYet "ConjAdV" ;
|
||||||
|
oper ConjCN : Conj -> ListCN -> CN = notYet "ConjCN" ;
|
||||||
|
oper ConjDet : Conj -> ListDAP -> Det = notYet "ConjDet" ;
|
||||||
|
oper ConjIAdv : Conj -> ListIAdv -> IAdv = notYet "ConjIAdv" ;
|
||||||
|
oper ConsAdV : AdV -> ListAdV -> ListAdV = notYet "ConsAdV" ;
|
||||||
|
oper ConsCN : CN -> ListCN -> ListCN = notYet "ConsCN" ;
|
||||||
|
oper ConsIAdv : IAdv -> ListIAdv -> ListIAdv = notYet "ConsIAdv" ;
|
||||||
|
oper CountNP : Det -> NP -> NP = notYet "CountNP" ;
|
||||||
|
oper DetDAP : Det -> DAP = notYet "DetDAP" ;
|
||||||
|
oper DetQuantOrd : Quant -> Num -> Ord -> Det = notYet "DetQuantOrd" ;
|
||||||
|
oper EmbedQS : QS -> SC = notYet "EmbedQS" ;
|
||||||
|
oper EmbedS : S -> SC = notYet "EmbedS" ;
|
||||||
|
oper EmbedVP : VP -> SC = notYet "EmbedVP" ;
|
||||||
|
oper ExistIP : IP -> QCl = notYet "ExistIP" ;
|
||||||
|
oper ExistIPAdv : IP -> Adv -> QCl = notYet "ExistIPAdv" ;
|
||||||
|
oper ExistNP : NP -> Cl = notYet "ExistNP" ;
|
||||||
|
oper ExistNPAdv : NP -> Adv -> Cl = notYet "ExistNPAdv" ;
|
||||||
|
oper ExtAdvVP : VP -> Adv -> VP = notYet "ExtAdvVP" ;
|
||||||
|
oper FunRP : Prep -> NP -> RP -> RP = notYet "FunRP" ;
|
||||||
|
oper GenericCl : VP -> Cl = notYet "GenericCl" ;
|
||||||
|
oper IdetCN : IDet -> CN -> IP = notYet "IdetCN" ;
|
||||||
|
oper IdetIP : IDet -> IP = notYet "IdetIP" ;
|
||||||
|
oper IdetQuant : IQuant -> Num -> IDet = notYet "IdetQuant" ;
|
||||||
|
oper ImpP3 : NP -> VP -> Utt = notYet "ImpP3" ;
|
||||||
|
oper ImpPl1 : VP -> Utt = notYet "ImpPl1" ;
|
||||||
|
oper ImpVP : VP -> Imp = notYet "ImpVP" ;
|
||||||
|
oper ImpersCl : VP -> Cl = notYet "ImpersCl" ;
|
||||||
|
oper OrdDigits : Digits -> Ord = notYet "OrdDigits" ;
|
||||||
|
oper OrdNumeral : Numeral -> Ord = notYet "OrdNumeral" ;
|
||||||
|
oper OrdNumeralSuperl : Numeral -> A -> Ord = notYet "OrdNumeralSuperl" ;
|
||||||
|
oper PConjConj : Conj -> PConj = notYet "PConjConj" ;
|
||||||
|
oper PPartNP : NP -> V2 -> NP = notYet "PPartNP" ;
|
||||||
|
oper PartNP : CN -> NP -> CN = notYet "PartNP" ;
|
||||||
|
oper PassV2 : V2 -> VP = notYet "PassV2" ;
|
||||||
|
oper PositAdAAdj : A -> AdA = notYet "PositAdAAdj" ;
|
||||||
|
oper PositAdvAdj : A -> Adv = notYet "PositAdvAdj" ;
|
||||||
|
oper PossNP : CN -> NP -> CN = notYet "PossNP" ;
|
||||||
|
oper PossPron : Pron -> Quant = notYet "PossPron" ;
|
||||||
|
oper PredSCVP : SC -> VP -> Cl = notYet "PredSCVP" ;
|
||||||
|
oper PrepIP : Prep -> IP -> IAdv = notYet "PrepIP" ;
|
||||||
|
oper ProgrVP : VP -> VP = notYet "ProgrVP" ;
|
||||||
|
oper QuestCl : Cl -> QCl = notYet "QuestCl" ;
|
||||||
|
oper QuestIAdv : IAdv -> Cl -> QCl = notYet "QuestIAdv" ;
|
||||||
|
oper QuestIComp : IComp -> NP -> QCl = notYet "QuestIComp" ;
|
||||||
|
oper QuestQVP : IP -> QVP -> QCl = notYet "QuestQVP" ;
|
||||||
|
oper QuestSlash : IP -> ClSlash -> QCl = notYet "QuestSlash" ;
|
||||||
|
oper QuestVP : IP -> VP -> QCl = notYet "QuestVP" ;
|
||||||
|
oper ReflA2 : A2 -> AP = notYet "ReflA2" ;
|
||||||
|
oper ReflVP : VPSlash -> VP = notYet "ReflVP" ;
|
||||||
|
oper RelCl : Cl -> RCl = notYet "RelCl" ;
|
||||||
|
oper RelNP : NP -> RS -> NP = notYet "RelNP" ;
|
||||||
|
oper RelS : S -> RS -> S = notYet "RelS" ;
|
||||||
|
oper RelSlash : RP -> ClSlash -> RCl = notYet "RelSlash" ;
|
||||||
|
oper SSubjS : S -> Subj -> S -> S = notYet "SSubjS" ;
|
||||||
|
oper SelfAdVVP : VP -> VP = notYet "SelfAdVVP" ;
|
||||||
|
oper SelfAdvVP : VP -> VP = notYet "SelfAdvVP" ;
|
||||||
|
oper SelfNP : NP -> NP = notYet "SelfNP" ;
|
||||||
|
oper SentAP : AP -> SC -> AP = notYet "SentAP" ;
|
||||||
|
oper SentCN : CN -> SC -> CN = notYet "SentCN" ;
|
||||||
|
oper Slash2V3 : V3 -> NP -> VPSlash = notYet "Slash2V3" ;
|
||||||
|
oper Slash3V3 : V3 -> NP -> VPSlash = notYet "Slash3V3" ;
|
||||||
|
oper SlashPrep : Cl -> Prep -> ClSlash = notYet "SlashPrep" ;
|
||||||
|
oper SlashV2A : V2A -> AP -> VPSlash = notYet "SlashV2A" ;
|
||||||
|
oper SlashV2Q : V2Q -> QS -> VPSlash = notYet "SlashV2Q" ;
|
||||||
|
oper SlashV2S : V2S -> S -> VPSlash = notYet "SlashV2S" ;
|
||||||
|
oper SlashV2V : V2V -> VP -> VPSlash = notYet "SlashV2V" ;
|
||||||
|
oper SlashV2VNP : V2V -> NP -> VPSlash -> VPSlash = notYet "SlashV2VNP" ;
|
||||||
|
oper SlashVP : NP -> VPSlash -> ClSlash = notYet "SlashVP" ;
|
||||||
|
oper SlashVS : NP -> VS -> SSlash -> ClSlash = notYet "SlashVS" ;
|
||||||
|
oper SlashVV : VV -> VPSlash -> VPSlash = notYet "SlashVV" ;
|
||||||
|
oper SubjS : Subj -> S -> Adv = notYet "SubjS" ;
|
||||||
|
oper Use2N3 : N3 -> N2 = notYet "Use2N3" ;
|
||||||
|
oper Use3N3 : N3 -> N2 = notYet "Use3N3" ;
|
||||||
|
oper UseQCl : Temp -> Pol -> QCl -> QS = notYet "UseQCl" ;
|
||||||
|
oper UseSlash : Temp -> Pol -> ClSlash -> SSlash = notYet "UseSlash" ;
|
||||||
|
oper UttIAdv : IAdv -> Utt = notYet "UttIAdv" ;
|
||||||
|
oper UttImpPl : Pol -> Imp -> Utt = notYet "UttImpPl" ;
|
||||||
|
oper UttImpPol : Pol -> Imp -> Utt = notYet "UttImpPol" ;
|
||||||
|
oper UttImpSg : Pol -> Imp -> Utt = notYet "UttImpSg" ;
|
||||||
|
oper UttQS : QS -> Utt = notYet "UttQS" ;
|
||||||
|
oper VPSlashPrep : VP -> Prep -> VPSlash = notYet "VPSlashPrep" ;
|
||||||
|
oper VocNP : NP -> Voc = notYet "VocNP" ;
|
||||||
|
oper above_Prep : Prep = notYet "above_Prep" ;
|
||||||
|
oper active2passive : Cl -> Cl = notYet "active2passive" ;
|
||||||
|
oper add_V3 : V3 = notYet "add_V3" ;
|
||||||
|
oper after_Prep : Prep = notYet "after_Prep" ;
|
||||||
|
oper airplane_N : N = notYet "airplane_N" ;
|
||||||
|
oper alas_Interj : Interj = notYet "alas_Interj" ;
|
||||||
|
oper almost_AdA : AdA = notYet "almost_AdA" ;
|
||||||
|
oper almost_AdN : AdN = notYet "almost_AdN" ;
|
||||||
|
oper already_Adv : Adv = notYet "already_Adv" ;
|
||||||
|
oper although_Subj : Subj = notYet "although_Subj" ;
|
||||||
|
oper always_AdV : AdV = notYet "always_AdV" ;
|
||||||
|
oper animal_N : N = notYet "animal_N" ;
|
||||||
|
oper answer_V2S : V2S = notYet "answer_V2S" ;
|
||||||
|
oper apartment_N : N = notYet "apartment_N" ;
|
||||||
|
oper art_N : N = notYet "art_N" ;
|
||||||
|
oper as_CAdv : CAdv = notYet "as_CAdv" ;
|
||||||
|
oper ashes_N : N = notYet "ashes_N" ;
|
||||||
|
oper ask_V2Q : V2Q = notYet "ask_V2Q" ;
|
||||||
|
oper at_least_AdN : AdN = notYet "at_least_AdN" ;
|
||||||
|
oper at_most_AdN : AdN = notYet "at_most_AdN" ;
|
||||||
|
oper baby_N : N = notYet "baby_N" ;
|
||||||
|
oper back_N : N = notYet "back_N" ;
|
||||||
|
oper bad_A : A = notYet "bad_A" ;
|
||||||
|
oper bank_N : N = notYet "bank_N" ;
|
||||||
|
oper bark_N : N = notYet "bark_N" ;
|
||||||
|
oper beautiful_A : A = notYet "beautiful_A" ;
|
||||||
|
oper because_Subj : Subj = notYet "because_Subj" ;
|
||||||
|
oper become_VA : VA = notYet "become_VA" ;
|
||||||
|
oper beer_N : N = notYet "beer_N" ;
|
||||||
|
oper before_Prep : Prep = notYet "before_Prep" ;
|
||||||
|
oper beg_V2V : V2V = notYet "beg_V2V" ;
|
||||||
|
oper belly_N : N = notYet "belly_N" ;
|
||||||
|
oper between_Prep : Prep = notYet "between_Prep" ;
|
||||||
|
oper bike_N : N = notYet "bike_N" ;
|
||||||
|
oper bird_N : N = notYet "bird_N" ;
|
||||||
|
oper bite_V2 : V2 = notYet "bite_V2" ;
|
||||||
|
oper blood_N : N = notYet "blood_N" ;
|
||||||
|
oper blow_V : V = notYet "blow_V" ;
|
||||||
|
oper boat_N : N = notYet "boat_N" ;
|
||||||
|
oper bone_N : N = notYet "bone_N" ;
|
||||||
|
oper boot_N : N = notYet "boot_N" ;
|
||||||
|
oper boss_N : N = notYet "boss_N" ;
|
||||||
|
oper both7and_DConj : Conj = notYet "both7and_DConj" ;
|
||||||
|
oper bottle_of_CN : NP -> CN = notYet "bottle_of_CN" ;
|
||||||
|
oper break_V2 : V2 = notYet "break_V2" ;
|
||||||
|
oper breast_N : N = notYet "breast_N" ;
|
||||||
|
oper breathe_V : V = notYet "breathe_V" ;
|
||||||
|
oper broad_A : A = notYet "broad_A" ;
|
||||||
|
oper brother_N2 : N2 = notYet "brother_N2" ;
|
||||||
|
oper brown_A : A = notYet "brown_A" ;
|
||||||
|
oper burn_V : V = notYet "burn_V" ;
|
||||||
|
oper but_PConj : PConj = notYet "but_PConj" ;
|
||||||
|
oper butter_N : N = notYet "butter_N" ;
|
||||||
|
oper buy_V2 : V2 = notYet "buy_V2" ;
|
||||||
|
oper camera_N : N = notYet "camera_N" ;
|
||||||
|
oper can8know_VV : VV = notYet "can8know_VV" ;
|
||||||
|
oper can_VV : VV = notYet "can_VV" ;
|
||||||
|
oper cap_N : N = notYet "cap_N" ;
|
||||||
|
oper car_N : N = notYet "car_N" ;
|
||||||
|
oper carpet_N : N = notYet "carpet_N" ;
|
||||||
|
oper ceiling_N : N = notYet "ceiling_N" ;
|
||||||
|
oper chair_N : N = notYet "chair_N" ;
|
||||||
|
oper cheese_N : N = notYet "cheese_N" ;
|
||||||
|
oper child_N : N = notYet "child_N" ;
|
||||||
|
oper church_N : N = notYet "church_N" ;
|
||||||
|
oper city_N : N = notYet "city_N" ;
|
||||||
|
oper clean_A : A = notYet "clean_A" ;
|
||||||
|
oper clever_A : A = notYet "clever_A" ;
|
||||||
|
oper close_V2 : V2 = notYet "close_V2" ;
|
||||||
|
oper cloud_N : N = notYet "cloud_N" ;
|
||||||
|
oper cold_A : A = notYet "cold_A" ;
|
||||||
|
oper computer_N : N = notYet "computer_N" ;
|
||||||
|
oper correct_A : A = notYet "correct_A" ;
|
||||||
|
oper count_V2 : V2 = notYet "count_V2" ;
|
||||||
|
oper country_N : N = notYet "country_N" ;
|
||||||
|
oper cousin_N : N = notYet "cousin_N" ;
|
||||||
|
oper cow_N : N = notYet "cow_N" ;
|
||||||
|
oper cup_of_CN : NP -> CN = notYet "cup_of_CN" ;
|
||||||
|
oper cut_V2 : V2 = notYet "cut_V2" ;
|
||||||
|
oper day_N : N = notYet "day_N" ;
|
||||||
|
oper dconcat : Digits -> Digits -> Digits = notYet "dconcat" ;
|
||||||
|
oper die_V : V = notYet "die_V" ;
|
||||||
|
oper dig_V : V = notYet "dig_V" ;
|
||||||
|
oper digits2num : Digits -> Numeral = notYet "digits2num" ;
|
||||||
|
oper digits2numeral : Card -> Card = notYet "digits2numeral" ;
|
||||||
|
oper dirty_A : A = notYet "dirty_A" ;
|
||||||
|
oper distance_N3 : N3 = notYet "distance_N3" ;
|
||||||
|
oper dn : Dig -> Digit = notYet "dn" ;
|
||||||
|
oper dn10 : Dig -> Sub10 = notYet "dn10" ;
|
||||||
|
oper dn100 : Dig -> Dig -> Sub100 = notYet "dn100" ;
|
||||||
|
oper dn1000 : Dig -> Dig -> Dig -> Sub1000 = notYet "dn1000" ;
|
||||||
|
oper dn1000000a : Dig -> Dig -> Dig -> Dig -> Sub1000000 = notYet "dn1000000a" ;
|
||||||
|
oper dn1000000b : Dig -> Dig -> Dig -> Dig -> Dig -> Sub1000000 = notYet "dn1000000b" ;
|
||||||
|
oper dn1000000c : Dig -> Dig -> Dig -> Dig -> Dig -> Dig -> Sub1000000 = notYet "dn1000000c" ;
|
||||||
|
oper doctor_N : N = notYet "doctor_N" ;
|
||||||
|
oper dog_N : N = notYet "dog_N" ;
|
||||||
|
oper door_N : N = notYet "door_N" ;
|
||||||
|
oper dry_A : A = notYet "dry_A" ;
|
||||||
|
oper dull_A : A = notYet "dull_A" ;
|
||||||
|
oper during_Prep : Prep = notYet "during_Prep" ;
|
||||||
|
oper dust_N : N = notYet "dust_N" ;
|
||||||
|
oper ear_N : N = notYet "ear_N" ;
|
||||||
|
oper earth_N : N = notYet "earth_N" ;
|
||||||
|
oper easy_A2V : A2 = notYet "easy_A2V" ;
|
||||||
|
oper egg_N : N = notYet "egg_N" ;
|
||||||
|
oper either7or_DConj : Conj = notYet "either7or_DConj" ;
|
||||||
|
oper empty_A : A = notYet "empty_A" ;
|
||||||
|
oper enemy_N : N = notYet "enemy_N" ;
|
||||||
|
oper every_Det : Det = notYet "every_Det" ;
|
||||||
|
oper everybody_NP : NP = notYet "everybody_NP" ;
|
||||||
|
oper everything_NP : NP = notYet "everything_NP" ;
|
||||||
|
oper everywhere_Adv : Adv = notYet "everywhere_Adv" ;
|
||||||
|
oper except_Prep : Prep = notYet "except_Prep" ;
|
||||||
|
oper eye_N : N = notYet "eye_N" ;
|
||||||
|
oper factory_N : N = notYet "factory_N" ;
|
||||||
|
oper fall_V : V = notYet "fall_V" ;
|
||||||
|
oper far_Adv : Adv = notYet "far_Adv" ;
|
||||||
|
oper fat_N : N = notYet "fat_N" ;
|
||||||
|
oper father_N2 : N2 = notYet "father_N2" ;
|
||||||
|
oper fear_V2 : V2 = notYet "fear_V2" ;
|
||||||
|
oper fear_VS : VS = notYet "fear_VS" ;
|
||||||
|
oper feather_N : N = notYet "feather_N" ;
|
||||||
|
oper few_X_short_of_Y : NP -> CN -> CN -> S = notYet "few_X_short_of_Y" ;
|
||||||
|
oper fight_V2 : V2 = notYet "fight_V2" ;
|
||||||
|
oper find_V2 : V2 = notYet "find_V2" ;
|
||||||
|
oper fingernail_N : N = notYet "fingernail_N" ;
|
||||||
|
oper fire_N : N = notYet "fire_N" ;
|
||||||
|
oper fish_N : N = notYet "fish_N" ;
|
||||||
|
oper float_V : V = notYet "float_V" ;
|
||||||
|
oper floor_N : N = notYet "floor_N" ;
|
||||||
|
oper flow_V : V = notYet "flow_V" ;
|
||||||
|
oper flower_N : N = notYet "flower_N" ;
|
||||||
|
oper fly_V : V = notYet "fly_V" ;
|
||||||
|
oper fog_N : N = notYet "fog_N" ;
|
||||||
|
oper foot_N : N = notYet "foot_N" ;
|
||||||
|
oper forest_N : N = notYet "forest_N" ;
|
||||||
|
oper forget_V2 : V2 = notYet "forget_V2" ;
|
||||||
|
oper freeze_V : V = notYet "freeze_V" ;
|
||||||
|
oper fridge_N : N = notYet "fridge_N" ;
|
||||||
|
oper friend_N : N = notYet "friend_N" ;
|
||||||
|
oper from_Prep : Prep = notYet "from_Prep" ;
|
||||||
|
oper fruit_N : N = notYet "fruit_N" ;
|
||||||
|
oper full_A : A = notYet "full_A" ;
|
||||||
|
oper fun_AV : A = notYet "fun_AV" ;
|
||||||
|
oper garden_N : N = notYet "garden_N" ;
|
||||||
|
oper glass_of_CN : NP -> CN = notYet "glass_of_CN" ;
|
||||||
|
oper glove_N : N = notYet "glove_N" ;
|
||||||
|
oper gold_N : N = notYet "gold_N" ;
|
||||||
|
oper grammar_N : N = notYet "grammar_N" ;
|
||||||
|
oper grass_N : N = notYet "grass_N" ;
|
||||||
|
oper green_A : A = notYet "green_A" ;
|
||||||
|
oper guts_N : N = notYet "guts_N" ;
|
||||||
|
oper hair_N : N = notYet "hair_N" ;
|
||||||
|
oper hand_N : N = notYet "hand_N" ;
|
||||||
|
oper harbour_N : N = notYet "harbour_N" ;
|
||||||
|
oper has_age_VP : Card -> VP = notYet "has_age_VP" ;
|
||||||
|
oper hat_N : N = notYet "hat_N" ;
|
||||||
|
oper hate_V2 : V2 = notYet "hate_V2" ;
|
||||||
|
oper have_name_Cl : NP -> NP -> Cl = notYet "have_name_Cl" ;
|
||||||
|
oper head_N : N = notYet "head_N" ;
|
||||||
|
oper hear_V2 : V2 = notYet "hear_V2" ;
|
||||||
|
oper heart_N : N = notYet "heart_N" ;
|
||||||
|
oper heavy_A : A = notYet "heavy_A" ;
|
||||||
|
oper here7from_Adv : Adv = notYet "here7from_Adv" ;
|
||||||
|
oper here7to_Adv : Adv = notYet "here7to_Adv" ;
|
||||||
|
oper here_Adv : Adv = notYet "here_Adv" ;
|
||||||
|
oper hill_N : N = notYet "hill_N" ;
|
||||||
|
oper hit_V2 : V2 = notYet "hit_V2" ;
|
||||||
|
oper hold_V2 : V2 = notYet "hold_V2" ;
|
||||||
|
oper hope_VS : VS = notYet "hope_VS" ;
|
||||||
|
oper horn_N : N = notYet "horn_N" ;
|
||||||
|
oper horse_N : N = notYet "horse_N" ;
|
||||||
|
oper hot_A : A = notYet "hot_A" ;
|
||||||
|
oper how8many_IDet : IDet = notYet "how8many_IDet" ;
|
||||||
|
oper how8much_IAdv : IAdv = notYet "how8much_IAdv" ;
|
||||||
|
oper how_IAdv : IAdv = notYet "how_IAdv" ;
|
||||||
|
oper how_far_QCl : NP -> QCl = notYet "how_far_QCl" ;
|
||||||
|
oper how_old_QCl : NP -> QCl = notYet "how_old_QCl" ;
|
||||||
|
oper hungry_VP : VP = notYet "hungry_VP" ;
|
||||||
|
oper hunt_V2 : V2 = notYet "hunt_V2" ;
|
||||||
|
oper husband_N : N = notYet "husband_N" ;
|
||||||
|
oper ice_N : N = notYet "ice_N" ;
|
||||||
|
oper if_Subj : Subj = notYet "if_Subj" ;
|
||||||
|
oper if_then_Conj : Conj = notYet "if_then_Conj" ;
|
||||||
|
oper ill_VP : VP = notYet "ill_VP" ;
|
||||||
|
oper important_A : A = notYet "important_A" ;
|
||||||
|
oper in8front_Prep : Prep = notYet "in8front_Prep" ;
|
||||||
|
oper industry_N : N = notYet "industry_N" ;
|
||||||
|
oper iron_N : N = notYet "iron_N" ;
|
||||||
|
oper is_right_VP : VP = notYet "is_right_VP" ;
|
||||||
|
oper is_wrong_VP : VP = notYet "is_wrong_VP" ;
|
||||||
|
oper it_Pron : Pron = notYet "it_Pron" ;
|
||||||
|
oper john_PN : PN = notYet "john_PN" ;
|
||||||
|
oper jump_V : V = notYet "jump_V" ;
|
||||||
|
oper kill_V2 : V2 = notYet "kill_V2" ;
|
||||||
|
oper king_N : N = notYet "king_N" ;
|
||||||
|
oper knee_N : N = notYet "knee_N" ;
|
||||||
|
oper know_V2 : V2 = notYet "know_V2" ;
|
||||||
|
oper know_VQ : VQ = notYet "know_VQ" ;
|
||||||
|
oper know_VS : VS = notYet "know_VS" ;
|
||||||
|
oper lake_N : N = notYet "lake_N" ;
|
||||||
|
oper lamp_N : N = notYet "lamp_N" ;
|
||||||
|
oper language_N : N = notYet "language_N" ;
|
||||||
|
oper leaf_N : N = notYet "leaf_N" ;
|
||||||
|
oper learn_V2 : V2 = notYet "learn_V2" ;
|
||||||
|
oper leather_N : N = notYet "leather_N" ;
|
||||||
|
oper leave_V2 : V2 = notYet "leave_V2" ;
|
||||||
|
oper left_Ord : Ord = notYet "left_Ord" ;
|
||||||
|
oper leg_N : N = notYet "leg_N" ;
|
||||||
|
oper less_CAdv : CAdv = notYet "less_CAdv" ;
|
||||||
|
oper lie_V : V = notYet "lie_V" ;
|
||||||
|
oper listen_V2 : V2 = notYet "listen_V2" ;
|
||||||
|
oper live_V : V = notYet "live_V" ;
|
||||||
|
oper liver_N : N = notYet "liver_N" ;
|
||||||
|
oper long_A : A = notYet "long_A" ;
|
||||||
|
oper lose_V2 : V2 = notYet "lose_V2" ;
|
||||||
|
oper louse_N : N = notYet "louse_N" ;
|
||||||
|
oper love_N : N = notYet "love_N" ;
|
||||||
|
oper love_V2 : V2 = notYet "love_V2" ;
|
||||||
|
oper married_A2 : A2 = notYet "married_A2" ;
|
||||||
|
oper married_Cl : NP -> NP -> Cl = notYet "married_Cl" ;
|
||||||
|
oper meat_N : N = notYet "meat_N" ;
|
||||||
|
oper moon_N : N = notYet "moon_N" ;
|
||||||
|
oper more_CAdv : CAdv = notYet "more_CAdv" ;
|
||||||
|
oper most_Predet : Predet = notYet "most_Predet" ;
|
||||||
|
oper mother_N2 : N2 = notYet "mother_N2" ;
|
||||||
|
oper mountain_N : N = notYet "mountain_N" ;
|
||||||
|
oper mouth_N : N = notYet "mouth_N" ;
|
||||||
|
oper much_Det : Det = notYet "much_Det" ;
|
||||||
|
oper music_N : N = notYet "music_N" ;
|
||||||
|
oper must_VV : VV = notYet "must_VV" ;
|
||||||
|
oper n_unit_CN : Card -> CN -> CN -> CN = notYet "n_unit_CN" ;
|
||||||
|
oper n_units_AP : Card -> CN -> A -> AP = notYet "n_units_AP" ;
|
||||||
|
oper n_units_of_NP : Card -> CN -> NP -> NP = notYet "n_units_of_NP" ;
|
||||||
|
oper narrow_A : A = notYet "narrow_A" ;
|
||||||
|
oper nd : Digit -> Dig = notYet "nd" ;
|
||||||
|
oper nd10 : Sub10 -> Digits = notYet "nd10" ;
|
||||||
|
oper nd100 : Sub100 -> Digits = notYet "nd100" ;
|
||||||
|
oper nd1000 : Sub1000 -> Digits = notYet "nd1000" ;
|
||||||
|
oper nd1000000 : Sub1000000 -> Digits = notYet "nd1000000" ;
|
||||||
|
oper near_A : A = notYet "near_A" ;
|
||||||
|
oper neck_N : N = notYet "neck_N" ;
|
||||||
|
oper new_A : A = notYet "new_A" ;
|
||||||
|
oper newspaper_N : N = notYet "newspaper_N" ;
|
||||||
|
oper night_N : N = notYet "night_N" ;
|
||||||
|
oper no_Quant : Quant = notYet "no_Quant" ;
|
||||||
|
oper nobody_NP : NP = notYet "nobody_NP" ;
|
||||||
|
oper nose_N : N = notYet "nose_N" ;
|
||||||
|
oper not_Predet : Predet = notYet "not_Predet" ;
|
||||||
|
oper nothing_NP : NP = notYet "nothing_NP" ;
|
||||||
|
oper num2digits : Numeral -> Digits = notYet "num2digits" ;
|
||||||
|
oper number_N : N = notYet "number_N" ;
|
||||||
|
oper oil_N : N = notYet "oil_N" ;
|
||||||
|
oper old_A : A = notYet "old_A" ;
|
||||||
|
oper on_Prep : Prep = notYet "on_Prep" ;
|
||||||
|
oper open_V2 : V2 = notYet "open_V2" ;
|
||||||
|
oper otherwise_PConj : PConj = notYet "otherwise_PConj" ;
|
||||||
|
oper paint_V2A : V2A = notYet "paint_V2A" ;
|
||||||
|
oper paper_N : N = notYet "paper_N" ;
|
||||||
|
oper paris_PN : PN = notYet "paris_PN" ;
|
||||||
|
oper peace_N : N = notYet "peace_N" ;
|
||||||
|
oper pen_N : N = notYet "pen_N" ;
|
||||||
|
oper planet_N : N = notYet "planet_N" ;
|
||||||
|
oper plastic_N : N = notYet "plastic_N" ;
|
||||||
|
oper play_V : V = notYet "play_V" ;
|
||||||
|
oper play_V2 : V2 = notYet "play_V2" ;
|
||||||
|
oper please_Voc : Voc = notYet "please_Voc" ;
|
||||||
|
oper policeman_N : N = notYet "policeman_N" ;
|
||||||
|
oper possess_Prep : Prep = notYet "possess_Prep" ;
|
||||||
|
oper priest_N : N = notYet "priest_N" ;
|
||||||
|
oper probable_AS : A = notYet "probable_AS" ;
|
||||||
|
oper pull_V2 : V2 = notYet "pull_V2" ;
|
||||||
|
oper push_V2 : V2 = notYet "push_V2" ;
|
||||||
|
oper put_V2 : V2 = notYet "put_V2" ;
|
||||||
|
oper queen_N : N = notYet "queen_N" ;
|
||||||
|
oper question_N : N = notYet "question_N" ;
|
||||||
|
oper quite_Adv : AdA = notYet "quite_Adv" ;
|
||||||
|
oper radio_N : N = notYet "radio_N" ;
|
||||||
|
oper rain_N : N = notYet "rain_N" ;
|
||||||
|
oper rain_V0 : V = notYet "rain_V0" ;
|
||||||
|
oper read_V2 : V2 = notYet "read_V2" ;
|
||||||
|
oper ready_A : A = notYet "ready_A" ;
|
||||||
|
oper ready_VP : VP = notYet "ready_VP" ;
|
||||||
|
oper reason_N : N = notYet "reason_N" ;
|
||||||
|
oper religion_N : N = notYet "religion_N" ;
|
||||||
|
oper restaurant_N : N = notYet "restaurant_N" ;
|
||||||
|
oper right_Ord : Ord = notYet "right_Ord" ;
|
||||||
|
oper river_N : N = notYet "river_N" ;
|
||||||
|
oper road_N : N = notYet "road_N" ;
|
||||||
|
oper rock_N : N = notYet "rock_N" ;
|
||||||
|
oper roof_N : N = notYet "roof_N" ;
|
||||||
|
oper root_N : N = notYet "root_N" ;
|
||||||
|
oper rope_N : N = notYet "rope_N" ;
|
||||||
|
oper rotten_A : A = notYet "rotten_A" ;
|
||||||
|
oper round_A : A = notYet "round_A" ;
|
||||||
|
oper rub_V2 : V2 = notYet "rub_V2" ;
|
||||||
|
oper rubber_N : N = notYet "rubber_N" ;
|
||||||
|
oper rule_N : N = notYet "rule_N" ;
|
||||||
|
oper run_V : V = notYet "run_V" ;
|
||||||
|
oper salt_N : N = notYet "salt_N" ;
|
||||||
|
oper sand_N : N = notYet "sand_N" ;
|
||||||
|
oper say_VS : VS = notYet "say_VS" ;
|
||||||
|
oper scared_VP : VP = notYet "scared_VP" ;
|
||||||
|
oper school_N : N = notYet "school_N" ;
|
||||||
|
oper science_N : N = notYet "science_N" ;
|
||||||
|
oper scratch_V2 : V2 = notYet "scratch_V2" ;
|
||||||
|
oper sea_N : N = notYet "sea_N" ;
|
||||||
|
oper seed_N : N = notYet "seed_N" ;
|
||||||
|
oper seek_V2 : V2 = notYet "seek_V2" ;
|
||||||
|
oper sell_V3 : V3 = notYet "sell_V3" ;
|
||||||
|
oper send_V3 : V3 = notYet "send_V3" ;
|
||||||
|
oper sew_V : V = notYet "sew_V" ;
|
||||||
|
oper sharp_A : A = notYet "sharp_A" ;
|
||||||
|
oper sheep_N : N = notYet "sheep_N" ;
|
||||||
|
oper ship_N : N = notYet "ship_N" ;
|
||||||
|
oper shoe_N : N = notYet "shoe_N" ;
|
||||||
|
oper shop_N : N = notYet "shop_N" ;
|
||||||
|
oper silver_N : N = notYet "silver_N" ;
|
||||||
|
oper sister_N : N = notYet "sister_N" ;
|
||||||
|
oper sit_V : V = notYet "sit_V" ;
|
||||||
|
oper skin_N : N = notYet "skin_N" ;
|
||||||
|
oper sky_N : N = notYet "sky_N" ;
|
||||||
|
oper sleep_V : V = notYet "sleep_V" ;
|
||||||
|
oper smell_V : V = notYet "smell_V" ;
|
||||||
|
oper smoke_N : N = notYet "smoke_N" ;
|
||||||
|
oper smooth_A : A = notYet "smooth_A" ;
|
||||||
|
oper snake_N : N = notYet "snake_N" ;
|
||||||
|
oper snow_N : N = notYet "snow_N" ;
|
||||||
|
oper so_AdA : AdA = notYet "so_AdA" ;
|
||||||
|
oper sock_N : N = notYet "sock_N" ;
|
||||||
|
oper somebody_NP : NP = notYet "somebody_NP" ;
|
||||||
|
oper somewhere_Adv : Adv = notYet "somewhere_Adv" ;
|
||||||
|
oper song_N : N = notYet "song_N" ;
|
||||||
|
oper speak_V2 : V2 = notYet "speak_V2" ;
|
||||||
|
oper spit_V : V = notYet "spit_V" ;
|
||||||
|
oper split_V2 : V2 = notYet "split_V2" ;
|
||||||
|
oper squeeze_V2 : V2 = notYet "squeeze_V2" ;
|
||||||
|
oper stab_V2 : V2 = notYet "stab_V2" ;
|
||||||
|
oper stand_V : V = notYet "stand_V" ;
|
||||||
|
oper star_N : N = notYet "star_N" ;
|
||||||
|
oper steel_N : N = notYet "steel_N" ;
|
||||||
|
oper stick_N : N = notYet "stick_N" ;
|
||||||
|
oper stone_N : N = notYet "stone_N" ;
|
||||||
|
oper stop_V : V = notYet "stop_V" ;
|
||||||
|
oper stove_N : N = notYet "stove_N" ;
|
||||||
|
oper straight_A : A = notYet "straight_A" ;
|
||||||
|
oper student_N : N = notYet "student_N" ;
|
||||||
|
oper stupid_A : A = notYet "stupid_A" ;
|
||||||
|
oper suck_V2 : V2 = notYet "suck_V2" ;
|
||||||
|
oper sun_N : N = notYet "sun_N" ;
|
||||||
|
oper swell_V : V = notYet "swell_V" ;
|
||||||
|
oper swim_V : V = notYet "swim_V" ;
|
||||||
|
oper switch8off_V2 : V2 = notYet "switch8off_V2" ;
|
||||||
|
oper switch8on_V2 : V2 = notYet "switch8on_V2" ;
|
||||||
|
oper table_N : N = notYet "table_N" ;
|
||||||
|
oper tail_N : N = notYet "tail_N" ;
|
||||||
|
oper talk_V3 : V3 = notYet "talk_V3" ;
|
||||||
|
oper teach_V2 : V2 = notYet "teach_V2" ;
|
||||||
|
oper teacher_N : N = notYet "teacher_N" ;
|
||||||
|
oper television_N : N = notYet "television_N" ;
|
||||||
|
oper that_Subj : Subj = notYet "that_Subj" ;
|
||||||
|
oper there7from_Adv : Adv = notYet "there7from_Adv" ;
|
||||||
|
oper there7to_Adv : Adv = notYet "there7to_Adv" ;
|
||||||
|
oper there_Adv : Adv = notYet "there_Adv" ;
|
||||||
|
oper therefore_PConj : PConj = notYet "therefore_PConj" ;
|
||||||
|
oper they_Pron : Pron = notYet "they_Pron" ;
|
||||||
|
oper thick_A : A = notYet "thick_A" ;
|
||||||
|
oper thin_A : A = notYet "thin_A" ;
|
||||||
|
oper think_V : V = notYet "think_V" ;
|
||||||
|
oper thirsty_VP : VP = notYet "thirsty_VP" ;
|
||||||
|
oper through_Prep : Prep = notYet "through_Prep" ;
|
||||||
|
oper throw_V2 : V2 = notYet "throw_V2" ;
|
||||||
|
oper tie_V2 : V2 = notYet "tie_V2" ;
|
||||||
|
oper tired_VP : VP = notYet "tired_VP" ;
|
||||||
|
oper tongue_N : N = notYet "tongue_N" ;
|
||||||
|
oper too_AdA : AdA = notYet "too_AdA" ;
|
||||||
|
oper tooth_N : N = notYet "tooth_N" ;
|
||||||
|
oper train_N : N = notYet "train_N" ;
|
||||||
|
oper travel_V : V = notYet "travel_V" ;
|
||||||
|
oper tree_N : N = notYet "tree_N" ;
|
||||||
|
oper turn_V : V = notYet "turn_V" ;
|
||||||
|
oper ugly_A : A = notYet "ugly_A" ;
|
||||||
|
oper uncertain_A : A = notYet "uncertain_A" ;
|
||||||
|
oper under_Prep : Prep = notYet "under_Prep" ;
|
||||||
|
oper understand_V2 : V2 = notYet "understand_V2" ;
|
||||||
|
oper university_N : N = notYet "university_N" ;
|
||||||
|
oper village_N : N = notYet "village_N" ;
|
||||||
|
oper vomit_V : V = notYet "vomit_V" ;
|
||||||
|
oper wait_V2 : V2 = notYet "wait_V2" ;
|
||||||
|
oper walk_V : V = notYet "walk_V" ;
|
||||||
|
oper want_VV : VV = notYet "want_VV" ;
|
||||||
|
oper war_N : N = notYet "war_N" ;
|
||||||
|
oper warm_A : A = notYet "warm_A" ;
|
||||||
|
oper wash_V2 : V2 = notYet "wash_V2" ;
|
||||||
|
oper watch_V2 : V2 = notYet "watch_V2" ;
|
||||||
|
oper water_N : N = notYet "water_N" ;
|
||||||
|
oper we_Pron : Pron = notYet "we_Pron" ;
|
||||||
|
oper weather_adjCl : AP -> Cl = notYet "weather_adjCl" ;
|
||||||
|
oper wet_A : A = notYet "wet_A" ;
|
||||||
|
oper whatPl_IP : IP = notYet "whatPl_IP" ;
|
||||||
|
oper whatSg_IP : IP = notYet "whatSg_IP" ;
|
||||||
|
oper what_name_QCl : NP -> QCl = notYet "what_name_QCl" ;
|
||||||
|
oper when_IAdv : IAdv = notYet "when_IAdv" ;
|
||||||
|
oper when_Subj : Subj = notYet "when_Subj" ;
|
||||||
|
oper where_IAdv : IAdv = notYet "where_IAdv" ;
|
||||||
|
oper which_IQuant : IQuant = notYet "which_IQuant" ;
|
||||||
|
oper white_A : A = notYet "white_A" ;
|
||||||
|
oper whoPl_IP : IP = notYet "whoPl_IP" ;
|
||||||
|
oper whoSg_IP : IP = notYet "whoSg_IP" ;
|
||||||
|
oper why_IAdv : IAdv = notYet "why_IAdv" ;
|
||||||
|
oper wide_A : A = notYet "wide_A" ;
|
||||||
|
oper wife_N : N = notYet "wife_N" ;
|
||||||
|
oper win_V2 : V2 = notYet "win_V2" ;
|
||||||
|
oper wind_N : N = notYet "wind_N" ;
|
||||||
|
oper window_N : N = notYet "window_N" ;
|
||||||
|
oper wine_N : N = notYet "wine_N" ;
|
||||||
|
oper wing_N : N = notYet "wing_N" ;
|
||||||
|
oper wipe_V2 : V2 = notYet "wipe_V2" ;
|
||||||
|
oper with_Prep : Prep = notYet "with_Prep" ;
|
||||||
|
oper without_Prep : Prep = notYet "without_Prep" ;
|
||||||
|
oper wonder_VQ : VQ = notYet "wonder_VQ" ;
|
||||||
|
oper wood_N : N = notYet "wood_N" ;
|
||||||
|
oper worm_N : N = notYet "worm_N" ;
|
||||||
|
oper write_V2 : V2 = notYet "write_V2" ;
|
||||||
|
oper year_N : N = notYet "year_N" ;
|
||||||
|
oper yellow_A : A = notYet "yellow_A" ;
|
||||||
|
oper young_A : A = notYet "young_A" ;
|
||||||
|
}
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
--# -path=.:../../prelude
|
|
||||||
|
|
||||||
--1 A Simple Hunlish Resource Morphology
|
|
||||||
--
|
|
||||||
-- Aarne Ranta 2002 -- 2005
|
|
||||||
--
|
|
||||||
-- This resource morphology contains definitions needed in the resource
|
|
||||||
-- syntax. To build a lexicon, it is better to use $ParadigmsHun$, which
|
|
||||||
-- gives a higher-level access to this module.
|
|
||||||
|
|
||||||
resource MorphoHun = open Prelude, (Predef=Predef), ResHun in
|
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
|
||||||
-- flags optimize=all ;
|
|
||||||
--
|
|
||||||
----2 Determiners
|
|
||||||
--
|
|
||||||
-- oper
|
|
||||||
--
|
|
||||||
-- mkDeterminer : Number -> Str ->
|
|
||||||
-- {s : Str ; sp : NPCase => Str; n : Number ; hasNum : Bool} = \n,s ->
|
|
||||||
-- {s = s;
|
|
||||||
-- sp = \\c => regGenitiveS s ! npcase2case c ;
|
|
||||||
-- n = n ;
|
|
||||||
-- hasNum = True ; -- doesn't matter since s = sp
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
----2 Pronouns
|
|
||||||
--
|
|
||||||
--
|
|
||||||
-- mkPron : (i,me,my,mine : Str) -> Number -> Person -> Gender ->
|
|
||||||
-- {s : NPCase => Str ; sp : Case => Str ; a : Agr} =
|
|
||||||
-- \i,me,my,mine,n,p,g -> {
|
|
||||||
-- s = table {
|
|
||||||
-- NCase Nom => i ;
|
|
||||||
-- NPAcc => me ;
|
|
||||||
-- NCase Gen => my
|
|
||||||
-- } ;
|
|
||||||
-- a = toAgr n p g ;
|
|
||||||
-- sp = regGenitiveS mine
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
--} ;
|
|
||||||
--
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,144 +1,228 @@
|
|||||||
concrete NounHun of Noun = CatHun ** open MorphoHun, ResHun, Prelude in
|
concrete NounHun of Noun = CatHun ** open ResHun, Prelude, Coordination in {
|
||||||
{
|
|
||||||
--{
|
flags optimize=all_subs ;
|
||||||
--
|
|
||||||
-- flags optimize=all_subs ;
|
lin
|
||||||
--
|
|
||||||
-- lin
|
--2 Noun phrases
|
||||||
-- DetCN det cn = {
|
|
||||||
-- s = \\c => det.s ++ cn.s ! det.n ! npcase2case c ;
|
-- : Det -> CN -> NP
|
||||||
-- a = agrgP3 det.n cn.g
|
DetCN det cn = emptyNP ** det ** {
|
||||||
-- } ;
|
s = \\c => det.s ! c ++ cn.s ! det.n ! c ;
|
||||||
--
|
agr = <P3,det.n> ;
|
||||||
-- UsePN pn = {s = \\c => pn.s ! npcase2case c ; a = agrgP3 Sg pn.g} ;
|
} ;
|
||||||
-- UsePron p = p ;
|
|
||||||
--
|
-- : PN -> NP ;
|
||||||
-- PredetNP pred np = {
|
UsePN pn = pn ;
|
||||||
-- s = \\c => pred.s ++ np.s ! c ;
|
|
||||||
-- a = np.a
|
-- : Pron -> NP ;
|
||||||
-- } ;
|
UsePron pron = pron ;
|
||||||
--
|
|
||||||
-- PPartNP np v2 = {
|
-- : Predet -> NP -> NP ; -- only the man
|
||||||
-- s = \\c => np.s ! c ++ v2.s ! VPPart ;
|
PredetNP predet np = np ** {
|
||||||
-- a = np.a
|
s = \\c => predet.s ++ np.s ! c ;
|
||||||
-- } ;
|
} ;
|
||||||
--
|
|
||||||
-- RelNP np rs = {
|
-- A noun phrase can also be postmodified by the past participle of a
|
||||||
-- s = \\c => np.s ! c ++ "," ++ rs.s ! np.a ;
|
-- verb, by an adverb, or by a relative clause
|
||||||
-- a = np.a
|
|
||||||
-- } ;
|
-- : NP -> V2 -> NP ; -- the man seen
|
||||||
--
|
-- PPartNP np v2 = np ** {
|
||||||
-- AdvNP np adv = {
|
-- s = \\c => v2.s ! ??? ++ np.s ! c } ; ----
|
||||||
-- s = \\c => np.s ! c ++ adv.s ;
|
|
||||||
-- a = np.a
|
-- : NP -> Adv -> NP ; -- Paris today
|
||||||
-- } ;
|
AdvNP np adv = np ** {
|
||||||
--
|
s = \\c => np.s ! c ++ adv.s ;
|
||||||
-- DetQuant quant num = {
|
} ;
|
||||||
-- s = quant.s ! num.hasCard ! num.n ++ num.s ! Nom;
|
-- : NP -> Adv -> NP ; -- boys, such as ..
|
||||||
-- sp = \\c => case num.hasCard of {
|
ExtAdvNP np adv = np ** {
|
||||||
-- False => quant.sp ! num.hasCard ! num.n ! c ++ num.s ! Nom ;
|
s = \\c => np.s ! c ++ bindComma ++ adv.s ;
|
||||||
-- True => quant.sp ! num.hasCard ! num.n ! npNom ++ num.s ! npcase2case c
|
} ;
|
||||||
-- } ;
|
-- : NP -> RS -> NP ; -- Paris, which is here
|
||||||
-- n = num.n ;
|
RelNP np rs = np ** {
|
||||||
-- hasNum = num.hasCard
|
s = \\c => np.s ! c ++ bindComma ++ rs.s ! np.agr.p2 ! c ;
|
||||||
-- } ;
|
} ;
|
||||||
--
|
|
||||||
-- DetQuantOrd quant num ord = {
|
-- Determiners can form noun phrases directly.
|
||||||
-- s = quant.s ! num.hasCard ! num.n ++ num.s ! Nom ++ ord.s ! Nom;
|
|
||||||
-- sp = \\c => quant.sp ! num.hasCard ! num.n ! npNom ++ num.s ! Nom ++ ord.s ! npcase2case c ;
|
-- : Det -> NP ;
|
||||||
-- n = num.n ;
|
DetNP det = emptyNP ** {
|
||||||
-- hasNum = True
|
s = det.sp ;
|
||||||
-- } ;
|
agr = <P3,det.n> ;
|
||||||
--
|
} ;
|
||||||
-- DetNP det = {
|
|
||||||
-- s = case det.hasNum of {True => \\_ => det.s ; _ => \\c => det.sp ! c} ;
|
-- : CN -> NP ;
|
||||||
-- a = agrP3 det.n
|
MassNP cn = emptyNP ** {
|
||||||
-- } ;
|
s = \\c => cn.s ! Sg ! c ;
|
||||||
--
|
agr = <P3,Sg> ;
|
||||||
-- PossPron p = {
|
} ;
|
||||||
-- s = \\_,_ => p.s ! NCase Gen ;
|
|
||||||
-- sp = \\_,_,c => p.sp ! npcase2case c
|
--2 Determiners
|
||||||
-- } ;
|
|
||||||
--
|
-- The determiner has a fine-grained structure, in which a 'nucleus'
|
||||||
-- NumSg = {s = \\c => []; n = Sg ; hasCard = False} ;
|
-- quantifier and an optional numeral can be discerned.
|
||||||
-- NumPl = {s = \\c => []; n = Pl ; hasCard = False} ;
|
|
||||||
-----b NoOrd = {s = []} ;
|
-- : Quant -> Num -> Det ;
|
||||||
--
|
DetQuant quant num = quant ** num ** {
|
||||||
-- NumCard n = n ** {hasCard = True} ;
|
s = \\c => case <isNum num,quant.isIndefArt> of {
|
||||||
--
|
<True,True> => [] ; -- don't output "a 2 cars"
|
||||||
-- NumDigits n = {s = n.s ! NCard ; n = n.n} ;
|
_ => quant.s ! num.n ! c }
|
||||||
-- OrdDigits n = {s = n.s ! NOrd} ;
|
++ num.s ! Attrib ; -- TODO: add inflection table in numbers
|
||||||
--
|
sp = \\c => quant.sp ! num.n ! c
|
||||||
-- NumNumeral numeral = {s = numeral.s ! NCard; n = numeral.n} ;
|
++ num.s ! Indep ;
|
||||||
-- OrdNumeral numeral = {s = numeral.s ! NOrd} ;
|
} ;
|
||||||
--
|
|
||||||
-- AdNum adn num = {s = \\c => adn.s ++ num.s!c ; n = num.n} ;
|
-- : Quant -> Num -> Ord -> Det ; -- these five best
|
||||||
--
|
DetQuantOrd quant num ord =
|
||||||
-- OrdSuperl a = {s = \\c => a.s ! AAdj Superl c } ;
|
let theseFive = DetQuant quant num in theseFive ** {
|
||||||
--
|
s = \\c => theseFive.s ! c ++ ord.s ! num.n ;
|
||||||
-- DefArt = {
|
sp = \\c => theseFive.sp ! c ++ ord.s ! num.n ;
|
||||||
-- s = \\hasCard,n => artDef ;
|
} ;
|
||||||
-- sp = \\hasCard,n => case <n,hasCard> of {
|
|
||||||
-- <Sg,False> => table { NCase Gen => "its"; _ => "it" } ;
|
-- Whether the resulting determiner is singular or plural depends on the
|
||||||
-- <Pl,False> => table { NCase Nom => "they"; NPAcc => "them"; NCase Gen => "theirs" } ;
|
-- cardinal.
|
||||||
-- _ => \\c => artDef
|
|
||||||
-- }
|
-- All parts of the determiner can be empty, except $Quant$, which is
|
||||||
-- } ;
|
-- the "kernel" of a determiner. It is, however, the $Num$ that determines
|
||||||
--
|
-- the inherent number.
|
||||||
-- IndefArt = {
|
|
||||||
-- s = \\hasCard,n => case <n,hasCard> of {
|
NumSg = baseNum ;
|
||||||
-- <Sg,False> => artIndef ;
|
NumPl = baseNum ** {n = Pl} ;
|
||||||
-- _ => []
|
|
||||||
-- } ;
|
-- : Card -> Num ;
|
||||||
-- sp = \\hasCard,n => case <n,hasCard> of {
|
NumCard card = card ** {
|
||||||
-- <Sg,False> => table {NCase Gen => "one's"; _ => "one" };
|
n = Sg -- Numerals take noun in Sg: e.g. öt város, literally 'five city'
|
||||||
-- <Pl,False> => table {NCase Gen => "ones'"; _ => "ones" } ;
|
} ;
|
||||||
-- _ => \\c => []
|
|
||||||
-- }
|
-- : Digits -> Card ;
|
||||||
-- } ;
|
NumDigits dig = dig ** {
|
||||||
--
|
s = \\place => dig.s ! NCard ;
|
||||||
-- MassNP cn = {
|
numtype = IsNum ;
|
||||||
-- s = \\c => cn.s ! Sg ! npcase2case c ;
|
} ;
|
||||||
-- a = agrP3 Sg
|
|
||||||
-- } ;
|
-- : Numeral -> Card ;
|
||||||
--
|
NumNumeral num = num ;
|
||||||
-- UseN n = n ;
|
|
||||||
-- UseN2 n = n ;
|
{-
|
||||||
-----b UseN3 n = n ;
|
-- : AdN -> Card -> Card ;
|
||||||
--
|
AdNum adn card = card ** { s = adn.s ++ card.s } ;
|
||||||
-- Use2N3 f = {
|
|
||||||
-- s = \\n,c => f.s ! n ! Nom ;
|
-- : Digits -> Ord ;
|
||||||
-- g = f.g ;
|
OrdDigits digs = digs ** { s = digs.s ! NOrd } ;
|
||||||
-- c2 = f.c2
|
|
||||||
-- } ;
|
-- : Numeral -> Ord ;
|
||||||
--
|
OrdNumeral num = num ** {
|
||||||
-- Use3N3 f = {
|
s = \\_ => num.ord
|
||||||
-- s = \\n,c => f.s ! n ! Nom ;
|
} ;
|
||||||
-- g = f.g ;
|
-}
|
||||||
-- c2 = f.c3
|
-- : A -> Ord ;
|
||||||
-- } ;
|
OrdSuperl a = {
|
||||||
--
|
s = a.s ! Superl ;
|
||||||
-- ComplN2 f x = {s = \\n,c => f.s ! n ! Nom ++ f.c2 ++ x.s ! NPAcc ; g = f.g} ;
|
n = Sg -- ?? is this meaningful?
|
||||||
-- ComplN3 f x = {
|
} ;
|
||||||
-- s = \\n,c => f.s ! n ! Nom ++ f.c2 ++ x.s ! NPAcc ;
|
|
||||||
-- g = f.g ;
|
-- One can combine a numeral and a superlative.
|
||||||
-- c2 = f.c3
|
|
||||||
-- } ;
|
-- : Numeral -> A -> Ord ; -- third largest
|
||||||
--
|
-- OrdNumeralSuperl num a = num ** { } ;
|
||||||
-- AdjCN ap cn = {
|
|
||||||
-- s = \\n,c => preOrPost ap.isPre (ap.s ! agrgP3 n cn.g) (cn.s ! n ! c) ;
|
-- : Quant
|
||||||
-- g = cn.g
|
DefArt = {
|
||||||
-- } ;
|
s,
|
||||||
-- RelCN cn rs = {
|
sp = \\_,_ => pre {"a" ; "az" / v } ;
|
||||||
-- s = \\n,c => cn.s ! n ! c ++ rs.s ! agrgP3 n cn.g ;
|
isIndefArt = False ;
|
||||||
-- g = cn.g
|
objdef = Def ;
|
||||||
-- } ;
|
} ;
|
||||||
-- AdvCN cn ad = {s = \\n,c => cn.s ! n ! c ++ ad.s ; g = cn.g} ;
|
|
||||||
--
|
-- : Quant
|
||||||
-- SentCN cn sc = {s = \\n,c => cn.s ! n ! c ++ sc.s ; g = cn.g} ;
|
IndefArt = {
|
||||||
--
|
s,
|
||||||
-- ApposCN cn np = {s = \\n,c => cn.s ! n ! Nom ++ np.s ! NCase c ; g = cn.g} ;
|
sp = \\n,_ => case n of {Sg => "egy" ; Pl => []} ;
|
||||||
--
|
isIndefArt = True ;
|
||||||
--}
|
objdef = Indef ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- : Pron -> Quant
|
||||||
|
-- PossPron pron =
|
||||||
|
-- let p = pron.poss ;
|
||||||
|
-- in DefArt ** {
|
||||||
|
-- } ;
|
||||||
|
|
||||||
|
--2 Common nouns
|
||||||
|
|
||||||
|
-- : N -> CN
|
||||||
|
-- : N2 -> CN ;
|
||||||
|
UseN,UseN2 = \n -> n ;
|
||||||
|
|
||||||
|
-- : N2 -> NP -> CN ;
|
||||||
|
-- ComplN2 n2 np =
|
||||||
|
|
||||||
|
-- : N3 -> NP -> N2 ; -- distance from this city (to Paris)
|
||||||
|
-- ComplN3 n3 np =
|
||||||
|
|
||||||
|
|
||||||
|
-- : N3 -> N2 ; -- distance (from this city)
|
||||||
|
-- Use2N3 n3 = lin N2 n3 ** { c2 = n3.c3 } ;
|
||||||
|
|
||||||
|
-- : N3 -> N2 ; -- distance (to Paris)
|
||||||
|
-- Use3N3 n3 = lin N2 n3 ;
|
||||||
|
|
||||||
|
-- : AP -> CN -> CN
|
||||||
|
AdjCN ap cn = cn ** {
|
||||||
|
s = \\n,c => ap.s ! Sg ++ cn.s ! n ! c ++ ap.compar
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- : CN -> RS -> CN ;
|
||||||
|
RelCN cn rs = cn ** {
|
||||||
|
s = \\n,c => cn.s ! n ! c ++ rs.s ! n ! c
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- : CN -> Adv -> CN ;
|
||||||
|
AdvCN cn adv = cn ** {
|
||||||
|
s = \\n,c => cn.s ! n ! c ++ adv.s
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- Nouns can also be modified by embedded sentences and questions.
|
||||||
|
-- For some nouns this makes little sense, but we leave this for applications
|
||||||
|
-- to decide. Sentential complements are defined in VerbHun.
|
||||||
|
|
||||||
|
-- : CN -> SC -> CN ; -- question where she sleeps
|
||||||
|
-- SentCN cn sc = cn ** { } ;
|
||||||
|
|
||||||
|
--2 Apposition
|
||||||
|
|
||||||
|
-- This is certainly overgenerating.
|
||||||
|
|
||||||
|
-- : CN -> NP -> CN ; -- city Paris (, numbers x and y)
|
||||||
|
ApposCN cn np = cn ** {
|
||||||
|
s = \\n,c => cn.s ! n ! c ++ np.s ! Nom
|
||||||
|
} ;
|
||||||
|
|
||||||
|
--2 Possessive and partitive constructs
|
||||||
|
|
||||||
|
-- : PossNP : CN -> NP -> CN ;
|
||||||
|
-- PossNP cn np = cn ** {
|
||||||
|
-- } ;
|
||||||
|
|
||||||
|
-- : CN -> NP -> CN ; -- glass of wine / two kilos of red apples
|
||||||
|
-- PartNP cn np = cn ** {
|
||||||
|
-- } ;
|
||||||
|
|
||||||
|
{-
|
||||||
|
|
||||||
|
-- This is different from the partitive, as shown by many languages.
|
||||||
|
|
||||||
|
-- : Det -> NP -> NP ;
|
||||||
|
CountNP det np = np **
|
||||||
|
{ } ; -- Nonsense for DefArt or IndefArt
|
||||||
|
|
||||||
|
--3 Conjoinable determiners and ones with adjectives
|
||||||
|
|
||||||
|
-- : DAP -> AP -> DAP ; -- the large (one)
|
||||||
|
AdjDAP dap ap = dap ** { } ;
|
||||||
|
|
||||||
|
-- : Det -> DAP ; -- this (or that)
|
||||||
|
DetDAP det = det ;
|
||||||
|
-}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
336
src/hungarian/NounMorphoHun.gf
Normal file
336
src/hungarian/NounMorphoHun.gf
Normal file
@@ -0,0 +1,336 @@
|
|||||||
|
resource NounMorphoHun = ParamHun ** open Prelude, Predef in {
|
||||||
|
|
||||||
|
oper
|
||||||
|
Noun = {s : Number => Case => Str} ;
|
||||||
|
|
||||||
|
-- Paradigm functions
|
||||||
|
-- http://www.cse.chalmers.se/~aarne/articles/smart-preprint.pdf
|
||||||
|
|
||||||
|
-- Words like alma, kefe:
|
||||||
|
dAlma : Str -> Noun = \alma ->
|
||||||
|
let almá : Str = lengthen alma ;
|
||||||
|
|
||||||
|
-- Apply mkNoun to the lengthened stem "almá" or "kefé"
|
||||||
|
nAlmá : Noun = mkNoun almá ;
|
||||||
|
in {s = \\n,c => case <n,c> of {
|
||||||
|
-- Singular nominative uses the given form, e.g. "alma" or "kefe"
|
||||||
|
<Sg,Nom> => alma ;
|
||||||
|
|
||||||
|
-- The rest of the forms are formed with the regular constructor,
|
||||||
|
-- using "almá" or "kefé" as the stem.
|
||||||
|
_ => nAlmá.s ! n ! c
|
||||||
|
} ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- Handles words like "madár, nyár, név, bogár" with shortened stem vowel in plural
|
||||||
|
-- No special <Sg,Sup> case here
|
||||||
|
dMadár : Str -> Noun = \madár ->
|
||||||
|
let r = last madár ;
|
||||||
|
madá = init madár ;
|
||||||
|
mada = shorten madá ; -- shortens vowels
|
||||||
|
a = last mada ;
|
||||||
|
madara = mada + r + a ;
|
||||||
|
nMadara = mkNounHarm (getHarm madara) "k" madara ;
|
||||||
|
nMadár = mkNoun madár ;
|
||||||
|
in {s = \\n,c => case <n,c> of {
|
||||||
|
-- All plural forms and Sg Acc use the "madara"/"neve" stem
|
||||||
|
<Pl,_>|<Sg,Acc> => nMadara.s ! n ! c ;
|
||||||
|
|
||||||
|
-- The rest of the forms are formed with the regular constructor,
|
||||||
|
-- using "madár"/"név" as the stem.
|
||||||
|
_ => nMadár.s ! n ! c
|
||||||
|
|
||||||
|
} ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
--Handles words like "ló, lé, kő" which are "lovak, levek, kövek" in plural.
|
||||||
|
-- <Sg,Sup> "lovon" instead of "lón" fixed but that gives the following problems:
|
||||||
|
--TODO: special case <Sg,Sup> "lén" not "leven"
|
||||||
|
--TODO: <Sg,Sup> also "kövön" not "köven", but that is due to H_e, which is needed for "köveket" so it's conflicting
|
||||||
|
dLó : Str -> Noun = \ló ->
|
||||||
|
let lo = shorten ló ;
|
||||||
|
lov = lo + "v" ;
|
||||||
|
ak : Str = case ló of {
|
||||||
|
_ + ("ö" | "ő") => "ek" ;
|
||||||
|
_ + ("o" | "ó") => "ak" ;
|
||||||
|
lé => shorten (last lé) + "k"} ;
|
||||||
|
harmonyPlural : Harm = case ló of {
|
||||||
|
_ + ("ö" | "ő") => H_e ; -- All plural allomorphs have E harmony, singular ones have O.
|
||||||
|
_ + ("o" | "ó") => H_a ;
|
||||||
|
lé => getHarm (lé)} ;
|
||||||
|
nLov = mkNounHarm harmonyPlural ak lov ;
|
||||||
|
nLó = mkNoun ló ;
|
||||||
|
in {s = \\n,c => case <n,c> of {
|
||||||
|
|
||||||
|
-- All plural forms and Sg Acc, Sg Sup use the "lov" stem
|
||||||
|
<Pl,_>| <Sg,Acc> | <Sg,Sup> => nLov.s ! n ! c ;
|
||||||
|
|
||||||
|
-- The rest of the forms are formed with the regular constructor,
|
||||||
|
-- using "ló" as the stem.
|
||||||
|
_ => nLó.s ! n ! c
|
||||||
|
|
||||||
|
} ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
--Handles words like "tó, hó"" which are "tavak, havak" in plural.
|
||||||
|
--(Since I only have these examples for now I do a simplified case with ó, a)
|
||||||
|
--<Sg,Sup> "tavon" instead of "tón" case fixed, works automatically with the Sup rules
|
||||||
|
--TODO: szó special case which fulfills the plural cases but not the <Sg,Acc> or <Sg,Sup> case ("szót" not "szavat")
|
||||||
|
dTó : Str -> Noun = \tó ->
|
||||||
|
let t = init tó ;
|
||||||
|
tav = t + "av" ;
|
||||||
|
nTav = mkNounHarm H_a "ak" tav ;
|
||||||
|
nTó = mkNoun tó ;
|
||||||
|
in {s = \\n,c => case <n,c> of {
|
||||||
|
|
||||||
|
-- All plural forms and Sg Acc use the "tav" stem
|
||||||
|
<Pl,_>|<Sg,Acc>|<Sg,Sup> => nTav.s ! n ! c ;
|
||||||
|
|
||||||
|
-- The rest of the forms are formed with the regular constructor,
|
||||||
|
-- using "tó" as the stem.
|
||||||
|
_ => nTó.s ! n ! c
|
||||||
|
|
||||||
|
} ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
--Handles words like "gyomor, majom, retek" which are "gyomrot, majmot, retket" in accusative (wovel dropping base)
|
||||||
|
--More examples: "ajak, bokor, cukor, csokor, eper, fészek, fodor, gödör, haszon, iker, izom, kölyök, köröm, méreg, piszok, sarok, selyem, szeder, szobor, takony, terem, titok, torok, torony, tükör, vödör" ->
|
||||||
|
-- "ajkat, bokrot, cukrot, csokrot, epret, fészket, fodrot, gödröt, hasznot, ikret, izmot, kölyköt, körmet, mérget, piszkot, sarkot, selymet, szedret, szobrot, taknyot, termet, titkot, torkot, tornyot, tükröt, vödröt"
|
||||||
|
--<Sg,Sup> case handled
|
||||||
|
dMajom : Str -> Noun = \majom ->
|
||||||
|
-- Str*Str is syntactic sugar for {p1 : Str ; p2 : Str} ;
|
||||||
|
-- confusing syntax: you can't write let <tako,ny> : Str*Str = …
|
||||||
|
-- it has to be called something else, and then you
|
||||||
|
-- can get "tako" and "ny" with p1, p2.
|
||||||
|
let tako_ny : Str*Str = case majom of {
|
||||||
|
x + dzs@#trigraph => <x,dzs> ;
|
||||||
|
x + zs@#digraph => <x,zs> ;
|
||||||
|
-- ? pattern matches exactly 1 character
|
||||||
|
x + s@? => <x,s> } ;
|
||||||
|
tako = tako_ny.p1 ;
|
||||||
|
ny = tako_ny.p2 ;
|
||||||
|
|
||||||
|
nyo = ny + last tako ;
|
||||||
|
tak = init tako ;
|
||||||
|
taknyo = tak + nyo ;
|
||||||
|
nMajmo = mkNounHarm (getHarm taknyo) "k" taknyo ;
|
||||||
|
nMajom = mkNoun majom ;
|
||||||
|
in {s = \\n,c => case <n,c> of {
|
||||||
|
-- All plural forms and Sg Acc and Sg Sup use the "majmo" stem
|
||||||
|
<Pl,_> | <Sg,Acc> | <Sg, Sup> => nMajmo.s ! n ! c ;
|
||||||
|
|
||||||
|
-- The rest of the forms are formed with the regular constructor,
|
||||||
|
-- using "majom" as the stem.
|
||||||
|
_ => nMajom.s ! n ! c
|
||||||
|
} ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
--Handles words like "sátor, álom, alkalom, farok, halom, vászon"
|
||||||
|
-- "sátrat, álmat, alkalmat, farkat, halmat, vásznat"
|
||||||
|
-- (bátor not noun)
|
||||||
|
dFarok : Str -> Noun = \farok ->
|
||||||
|
let k = last farok ;
|
||||||
|
far = init (init farok) ;
|
||||||
|
fark = far + k ;
|
||||||
|
nFark = mkNounHarm (getHarm fark) "ak" fark ;
|
||||||
|
nFarok = mkNoun farok ;
|
||||||
|
in {s = \\n,c => case <n,c> of {
|
||||||
|
-- All plural forms and Sg Acc and Sg Sup use the "fark" stem
|
||||||
|
<Pl,_> | <Sg,Acc> | <Sg, Sup> => nFark.s ! n ! c ;
|
||||||
|
|
||||||
|
-- The rest of the forms are formed with the regular constructor,
|
||||||
|
-- using "farok" as the stem.
|
||||||
|
_ => nFarok.s ! n ! c
|
||||||
|
} ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- More words not covered by current paradigms:
|
||||||
|
-- https://cl.lingfil.uu.se/~bea/publ/megyesi-hungarian.pdf
|
||||||
|
-- TODO: falu ~ falva-k (v-case)
|
||||||
|
-- TODO: teher ~ terhet (consonant-crossing)
|
||||||
|
-- TODO: do we need possessive forms? e.g. fiú ~ fia{m,d,tok}
|
||||||
|
|
||||||
|
-- regNoun is a /smart paradigm/: it takes one or a couple of forms,
|
||||||
|
-- and decides which (non-smart) paradigm is the most likely to match.
|
||||||
|
regNoun : Str -> Noun = \sgnom -> case sgnom of {
|
||||||
|
_ + "a"|"e" => dAlma sgnom ;
|
||||||
|
_ + ("á"|"é") + ? => dMadár sgnom ;
|
||||||
|
_ + ("ó"|"ő") => dLó sgnom ;
|
||||||
|
_ + "alom" => dFarok sgnom ;
|
||||||
|
_ + "elem" => dMajom sgnom ;
|
||||||
|
|
||||||
|
-- TODO: more non-smart paradigms + more pattern matching
|
||||||
|
-- TODO: smart paradigms with >1 form. Which forms are the most descriptive?
|
||||||
|
|
||||||
|
_ => mkNoun sgnom -- Fall back to the regular paradigm
|
||||||
|
} ;
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Following code by EG in 2009 (?), comments and some additions by IL 2020
|
||||||
|
|
||||||
|
param
|
||||||
|
-- Harmony types
|
||||||
|
Harm = H_a | H_e | H_o ;
|
||||||
|
|
||||||
|
oper
|
||||||
|
|
||||||
|
-- Vowels as a pattern.
|
||||||
|
v : pattern Str = #("a" | "e" | "i" | "o" | "u" | "ö" | "ü" |
|
||||||
|
"á" | "é" | "í" | "ó" | "ú" | "ő" | "ű") ;
|
||||||
|
-- Digraphs
|
||||||
|
digraph : pattern Str = #("cs"|"dz"|"gy"|"ly"|"ny"|"sz"|"ty"|"zs") ;
|
||||||
|
|
||||||
|
-- Trigraphs
|
||||||
|
trigraph : pattern Str = #("dzs") ;
|
||||||
|
|
||||||
|
duplicateLast : Str -> Str = \str -> case str of {
|
||||||
|
x + "dzs" => x + "ddzs" ;
|
||||||
|
x + "ny" => x + "nny" ; -- takony : takonnyal
|
||||||
|
x + "cs" => x + "ccs" ;
|
||||||
|
x + "dz" => x + "ddz" ;
|
||||||
|
x + "gy" => x + "ggy" ;
|
||||||
|
x + "ly" => x + "lly" ;
|
||||||
|
x + "sz" => x + "ssz" ;
|
||||||
|
x + "ty" => x + "tty" ;
|
||||||
|
x + "zs" => x + "zzs" ;
|
||||||
|
|
||||||
|
-- Base cacse: just duplicate the single letter
|
||||||
|
x + s@? => x + s + s } ;
|
||||||
|
|
||||||
|
-- Function to test if a string ends in a vowel
|
||||||
|
vowFinal : Str -> Bool = \str ->
|
||||||
|
case str of {
|
||||||
|
_ + #v => True ; -- Matching a string against a pattern.
|
||||||
|
_ => False
|
||||||
|
} ;
|
||||||
|
|
||||||
|
lengthen : Str -> Str = \str -> case str of {
|
||||||
|
x + "a" => x + "á" ;
|
||||||
|
x + "e" => x + "é" ;
|
||||||
|
x + "i" => x + "í" ;
|
||||||
|
x + "o" => x + "ó" ;
|
||||||
|
x + "u" => x + "ú" ;
|
||||||
|
x + "ö" => x + "ő" ;
|
||||||
|
x + "ü" => x + "ű" ;
|
||||||
|
_ => Predef.error "Lengthening not applicable to" ++ str
|
||||||
|
} ;
|
||||||
|
|
||||||
|
shorten : Str -> Str = \str -> case str of {
|
||||||
|
x + "á" => x + "a" ;
|
||||||
|
x + "é" => x + "e" ;
|
||||||
|
x + "í" => x + "i" ;
|
||||||
|
x + "ó" => x + "o" ;
|
||||||
|
x + "ú" => x + "u" ;
|
||||||
|
x + "ő" => x + "ö" ;
|
||||||
|
x + "ű" => x + "ü" ;
|
||||||
|
_ => Predef.error "Shortening not applicable to" ++ str
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- Function to get a harmony from a string
|
||||||
|
getHarm : Str -> Harm = \s -> case s of {
|
||||||
|
_ + ("a" | "á" | "o" | "ó" | "u" | "ú") + _ => H_a ;
|
||||||
|
_ + ("ö" | "ő" | "ü") + _ => H_o ;
|
||||||
|
_ => H_e
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- Used as a table of allomorphs for a give case.
|
||||||
|
HarmForms : Type = Harm => Str ;
|
||||||
|
|
||||||
|
-- Functions for constructing a HarmForms table.
|
||||||
|
harm3 : Str -> Str -> Str -> HarmForms = \a,e,o -> table {
|
||||||
|
H_a => a ;
|
||||||
|
H_e => e ;
|
||||||
|
H_o => o
|
||||||
|
} ;
|
||||||
|
harm : Str -> Str -> HarmForms = \a,e -> harm3 a e e ;
|
||||||
|
harm1 : Str -> HarmForms = \i -> harm i i ;
|
||||||
|
|
||||||
|
-- Variant of case forms when the noun stem ends in consonant.
|
||||||
|
endCaseCons : Case -> HarmForms = \c -> case c of {
|
||||||
|
Nom => harm1 [] ;
|
||||||
|
Acc => harm3 "ot" "et" "öt" ;
|
||||||
|
Dat => harm "nak" "nek" ;
|
||||||
|
Ill => harm "ba" "be" ;
|
||||||
|
Ine => harm "ban" "ben" ;
|
||||||
|
Ela => harm "ból" "ből" ;
|
||||||
|
All => harm3 "hoz" "hez" "höz" ;
|
||||||
|
Ade => harm "nál" "nél" ;
|
||||||
|
Abl => harm "tól" "től" ;
|
||||||
|
Sub => harm "ra" "re" ;
|
||||||
|
Sup => harm3 "on" "en" "ön" ;
|
||||||
|
Del => harm "ról" "ről" ;
|
||||||
|
Cau => harm1 "ért" ;
|
||||||
|
Ins => harm "al" "el" ;
|
||||||
|
Tra => harm "á" "é"
|
||||||
|
-- Ess => harm "stul" "stül" ; -- Essive-modal 'with <the noun> and its parts'
|
||||||
|
-- Ter => harm1 "ig" ; -- Terminative 'as far as <the noun>'
|
||||||
|
-- For => harm1 "ként" ; -- Formal 'as <the noun>'
|
||||||
|
-- Tem => harm1 "kor" -- Temporal 'at <numeral>'. Only used with numerals.
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- Variant where accusative has the allomorph -at
|
||||||
|
endCaseConsAccAt : Case -> HarmForms = \c -> case c of {
|
||||||
|
Acc => harm3 "at" "et" "öt" ;
|
||||||
|
_ => endCaseCons c
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- Variant of case forms when the noun stem ends in vowel.
|
||||||
|
endCaseVow : Case -> HarmForms = \c -> case c of {
|
||||||
|
Acc => harm1 "t" ;
|
||||||
|
Sup => harm1 "n" ;
|
||||||
|
Ins => harm "val" "vel" ;
|
||||||
|
Tra => harm "vá" "vé" ;
|
||||||
|
|
||||||
|
-- Other forms are shared with endCaseCons.
|
||||||
|
_ => endCaseCons c
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- Function to return a plural allomorph given the stem (e.g. név, almá).
|
||||||
|
-- TODO: seems to be many "ak" cases, add?
|
||||||
|
-- Examples: ág, ágy, ár, díj, fal, fog, gyár, hal, has, hát, ház, hold, láz, lyuk, nyak, olaj, oldal, toll, ujj, vonal
|
||||||
|
pluralAllomorph : (stem : Str) -> Str = \stem ->
|
||||||
|
case vowFinal stem of {
|
||||||
|
True => "k" ;
|
||||||
|
False => harm3 "ok" "ek" "ök" ! getHarm stem
|
||||||
|
} ;
|
||||||
|
|
||||||
|
|
||||||
|
-- Harmony and plural allomorph read from the singular nominative
|
||||||
|
mkNoun : Str -> Noun = \w ->
|
||||||
|
mkNounHarm (getHarm w) (pluralAllomorph w) w ;
|
||||||
|
|
||||||
|
-- Harmony and plural allomorph given explicitly (check if the True makes it bad)
|
||||||
|
mkNounHarm : Harm -> (plural : Str) -> Str -> Noun = mkNounHarmAcc True ;
|
||||||
|
|
||||||
|
mkNounHarmAcc : (useAt : Bool) -> Harm -> (plural : Str) -> Str -> Noun = \useAt,h,plural,w ->
|
||||||
|
let endCaseSg : Case -> HarmForms = case <vowFinal w, useAt> of {
|
||||||
|
<True,_> => endCaseVow ;
|
||||||
|
<False,True> => endCaseConsAccAt ;
|
||||||
|
_ => endCaseCons} ;
|
||||||
|
endCasePl : Case -> HarmForms = case <plural, useAt> of {
|
||||||
|
<"ak",_> => endCaseConsAccAt ;
|
||||||
|
<_,True> => endCaseConsAccAt ;
|
||||||
|
_ => endCaseCons } ;
|
||||||
|
-- Last consonant doubles before instrumental and translative
|
||||||
|
duplConsStem : Str = case vowFinal w of {
|
||||||
|
True => w ;
|
||||||
|
False => duplicateLast w } ;
|
||||||
|
|
||||||
|
-- Noun is {s : Number => Case => Str}, we construct nested tables.
|
||||||
|
in {s = table {
|
||||||
|
Sg => table {
|
||||||
|
-- Double the last letter (if consonant) before Ins, Tra
|
||||||
|
c@(Ins|Tra) => duplConsStem + endCaseSg c ! h ;
|
||||||
|
c@_ => w + endCaseSg c ! h } ;
|
||||||
|
|
||||||
|
Pl => table {
|
||||||
|
-- Double the plural k before Ins, Tra
|
||||||
|
c@(Ins|Tra) => w + plural + "k" + endCasePl c ! h ;
|
||||||
|
|
||||||
|
-- endCaseCons, because we only use -k as plural morpheme.
|
||||||
|
-- If we add possessive forms with allomorph -i, then revise.
|
||||||
|
c@_ => w + plural + endCasePl c ! h }
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,99 +1,129 @@
|
|||||||
concrete NumeralHun of Numeral = CatHun [Numeral,Digits] ** open ResHun in
|
concrete NumeralHun of Numeral = CatHun [Numeral,Digits] **
|
||||||
{
|
open Prelude, ResHun in {
|
||||||
--{
|
|
||||||
--
|
lincat
|
||||||
--lincat
|
Digit,
|
||||||
-- Digit = {s : DForm => CardOrd => Case => Str} ;
|
Sub10 = LinDigit ;
|
||||||
-- Sub10 = {s : DForm => CardOrd => Case => Str ; n : Number} ;
|
Sub100,
|
||||||
-- Sub100 = {s : CardOrd => Case => Str ; n : Number} ;
|
Sub1000,
|
||||||
-- Sub1000 = {s : CardOrd => Case => Str ; n : Number} ;
|
Sub1000000 = ResHun.Numeral ;
|
||||||
-- Sub1000000 = {s : CardOrd => Case => Str ; n : Number} ;
|
lin
|
||||||
--
|
-- TODO: Add case inflection and ordinal forms to all numerals
|
||||||
--lin num x = x ;
|
|
||||||
--lin n2 = let two = mkNum "two" "twelve" "twenty" "second" in
|
-- : Sub1000000 -> Numeral
|
||||||
-- {s = \\f,o => case <f,o> of {
|
num x = x ;
|
||||||
-- <teen,NOrd> => regGenitiveS "twelfth" ;
|
|
||||||
-- _ => two.s ! f ! o
|
-- : Digit
|
||||||
-- }
|
n2 = mkNum5 "kettő" "húsz" "két" "huszon" "második" ;
|
||||||
-- } ;
|
n3 = mkNum3 "három" "harminc" "harmadik" ;
|
||||||
--
|
n4 = mkNum3 "négy" "negyven" "negyedik" ;
|
||||||
--lin n3 = mkNum "three" "thirteen" "thirty" "third" ;
|
n5 = mkNum3 "öt" "ötven" "ötödik" ;
|
||||||
--lin n4 = mkNum "four" "fourteen" "forty" "fourth" ;
|
n6 = mkNum3 "hat" "hatvan" "hatodik" ;
|
||||||
--lin n5 = mkNum "five" "fifteen" "fifty" "fifth" ;
|
n7 = mkNum3 "hét" "hetven" "hetedik" ;
|
||||||
--lin n6 = regNum "six" ;
|
n8 = mkNum3 "nyolc" "nyolcvan" "nyolcadik" ;
|
||||||
--lin n7 = regNum "seven" ;
|
n9 = mkNum3 "kilenc" "kilencven" "kilencedik" ;
|
||||||
--lin n8 = mkNum "eight" "eighteen" "eighty" "eighth" ;
|
|
||||||
--lin n9 = mkNum "nine" "nineteen" "ninety" "ninth" ;
|
-- : Sub10 ; -- 1
|
||||||
--
|
pot01 = mkNum3 "egy" "tíz" "első" ** {n=Sg} ;
|
||||||
--lin pot01 = mkNum "one" "eleven" "ten" "first" ** {n = Sg} ;
|
-- : Digit -> Sub10 ; -- d * 1
|
||||||
--lin pot0 d = d ** {n = Pl} ;
|
pot0 d = d ;
|
||||||
--lin pot110 = regCardOrd "ten" ** {n = Pl} ;
|
|
||||||
--lin pot111 = regCardOrd "eleven" ** {n = Pl} ;
|
-- : Sub100 ; -- 10
|
||||||
--lin pot1to19 d = {s = d.s ! teen} ** {n = Pl} ;
|
pot110 = {s = table {p => "tíz"} ; n = numNumber ; numtype = IsNum} ;
|
||||||
--lin pot0as1 n = {s = n.s ! unit} ** {n = n.n} ;
|
-- : Sub100 ; -- 11
|
||||||
--lin pot1 d = {s = d.s ! ten} ** {n = Pl} ;
|
pot111 = {s = table {p => "tizenegy"} ; n = numNumber ; numtype = IsNum} ;
|
||||||
--lin pot1plus d e = {
|
-- : Digit -> Sub100 ; -- 10 + d
|
||||||
-- s = \\o,c => d.s ! ten ! NCard ! Nom ++ "-" ++ e.s ! unit ! o ! c ; n = Pl} ;
|
pot1to19 d =
|
||||||
--lin pot1as2 n = n ;
|
{s = table {p => "tizen" ++ d.s ! <Unit,p>} ;
|
||||||
--lin pot2 d = {s = \\o,c => d.s ! unit ! NCard ! Nom ++ mkCard o "hundred" ! c} ** {n = Pl} ;
|
n = numNumber ; numtype = IsNum} ;
|
||||||
--lin pot2plus d e = {
|
-- : Sub10 -> Sub100 ; -- coercion of 1..9
|
||||||
-- s = \\o,c => d.s ! unit ! NCard ! Nom ++ "hundred" ++ "and" ++ e.s ! o ! c ; n = Pl} ;
|
pot0as1 n =
|
||||||
--lin pot2as3 n = n ;
|
{s = table {p => n.s ! <Unit,p>} ;
|
||||||
--lin pot3 n = {
|
n = numNumber ; numtype = IsNum} ;
|
||||||
-- s = \\o,c => n.s ! NCard ! Nom ++ mkCard o "thousand" ! c ; n = Pl} ;
|
|
||||||
--lin pot3plus n m = {
|
-- : Digit -> Sub100 ; -- d * 10
|
||||||
-- s = \\o,c => n.s ! NCard ! Nom ++ "thousand" ++ m.s ! o ! c; n = Pl} ;
|
pot1 d =
|
||||||
--
|
{s = table {p => d.s ! <Ten,p>} ;
|
||||||
---- numerals as sequences of digits
|
n = numNumber ; numtype = IsNum} ;
|
||||||
--
|
-- : Digit -> Sub10 -> Sub100 ; -- d * 10 + n
|
||||||
-- lincat
|
pot1plus d e =
|
||||||
-- Dig = TDigit ;
|
{s = table {p => (d.s ! <Ten,Attrib>) ++ e.s ! <Unit,p>} ;
|
||||||
--
|
n = numNumber ; numtype = IsNum} ;
|
||||||
-- lin
|
|
||||||
-- IDig d = d ** {tail = T1} ;
|
-- : Sub100 -> Sub1000 ; -- coercion of 1..99
|
||||||
--
|
pot1as2 n = n ;
|
||||||
-- IIDig d i = {
|
-- : Sub10 -> Sub1000 ; -- m * 100
|
||||||
-- s = \\o,c => d.s ! NCard ! Nom ++ commaIf i.tail ++ i.s ! o ! c ;
|
pot2 d =
|
||||||
-- n = Pl ;
|
{s = table {p => (d.s ! <Unit,Attrib>) ++ "száz"} ;
|
||||||
-- tail = inc i.tail
|
n = numNumber ; numtype = IsNum} ;
|
||||||
-- } ;
|
-- : Sub10 -> Sub100 -> Sub1000 ; -- m * 100 + n
|
||||||
--
|
pot2plus d e =
|
||||||
-- D_0 = mkDig "0" ;
|
{s = table {p => (d.s ! <Unit,Attrib>) ++ "száz" ++ e.s ! p} ;
|
||||||
-- D_1 = mk3Dig "1" "1st" Sg ;
|
n = numNumber ; numtype = IsNum} ;
|
||||||
-- D_2 = mk2Dig "2" "2nd" ;
|
|
||||||
-- D_3 = mk2Dig "3" "3rd" ;
|
-- : Sub1000 -> Sub1000000 ; -- coercion of 1..999
|
||||||
-- D_4 = mkDig "4" ;
|
pot2as3 n = n ;
|
||||||
-- D_5 = mkDig "5" ;
|
-- : Sub1000 -> Sub1000000 ; -- m * 1000
|
||||||
-- D_6 = mkDig "6" ;
|
pot3 n =
|
||||||
-- D_7 = mkDig "7" ;
|
{s = table {p => n.s ! Attrib ++ "ezer"} ;
|
||||||
-- D_8 = mkDig "8" ;
|
n = numNumber ; numtype = IsNum} ;
|
||||||
-- D_9 = mkDig "9" ;
|
-- : Sub1000 -> Sub1000 -> Sub1000000 ; -- m * 1000 + n
|
||||||
--
|
pot3plus n m =
|
||||||
-- oper
|
{s = table {p => n.s ! Attrib ++ "ezer" ++ m.s ! p} ;
|
||||||
-- commaIf : DTail -> Str = \t -> case t of {
|
n = numNumber ; numtype = IsNum} ;
|
||||||
-- T3 => BIND++","++BIND ;
|
|
||||||
-- _ => BIND
|
oper
|
||||||
-- } ;
|
LinDigit : Type = {s : DForm*Place => Str ; n : Number} ;
|
||||||
--
|
|
||||||
-- inc : DTail -> DTail = \t -> case t of {
|
mkNum3 : (x1,_,x3 : Str) -> LinDigit = \három,harminc,harmadik ->
|
||||||
-- T1 => T2 ;
|
mkNum5 három harminc három harminc harmadik ;
|
||||||
-- T2 => T3 ;
|
|
||||||
-- T3 => T1
|
mkNum5 : (x1,_,_,_,x5 : Str) -> LinDigit = \ui,ti,ua,ta,ord -> {
|
||||||
-- } ;
|
s = table {<Unit,Indep> => ui ;
|
||||||
--
|
<Ten,Indep> => ti ;
|
||||||
-- mk2Dig : Str -> Str -> TDigit = \c,o -> mk3Dig c o Pl ;
|
<Unit,Attrib> => ua ;
|
||||||
-- mkDig : Str -> TDigit = \c -> mk2Dig c (c + "th") ;
|
<Ten, Attrib> => ta } ;
|
||||||
--
|
-- ord = ord ; -- TODO figure out where to use ordinal
|
||||||
-- mk3Dig : Str -> Str -> Number -> TDigit = \c,o,n -> {
|
n = numNumber ;
|
||||||
-- s = table {NCard => regGenitiveS c ; NOrd => regGenitiveS o} ;
|
numType = IsNum ;
|
||||||
-- n = n
|
} ;
|
||||||
-- } ;
|
|
||||||
--
|
numNumber = Sg ;
|
||||||
-- TDigit = {
|
|
||||||
-- n : Number ;
|
-- numerals as sequences of digits
|
||||||
-- s : CardOrd => Case => Str
|
lincat
|
||||||
-- } ;
|
Dig = TDigit ;
|
||||||
--
|
|
||||||
--}
|
lin
|
||||||
|
-- : Dig -> Digits ; -- 8
|
||||||
|
IDig d = d ** {s = \\_ => d.s} ;
|
||||||
|
|
||||||
|
-- : Dig -> Digits -> Digits ; -- 876
|
||||||
|
IIDig d i = {
|
||||||
|
s = \\x => d.s ++ BIND ++ i.s ! x ;
|
||||||
|
n = numNumber
|
||||||
|
} ;
|
||||||
|
|
||||||
|
D_0 = mkDig "0" ;
|
||||||
|
D_1 = mkDig "1" ;
|
||||||
|
D_2 = mkDig "2" ;
|
||||||
|
D_3 = mkDig "3" ;
|
||||||
|
D_4 = mkDig "4" ;
|
||||||
|
D_5 = mkDig "5" ;
|
||||||
|
D_6 = mkDig "6" ;
|
||||||
|
D_7 = mkDig "7" ;
|
||||||
|
D_8 = mkDig "8" ;
|
||||||
|
D_9 = mkDig "9" ;
|
||||||
|
|
||||||
|
oper
|
||||||
|
mkDig : Str -> TDigit = \s -> {
|
||||||
|
s = s ;
|
||||||
|
n = numNumber
|
||||||
|
} ;
|
||||||
|
|
||||||
|
TDigit = {
|
||||||
|
s : Str ; -- TODO add ordinals
|
||||||
|
n : Number
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,733 +1,186 @@
|
|||||||
--# -path=.:../abstract:../../prelude:../common
|
resource ParadigmsHun = open CatHun, ResHun, ParamHun, NounHun, Prelude in {
|
||||||
|
|
||||||
--1 Hunlish Lexical Paradigms
|
|
||||||
--
|
|
||||||
-- Aarne Ranta 2003--2005
|
|
||||||
--
|
|
||||||
-- This is an API for the user of the resource grammar
|
|
||||||
-- for adding lexical items. It gives functions for forming
|
|
||||||
-- expressions of open categories: nouns, adjectives, verbs.
|
|
||||||
--
|
|
||||||
-- Closed categories (determiners, pronouns, conjunctions) are
|
|
||||||
-- accessed through the resource syntax API, $Structural.gf$.
|
|
||||||
--
|
|
||||||
-- The main difference with $MorphoHun.gf$ is that the types
|
|
||||||
-- referred to are compiled resource grammar types. We have moreover
|
|
||||||
-- had the design principle of always having existing forms, rather
|
|
||||||
-- than stems, as string arguments of the paradigms.
|
|
||||||
--
|
|
||||||
-- The structure of functions for each word class $C$ is the following:
|
|
||||||
-- first we give a handful of patterns that aim to cover all
|
|
||||||
-- regular cases. Then we give a worst-case function $mkC$, which serves as an
|
|
||||||
-- escape to construct the most irregular words of type $C$.
|
|
||||||
-- However, this function should only seldom be needed: we have a
|
|
||||||
-- separate module [``IrregHun`` ../../english/IrregHun.gf],
|
|
||||||
-- which covers irregular verbss.
|
|
||||||
|
|
||||||
resource ParadigmsHun = open
|
|
||||||
(Predef=Predef),
|
|
||||||
Prelude,
|
|
||||||
ResHun,
|
|
||||||
CatHun
|
|
||||||
in
|
|
||||||
{
|
|
||||||
flags optimize = noexpand ;
|
|
||||||
|
|
||||||
--{
|
|
||||||
----2 Parameters
|
|
||||||
----
|
|
||||||
---- To abstract over gender names, we define the following identifiers.
|
|
||||||
--
|
|
||||||
--oper
|
|
||||||
-- Gender : Type ;
|
|
||||||
--
|
|
||||||
-- human : Gender ;
|
|
||||||
-- nonhuman : Gender ;
|
|
||||||
-- masculine : Gender ; --%
|
|
||||||
-- feminine : Gender ; --%
|
|
||||||
--
|
|
||||||
---- To abstract over number names, we define the following.
|
|
||||||
--
|
|
||||||
-- Number : Type ;
|
|
||||||
--
|
|
||||||
-- singular : Number ;
|
|
||||||
-- plural : Number ;
|
|
||||||
--
|
|
||||||
---- To abstract over case names, we define the following.
|
|
||||||
--
|
|
||||||
-- Case : Type ; --%
|
|
||||||
--
|
|
||||||
-- nominative : Case ; --%
|
|
||||||
-- genitive : Case ; --%
|
|
||||||
--
|
|
||||||
---- Prepositions are used in many-argument functions for rection.
|
|
||||||
---- The resource category $Prep$ is used.
|
|
||||||
--
|
|
||||||
---- The number of a noun phrase can be extracted with the following
|
|
||||||
---- function.
|
|
||||||
--
|
|
||||||
-- npNumber : NP -> Number ; -- exctract the number of a noun phrase
|
|
||||||
--
|
|
||||||
--
|
|
||||||
----2 Nouns
|
|
||||||
--
|
|
||||||
---- Nouns are constructed by the function $mkN$, which takes a varying
|
|
||||||
---- number of arguments.
|
|
||||||
--
|
|
||||||
|
|
||||||
oper
|
oper
|
||||||
mkN = overload {
|
|
||||||
|
|
||||||
mkN : Str -> Noun =
|
--2 Parameters
|
||||||
\s -> lin N (regNoun s) ;
|
--
|
||||||
|
-- To abstract over number, valency and (some) case names,
|
||||||
|
-- we define the following identifiers. The application programmer
|
||||||
|
-- should always use these constants instead of the constructors
|
||||||
|
-- defined in $ResKor$.
|
||||||
|
|
||||||
|
Harmony : Type ;
|
||||||
|
harmA : Harmony ;
|
||||||
|
harmE : Harmony ;
|
||||||
|
harmO : Harmony ;
|
||||||
|
|
||||||
|
--2 Nouns
|
||||||
|
|
||||||
|
mkN : overload {
|
||||||
|
mkN : (sgnom : Str) -> N ; -- Predictable nouns
|
||||||
|
mkN : (madár : Str) -> (ak : Str) -> N ; -- Noun with unpredictable plural allomorph
|
||||||
|
mkN : (férfi : Str) -> (harm : Harmony) -> (ak : Str) -> N ; -- Noun with unpredictable vowel harmony and plural allomorph
|
||||||
|
} ;
|
||||||
|
|
||||||
|
mkPN : overload {
|
||||||
|
mkPN : Str -> PN ; -- Singular PN out of a string
|
||||||
|
mkPN : Str -> Number -> PN -- PN with a given number
|
||||||
|
-- mkPN : N -> Number -> PN ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
--
|
--2 Adjectives
|
||||||
---- The regular function captures the variants for nouns ending with
|
|
||||||
---- "s","sh","x","z" or "y": "kiss - kisses", "flash - flashes";
|
mkA : overload {
|
||||||
---- "fly - flies" (but "toy - toys"),
|
mkA : (adj : Str) -> A ; -- Regular adjective, given in ??? form
|
||||||
--
|
-- mkA : (kiga : Str) -> (jakda : A) -> A ; -- Compound adjective, e.g. 키가 작다 'short', literally 'height (is) small'. 키가 'height' given as string, 작다 'small' given as preconstructed A.
|
||||||
-- mkN : (flash : Str) -> N ; -- plural s, incl. flash-flashes, fly-flies
|
} ;
|
||||||
--
|
|
||||||
---- In practice the worst case is to give singular and plural nominative.
|
mkA2 : overload {
|
||||||
--
|
mkA2 : Str -> Prep -> A2 ;
|
||||||
-- mkN : (man,men : Str) -> N ; -- irregular plural
|
mkA2 : Str -> Case -> A2
|
||||||
--
|
} ;
|
||||||
---- The theoretical worst case: give all four forms.
|
|
||||||
--
|
--2 Verbs
|
||||||
-- mkN : (man,men,man's,men's : Str) -> N ; -- irregular genitives
|
|
||||||
--
|
-- Verbs
|
||||||
---- Change gender from the default $nonhuman$.
|
mkV : overload {
|
||||||
--
|
mkV : (sg3 : Str) -> V ; -- Predictable verb. Takes singular P3 form in present tense.
|
||||||
-- mkN : Gender -> N -> N ; -- default nonhuman
|
-- mkV : (nore : Str) -> (hada : V) -> V ; -- Add a prefix to an existing verb, e.g. 노래+하다
|
||||||
--
|
} ;
|
||||||
----3 Compound nouns
|
|
||||||
----
|
copula : V ; -- The copula verb ''
|
||||||
---- A compound noun is an uninflected string attached to an inflected noun,
|
|
||||||
---- such as "baby boom", "chief executive officer".
|
mkV2 : overload {
|
||||||
--
|
mkV2 : (sg3 : Str) -> V2 ; -- Predictable verb. Takes singular P3 form in present tense, object case is accusative.
|
||||||
-- mkN : Str -> N -> N -- e.g. baby + boom
|
mkV2 : V -> V2 ; -- Takes preconstructed V, object case is accusative.
|
||||||
-- } ;
|
} ;
|
||||||
--
|
|
||||||
--
|
-- mkV3 : overload {
|
||||||
----3 Relational nouns
|
-- } ;
|
||||||
--
|
|
||||||
-- mkN2 : overload {
|
-- mkVV : overload {
|
||||||
-- mkN2 : Str -> N2 ; -- reg. noun, prep. "of" --%
|
-- } ;
|
||||||
-- mkN2 : N -> N2 ; -- e.g. wife of (default prep. to)
|
|
||||||
-- mkN2 : N -> Str -> N2 ; -- access to --%
|
--
|
||||||
-- mkN2 : N -> Prep -> N2 ; -- e.g. access to
|
-- mkVA : Str -> VA
|
||||||
-- mkN2 : Str -> Str -> N2 ; -- access to (regular noun) --%
|
-- = \s -> lin VA (regV s) ;
|
||||||
-- } ;
|
-- mkVQ : Str -> VQ
|
||||||
--
|
-- = \s -> lin VQ (regV s) ;
|
||||||
---- Use the function $mkPrep$ or see the section on prepositions below to
|
-- mkVS : Str -> VS
|
||||||
---- form other prepositions.
|
-- = \s -> lin VS (regV s) ;
|
||||||
----
|
--
|
||||||
---- Three-place relational nouns ("the connection from x to y") need two prepositions.
|
-- mkV2A : Str -> V2A
|
||||||
--
|
-- = \s -> lin V2A (regV s ** {c2 = noPrep}) ;
|
||||||
-- mkN3 : N -> Prep -> Prep -> N3 ; -- e.g. connection from x to y
|
-- mkV2V : Str -> V2V
|
||||||
--
|
-- = \s -> lin V2V (regV s ** {c2 = noPrep}) ;
|
||||||
--
|
-- mkV2Q : Str -> V2Q
|
||||||
--
|
-- = \s -> lin V2Q (regV s ** {c2 = noPrep}) ;
|
||||||
----3 Proper names and noun phrases
|
|
||||||
----
|
-----
|
||||||
---- Proper names, with a regular genitive, are formed from strings.
|
|
||||||
--
|
--2 Structural categories
|
||||||
-- mkPN : overload {
|
|
||||||
--
|
mkPrep : overload {
|
||||||
-- mkPN : Str -> PN ;
|
mkPrep : Str -> Prep ; -- Postposition, takes nominative
|
||||||
--
|
mkPrep : Str -> Case -> Prep ; -- Postposition and case
|
||||||
---- Sometimes a common noun can be reused as a proper name, e.g. "Bank"
|
} ;
|
||||||
--
|
|
||||||
-- mkPN : N -> PN --%
|
casePrep : Case -> Prep ; -- No postposition, only case
|
||||||
-- } ;
|
|
||||||
--
|
-- mkConj : (_,_ : Str) -> Number -> Conj = \s1,s2,num ->
|
||||||
----3 Determiners and quantifiers
|
-- lin Conj { s = s1 ; s2 = s2 } ;
|
||||||
--
|
|
||||||
-- mkQuant : overload {
|
-- mkSubj : Str -> Bool -> Subj = \s,b ->
|
||||||
-- mkQuant : (this, these : Str) -> Quant ; --%
|
-- lin Subj { } ;
|
||||||
-- mkQuant : (no_sg, no_pl, none_sg, non_pl : Str) -> Quant ; --%
|
|
||||||
-- } ;
|
mkAdv : Str -> Adv
|
||||||
--
|
= \s -> lin Adv {s = s} ;
|
||||||
-- mkOrd : Str -> Ord ; --%
|
|
||||||
--
|
mkAdV : Str -> AdV
|
||||||
----2 Adjectives
|
= \s -> lin AdV {s = s} ;
|
||||||
--
|
|
||||||
-- mkA : overload {
|
mkAdA : Str -> AdA
|
||||||
--
|
= \s -> lin AdA {s = s} ;
|
||||||
---- For regular adjectives, the adverbial and comparison forms are derived. This holds
|
|
||||||
---- even for cases with the variations "happy - happily - happier - happiest",
|
|
||||||
---- "free - freely - freer - freest", and "rude - rudest".
|
--.
|
||||||
--
|
-------------------------------------------------------------------------------
|
||||||
-- mkA : (happy : Str) -> A ; -- regular adj, incl. happy-happier, rude-ruder
|
-- The definitions should not bother the user of the API. So they are
|
||||||
--
|
-- hidden from the document.
|
||||||
---- However, the duplication of the final consonant cannot be predicted,
|
|
||||||
---- but a separate case is used to give the comparative
|
Harmony : Type = ResHun.Harm ;
|
||||||
--
|
harmA = ResHun.H_a ;
|
||||||
-- mkA : (fat,fatter : Str) -> A ; -- irreg. comparative
|
harmE = ResHun.H_e ;
|
||||||
--
|
harmO = ResHun.H_o ;
|
||||||
---- As many as four forms may be needed.
|
|
||||||
--
|
mkN = overload {
|
||||||
-- mkA : (good,better,best,well : Str) -> A -- completely irreg.
|
mkN : Str -> N =
|
||||||
-- } ;
|
\s -> lin N (regNoun s) ;
|
||||||
--
|
|
||||||
---- Regular comparison is formed by "more - most" for words with two vowels separated
|
mkN : Str -> Str -> N =
|
||||||
---- and terminated by some other letters. To force this or the opposite,
|
\s,ak -> lin N (mkNounHarm (getHarm s) ak s) ;
|
||||||
---- the following can be used:
|
|
||||||
--
|
mkN : Str -> Harmony -> N =
|
||||||
-- compoundA : A -> A ; -- force comparison with more/most
|
\s,h -> lin N (mkNounHarm h (pluralAllomorph s) s) ;
|
||||||
-- simpleA : A -> A ; -- force comparison with -er,-est
|
|
||||||
-- irregAdv : A -> Str -> A ; -- adverb irreg, e.g. "fast"
|
mkN : Str -> (plural : Str) -> Harmony -> N =
|
||||||
--
|
\s,pl,h -> lin N (mkNounHarm h pl s) ;
|
||||||
----3 Two-place adjectives
|
} ;
|
||||||
--
|
|
||||||
-- mkA2 : overload {
|
|
||||||
-- mkA2 : A -> Prep -> A2 ; -- absent from
|
mkN2 = overload {
|
||||||
-- mkA2 : A -> Str -> A2 ; -- absent from --%
|
mkN2 : Str -> N2 = \s -> lin N2 (regNoun s) ;
|
||||||
-- mkA2 : Str -> Prep -> A2 ; -- absent from --%
|
mkN2 : N -> N2 = \n -> lin N2 n ;
|
||||||
-- mkA2 : Str -> Str -> A2 -- absent from --%
|
} ;
|
||||||
--
|
|
||||||
-- } ;
|
mkPN = overload {
|
||||||
--
|
mkPN : Str -> PN = \s -> lin PN (defNP s Sg) ;
|
||||||
--
|
mkPN : Str -> Number -> PN = \s,n -> lin PN (defNP s n) ;
|
||||||
----2 Adverbs
|
-- mkPN : N -> Number -> PN ;
|
||||||
--
|
} ;
|
||||||
---- Adverbs are not inflected. Most lexical ones have position
|
|
||||||
---- after the verb. Some can be preverbal (e.g. "always").
|
mkA = overload {
|
||||||
--
|
mkA : (adj : Str) -> A = \s -> lin A (mkAdj s) ;
|
||||||
-- mkAdv : Str -> Adv ; -- e.g. today
|
-- mkA : (kiga : Str) -> (jakda : A) -> A = \kiga,jakda ->
|
||||||
-- mkAdV : Str -> AdV ; -- e.g. always
|
-- jakda ** {s = \\af => kiga ++ jakda.s ! af} ;
|
||||||
--
|
} ;
|
||||||
---- Adverbs modifying adjectives and sentences can also be formed.
|
|
||||||
--
|
mkA2 = overload {
|
||||||
-- mkAdA : Str -> AdA ; -- e.g. quite
|
mkA2 : Str -> Prep -> A2 = \s,p ->
|
||||||
--
|
lin A2 {s = (mkAdj s).s ; c2 = p} ;
|
||||||
---- Adverbs modifying numerals
|
mkA2 : Str -> Case -> A2 = \s,c ->
|
||||||
--
|
lin A2 {s = (mkAdj s).s ; c2 = {s = [] ; c = c}}
|
||||||
-- mkAdN : Str -> AdN ; -- e.g. approximately
|
} ;
|
||||||
--
|
|
||||||
----2 Prepositions
|
mkV = overload {
|
||||||
----
|
mkV : (sg3 : Str) -> V = \v -> lin V (mkVerb v) ;
|
||||||
---- A preposition as used for rection in the lexicon, as well as to
|
-- mkV : (nore : Str) -> (hada : V) -> V = \nore,hada -> hada ** {
|
||||||
---- build $PP$s in the resource API, just requires a string.
|
-- s = \\vf => nore + hada.s ! vf} ;
|
||||||
--
|
} ;
|
||||||
-- mkPrep : Str -> Prep ; -- e.g. "in front of"
|
|
||||||
-- noPrep : Prep ; -- no preposition
|
copula = ResHun.copula ;
|
||||||
--
|
|
||||||
---- (These two functions are synonyms.)
|
mkV2 = overload {
|
||||||
--
|
mkV2 : (plain : Str) -> V2 = \v2 -> lin V2 (mkVerb2 v2) ;
|
||||||
----2 Conjunctions
|
mkV2 : V -> V2 = vtov2 ;
|
||||||
----
|
} ;
|
||||||
--
|
|
||||||
-- mkConj : overload {
|
mkV3 = overload {
|
||||||
-- mkConj : Str -> Conj ; -- and (plural agreement) --%
|
mkV3 : (plain : Str) -> V3 = \v3 -> lin V3 (mkVerb3 v3) ;
|
||||||
-- mkConj : Str -> Number -> Conj ; -- or (agrement number given as argument) --%
|
} ;
|
||||||
-- mkConj : Str -> Str -> Conj ; -- both ... and (plural) --%
|
--
|
||||||
-- mkConj : Str -> Str -> Number -> Conj ; -- either ... or (agrement number given as argument) --%
|
-- mkVV = overload {
|
||||||
-- } ;
|
-- } ;
|
||||||
--
|
|
||||||
----2 Verbs
|
mkPrep = overload {
|
||||||
----
|
mkPrep : (e : Str) -> Prep
|
||||||
--
|
= \str -> lin Prep (ResHun.mkPrep str) ;
|
||||||
---- Verbs are constructed by the function $mkV$, which takes a varying
|
mkPrep : Str -> Case -> Prep
|
||||||
---- number of arguments.
|
= \str,c -> lin Prep (ResHun.mkPrep str ** {c = c}) ;
|
||||||
--
|
} ;
|
||||||
-- mkV : overload {
|
|
||||||
--
|
casePrep : Case -> Prep
|
||||||
---- The regular verb function recognizes the special cases where the last
|
= \c -> lin Prep (ResHun.mkPrep [] ** {c = c}) ;
|
||||||
---- character is "y" ("cry-cries" but "buy-buys") or a sibilant
|
--------------------------------------------------------------------------------
|
||||||
---- ("kiss-"kisses", "jazz-jazzes", "rush-rushes", "munch - munches",
|
|
||||||
---- "fix - fixes").
|
|
||||||
--
|
|
||||||
-- mkV : (cry : Str) -> V ; -- regular, incl. cry-cries, kiss-kisses etc
|
|
||||||
--
|
|
||||||
---- Give the present and past forms for regular verbs where
|
|
||||||
---- the last letter is duplicated in some forms,
|
|
||||||
---- e.g. "rip - ripped - ripping".
|
|
||||||
--
|
|
||||||
-- mkV : (stop, stopped : Str) -> V ; -- reg. with consonant duplication
|
|
||||||
--
|
|
||||||
---- There is an extensive list of irregular verbs in the module $IrregularHun$.
|
|
||||||
---- In practice, it is enough to give three forms,
|
|
||||||
---- e.g. "drink - drank - drunk".
|
|
||||||
--
|
|
||||||
-- mkV : (drink, drank, drunk : Str) -> V ; -- ordinary irregular
|
|
||||||
--
|
|
||||||
---- Irregular verbs with duplicated consonant in the present participle.
|
|
||||||
--
|
|
||||||
-- mkV : (run, ran, run, running : Str) -> V ; -- irregular with duplication --%
|
|
||||||
--
|
|
||||||
---- Except for "be", the worst case needs five forms: the infinitive and
|
|
||||||
---- the third person singular present, the past indicative, and the
|
|
||||||
---- past and present participles.
|
|
||||||
--
|
|
||||||
-- mkV : (go, goes, went, gone, going : Str) -> V ; -- totally irregular
|
|
||||||
--
|
|
||||||
---- Adds a prefix to an exisiting verb. This is most useful to create
|
|
||||||
---- prefix-variants of irregular verbs from $IrregHun$, e.g. "undertake".
|
|
||||||
--
|
|
||||||
-- mkV : Str -> V -> V ; -- fix compound, e.g. under+take
|
|
||||||
-- };
|
|
||||||
--
|
|
||||||
---- Verbs with a particle.
|
|
||||||
---- The particle, such as in "switch on", is given as a string.
|
|
||||||
--
|
|
||||||
-- partV : V -> Str -> V ; -- with particle, e.g. switch + on
|
|
||||||
--
|
|
||||||
---- Reflexive verbs.
|
|
||||||
---- By default, verbs are not reflexive; this function makes them that.
|
|
||||||
--
|
|
||||||
-- reflV : V -> V ; -- reflexive e.g. behave oneself
|
|
||||||
--
|
|
||||||
----3 Two-place verbs
|
|
||||||
----
|
|
||||||
---- Two-place verbs need a preposition, except the special case with direct object.
|
|
||||||
---- (transitive verbs). Notice that a particle comes from the $V$.
|
|
||||||
--
|
|
||||||
-- mkV2 : overload {
|
|
||||||
-- mkV2 : Str -> V2 ; -- kill --%
|
|
||||||
-- mkV2 : V -> V2 ; -- transitive, e.g. hit
|
|
||||||
-- mkV2 : V -> Prep -> V2 ; -- with preposiiton, e.g. believe in
|
|
||||||
-- mkV2 : V -> Str -> V2 ; -- believe in --%
|
|
||||||
-- mkV2 : Str -> Prep -> V2 ; -- believe in --%
|
|
||||||
-- mkV2 : Str -> Str -> V2 -- believe in --%
|
|
||||||
-- };
|
|
||||||
--
|
|
||||||
----3 Three-place verbs
|
|
||||||
----
|
|
||||||
---- Three-place (ditransitive) verbs need two prepositions, of which
|
|
||||||
---- the first one or both can be absent.
|
|
||||||
--
|
|
||||||
-- mkV3 : overload {
|
|
||||||
-- mkV3 : V -> V3 ; -- ditransitive, e.g. give,_,_
|
|
||||||
-- mkV3 : V -> Prep -> Prep -> V3 ; -- two prepositions, e.g. speak, with, about
|
|
||||||
-- mkV3 : V -> Prep -> V3 ; -- give,_,to --%
|
|
||||||
-- mkV3 : V -> Str -> V3 ; -- give,_,to --%
|
|
||||||
-- mkV3 : Str -> Str -> V3 ; -- give,_,to --%
|
|
||||||
-- mkV3 : Str -> V3 ; -- give,_,_ --%
|
|
||||||
-- };
|
|
||||||
--
|
|
||||||
----3 Other complement patterns
|
|
||||||
----
|
|
||||||
---- Verbs and adjectives can take complements such as sentences,
|
|
||||||
---- questions, verb phrases, and adjectives.
|
|
||||||
--
|
|
||||||
-- mkV0 : V -> V0 ; --%
|
|
||||||
-- mkVS : V -> VS ; -- sentence-compl e.g. say (that S)
|
|
||||||
-- mkV2S : V -> Prep -> V2S ; -- e.g. tell (NP) (that S)
|
|
||||||
-- mkVV : V -> VV ; -- e.g. want (to VP)
|
|
||||||
-- ingVV : V -> VV ; -- e.g. start (VPing)
|
|
||||||
-- mkV2V : V -> Prep -> Prep -> V2V ; -- e.g. want (noPrep NP) (to VP)
|
|
||||||
-- ingV2V : V -> Prep -> Prep -> V2V ; -- e.g. prevent (noPrep NP) (from VP-ing)
|
|
||||||
-- mkVA : V -> VA ; -- e.g. become (AP)
|
|
||||||
-- mkV2A : V -> Prep -> V2A ; -- e.g. paint (NP) (AP)
|
|
||||||
-- mkVQ : V -> VQ ; -- e.g. wonder (QS)
|
|
||||||
-- mkV2Q : V -> Prep -> V2Q ; -- e.g. ask (NP) (QS)
|
|
||||||
--
|
|
||||||
-- mkAS : A -> AS ; --%
|
|
||||||
-- mkA2S : A -> Prep -> A2S ; --%
|
|
||||||
-- mkAV : A -> AV ; --%
|
|
||||||
-- mkA2V : A -> Prep -> A2V ; --%
|
|
||||||
--
|
|
||||||
---- Notice: Categories $V0, AS, A2S, AV, A2V$ are just $A$.
|
|
||||||
---- $V0$ is just $V$; the second argument is treated as adverb.
|
|
||||||
--
|
|
||||||
-- V0 : Type ; --%
|
|
||||||
-- AS, A2S, AV, A2V : Type ; --%
|
|
||||||
--
|
|
||||||
----2 Other categories
|
|
||||||
--
|
|
||||||
--mkSubj : Str -> Subj = \s -> lin Subj {s = s} ; --%
|
|
||||||
--
|
|
||||||
----.
|
|
||||||
----2 Definitions of paradigms
|
|
||||||
----
|
|
||||||
---- The definitions should not bother the user of the API. So they are
|
|
||||||
---- hidden from the document.
|
|
||||||
--
|
|
||||||
-- Gender = ResHun.Gender ;
|
|
||||||
-- Number = ResHun.Number ;
|
|
||||||
-- Case = ResHun.NPCase ;
|
|
||||||
-- human = Masc ;
|
|
||||||
-- nonhuman = Neutr ;
|
|
||||||
-- masculine = Masc ;
|
|
||||||
-- feminine = Fem ;
|
|
||||||
-- singular = Sg ;
|
|
||||||
-- plural = Pl ;
|
|
||||||
-- nominative = npNom ;
|
|
||||||
-- genitive = npGen ;
|
|
||||||
--
|
|
||||||
-- npNumber np = (fromAgr np.a).n ;
|
|
||||||
--
|
|
||||||
-- Preposition : Type = Str ; -- obsolete
|
|
||||||
--
|
|
||||||
-- regN = \ray ->
|
|
||||||
-- let rays = add_s ray
|
|
||||||
-- in
|
|
||||||
-- mk2N ray rays ;
|
|
||||||
--
|
|
||||||
--
|
|
||||||
-- add_s : Str -> Str = \w -> case w of {
|
|
||||||
-- _ + ("io" | "oo") => w + "s" ; -- radio, bamboo
|
|
||||||
-- _ + ("s" | "z" | "x" | "sh" | "ch" | "o") => w + "es" ; -- bus, hero
|
|
||||||
-- _ + ("a" | "o" | "u" | "e") + "y" => w + "s" ; -- boy
|
|
||||||
-- x + "y" => x + "ies" ; -- fly
|
|
||||||
-- _ => w + "s" -- car
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- duplFinal : Str -> Str = \w -> case w of {
|
|
||||||
-- _ + ("a" | "e" | "o") + ("a" | "e" | "i" | "o" | "u") + ? => w ; -- waited, needed
|
|
||||||
-- _ + ("a" | "e" | "i" | "o" | "u") +
|
|
||||||
-- c@("b"|"d"|"g"|"m"|"n"|"p"|"r"|"t") => w + c ; -- omitted, manned
|
|
||||||
-- _ => w
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mk2N = \man,men ->
|
|
||||||
-- let mens = case last men of {
|
|
||||||
-- "s" => men + "'" ;
|
|
||||||
-- _ => men + "'s"
|
|
||||||
-- }
|
|
||||||
-- in
|
|
||||||
-- mk4N man men (man + "'s") mens ;
|
|
||||||
--
|
|
||||||
-- mk4N = \man,men,man's,men's ->
|
|
||||||
-- lin N (mkNoun man man's men men's ** {g = Neutr}) ;
|
|
||||||
--
|
|
||||||
-- genderN g man = lin N {s = man.s ; g = g} ;
|
|
||||||
--
|
|
||||||
-- compoundN s n = lin N {s = \\x,y => s ++ n.s ! x ! y ; g=n.g} ;
|
|
||||||
--
|
|
||||||
-- mkPN = overload {
|
|
||||||
-- mkPN : Str -> PN = regPN ;
|
|
||||||
-- mkPN : N -> PN = nounPN
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mkN2 = overload {
|
|
||||||
-- mkN2 : N -> Prep -> N2 = prepN2 ;
|
|
||||||
-- mkN2 : N -> Str -> N2 = \n,s -> prepN2 n (mkPrep s);
|
|
||||||
-- mkN2 : Str -> Str -> N2 = \n,s -> prepN2 (regN n) (mkPrep s);
|
|
||||||
-- mkN2 : N -> N2 = \n -> prepN2 n (mkPrep "of") ;
|
|
||||||
-- mkN2 : Str -> N2 = \s -> prepN2 (regN s) (mkPrep "of")
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- prepN2 = \n,p -> lin N2 (n ** {c2 = p.s}) ;
|
|
||||||
-- regN2 n = prepN2 (regN n) (mkPrep "of") ;
|
|
||||||
--
|
|
||||||
-- mkN3 = \n,p,q -> lin N3 (n ** {c2 = p.s ; c3 = q.s}) ;
|
|
||||||
--
|
|
||||||
----3 Relational common noun phrases
|
|
||||||
----
|
|
||||||
---- In some cases, you may want to make a complex $CN$ into a
|
|
||||||
---- relational noun (e.g. "the old town hall of").
|
|
||||||
--
|
|
||||||
-- cnN2 : CN -> Prep -> N2 ;
|
|
||||||
-- cnN3 : CN -> Prep -> Prep -> N3 ;
|
|
||||||
--
|
|
||||||
---- This is obsolete.
|
|
||||||
-- cnN2 = \n,p -> lin N2 (n ** {c2 = p.s}) ;
|
|
||||||
-- cnN3 = \n,p,q -> lin N3 (n ** {c2 = p.s ; c3 = q.s}) ;
|
|
||||||
--
|
|
||||||
-- regPN n = regGenPN n human ;
|
|
||||||
-- regGenPN n g = lin PN {s = table {Gen => n + "'s" ; _ => n} ; g = g} ;
|
|
||||||
-- nounPN n = lin PN {s = n.s ! singular ; g = n.g} ;
|
|
||||||
--
|
|
||||||
-- mkQuant = overload {
|
|
||||||
-- mkQuant : (this, these : Str) -> Quant = \sg,pl -> mkQuantifier sg pl sg pl;
|
|
||||||
-- mkQuant : (no_sg, no_pl, none_sg, non_pl : Str) -> Quant = mkQuantifier;
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mkQuantifier : Str -> Str -> Str -> Str -> Quant =
|
|
||||||
-- \sg,pl,sg',pl' -> lin Quant {
|
|
||||||
-- s = \\_ => table { Sg => sg ; Pl => pl } ;
|
|
||||||
-- sp = \\_ => table {
|
|
||||||
-- Sg => \\c => regGenitiveS sg' ! npcase2case c ; Pl => \\c => regGenitiveS pl' ! npcase2case c}
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mkOrd : Str -> Ord = \x -> lin Ord { s = regGenitiveS x};
|
|
||||||
--
|
|
||||||
-- mk2A a b = mkAdjective a a a b ;
|
|
||||||
-- regA a = case a of {
|
|
||||||
-- _ + ("a" | "e" | "i" | "o" | "u" | "y") + ? + _ +
|
|
||||||
-- ("a" | "e" | "i" | "o" | "u" | "y") + ? + _ =>
|
|
||||||
-- lin A (compoundADeg (regADeg a)) ;
|
|
||||||
-- _ => lin A (regADeg a)
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- prepA2 a p = lin A2 (a ** {c2 = p.s}) ;
|
|
||||||
--
|
|
||||||
-- ADeg = A ; ----
|
|
||||||
--
|
|
||||||
-- mkADeg a b c d = mkAdjective a b c d ;
|
|
||||||
--
|
|
||||||
-- regADeg happy =
|
|
||||||
-- let
|
|
||||||
-- happ = init happy ;
|
|
||||||
-- y = last happy ;
|
|
||||||
-- happie = case y of {
|
|
||||||
-- "y" => happ + "ie" ;
|
|
||||||
-- "e" => happy ;
|
|
||||||
-- _ => duplFinal happy + "e"
|
|
||||||
-- } ;
|
|
||||||
-- in mkADeg happy (happie + "r") (happie + "st") (adj2adv happy) ;
|
|
||||||
--
|
|
||||||
-- adj2adv : Str -> Str = \happy ->
|
|
||||||
-- case happy of {
|
|
||||||
-- _ + "ble" => init happy + "y" ;
|
|
||||||
-- _ + "y" => init happy + "ily" ;
|
|
||||||
-- _ + "ll" => happy + "y" ;
|
|
||||||
-- _ => happy + "ly"
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- duplADeg fat =
|
|
||||||
-- mkADeg fat
|
|
||||||
-- (fat + last fat + "er") (fat + last fat + "est") (adj2adv fat) ;
|
|
||||||
--
|
|
||||||
-- compoundADeg a =
|
|
||||||
-- let ad = (a.s ! AAdj Posit Nom)
|
|
||||||
-- in mkADeg ad ("more" ++ ad) ("most" ++ ad) (a.s ! AAdv) ;
|
|
||||||
--
|
|
||||||
-- adegA a = a ;
|
|
||||||
--
|
|
||||||
-- mkAdv x = lin Adv (ss x) ;
|
|
||||||
-- mkAdV x = lin AdV (ss x) ;
|
|
||||||
-- mkAdA x = lin AdA (ss x) ;
|
|
||||||
-- mkAdN x = lin AdN (ss x) ;
|
|
||||||
--
|
|
||||||
-- mkPrep p = lin Prep (ss p) ;
|
|
||||||
-- noPrep = mkPrep [] ;
|
|
||||||
--
|
|
||||||
-- mk5V a b c d e = lin V (mkVerb a b c d e ** {s1 = []}) ;
|
|
||||||
--
|
|
||||||
-- regV cry =
|
|
||||||
-- let
|
|
||||||
-- cries = (regN cry).s ! Pl ! Nom ; -- !
|
|
||||||
-- cried : Str = case cries of {
|
|
||||||
-- _ + "es" => init cries + "d" ;
|
|
||||||
-- _ => duplFinal cry + "ed"
|
|
||||||
-- } ;
|
|
||||||
-- crying : Str = case cry of {
|
|
||||||
-- _ + "ee" => cry + "ing" ;
|
|
||||||
-- d + "ie" => d + "ying" ;
|
|
||||||
-- us + "e" => us + "ing" ;
|
|
||||||
-- _ => duplFinal cry + "ing"
|
|
||||||
-- }
|
|
||||||
-- in mk5V cry cries cried cried crying ;
|
|
||||||
--
|
|
||||||
-- reg2V fit fitted =
|
|
||||||
-- let fitt = Predef.tk 2 fitted ;
|
|
||||||
-- in
|
|
||||||
-- if_then_else V (pbool2bool (Predef.eqStr (last fit) (last fitt)))
|
|
||||||
-- (mk5V fit (fit + "s") (fitt + "ed") (fitt + "ed") (fitt + "ing"))
|
|
||||||
-- (regV fit) ;
|
|
||||||
--
|
|
||||||
-- regDuplV fit =
|
|
||||||
-- case last fit of {
|
|
||||||
-- ("a" | "e" | "i" | "o" | "u" | "y") =>
|
|
||||||
-- Predef.error (["final duplication makes no sense for"] ++ fit) ;
|
|
||||||
-- t =>
|
|
||||||
-- let fitt = fit + t in
|
|
||||||
-- mk5V fit (fit + "s") (fitt + "ed") (fitt + "ed") (fitt + "ing")
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- irregV x y z = let reg = (regV x).s in
|
|
||||||
-- mk5V x (reg ! VPres) y z (reg ! VPresPart) ** {s1 = []} ;
|
|
||||||
--
|
|
||||||
-- irreg4V x y z w = let reg = (regV x).s in
|
|
||||||
-- mk5V x (reg ! VPres) y z w ** {s1 = []} ;
|
|
||||||
--
|
|
||||||
-- irregDuplV fit y z =
|
|
||||||
-- let
|
|
||||||
-- fitting = (regDuplV fit).s ! VPresPart
|
|
||||||
-- in
|
|
||||||
-- mk5V fit (fit + "s") y z fitting ;
|
|
||||||
--
|
|
||||||
-- partV v p = lin V {s = \\f => v.s ! f ++ p ; isRefl = v.isRefl} ;
|
|
||||||
-- reflV v = lin V {s = v.s ; part = v.part ; isRefl = True} ;
|
|
||||||
--
|
|
||||||
-- prepV2 v p = lin V2 {s = v.s ; s1 = v.s1 ; c2 = p.s ; isRefl = v.isRefl} ;
|
|
||||||
-- dirV2 v = prepV2 v noPrep ;
|
|
||||||
--
|
|
||||||
-- prepPrepV3 v p q =
|
|
||||||
-- lin V3 {s = v.s ; s1 = v.s1 ; c2 = p.s ; c3 = q.s ; isRefl = v.isRefl} ;
|
|
||||||
-- dirV3 v p = prepPrepV3 v noPrep p ;
|
|
||||||
-- dirdirV3 v = dirV3 v noPrep ;
|
|
||||||
--
|
|
||||||
-- mkVS v = lin VS v ;
|
|
||||||
-- mkVV v = lin VV {
|
|
||||||
-- s = table {VVF vf => v.s ! vf ; _ => v.s ! VInf} ;
|
|
||||||
-- typ = VVInf
|
|
||||||
-- } ;
|
|
||||||
-- ingVV v = lin VV {
|
|
||||||
-- s = table {VVF vf => v.s ! vf ; _ => v.s ! VInf} ;
|
|
||||||
-- typ = VVPresPart
|
|
||||||
-- } ;
|
|
||||||
-- mkVQ v = lin VQ v ;
|
|
||||||
--
|
|
||||||
-- V0 : Type = V ;
|
|
||||||
---- V2S, V2V, V2Q : Type = V2 ;
|
|
||||||
-- AS, A2S, AV : Type = A ;
|
|
||||||
-- A2V : Type = A2 ;
|
|
||||||
--
|
|
||||||
-- mkV0 v = v ;
|
|
||||||
-- mkV2S v p = lin V2S (prepV2 v p) ;
|
|
||||||
-- mkV2V v p t = lin V2V (prepV2 v p ** {c3 = t.s ; typ = VVAux}) ;
|
|
||||||
-- ingV2V v p t = lin V2V (prepV2 v p ** {c3 = t.s ; typ = VVPresPart}) ;
|
|
||||||
-- mkVA v = lin VA v ;
|
|
||||||
-- mkV2A v p = lin V2A (prepV2 v p) ;
|
|
||||||
-- mkV2Q v p = lin V2Q (prepV2 v p) ;
|
|
||||||
--
|
|
||||||
-- mkAS v = v ;
|
|
||||||
-- mkA2S v p = lin A (prepA2 v p) ;
|
|
||||||
-- mkAV v = v ;
|
|
||||||
-- mkA2V v p = prepA2 v p ;
|
|
||||||
--
|
|
||||||
--
|
|
||||||
---- pre-overload API and overload definitions
|
|
||||||
--
|
|
||||||
-- mk4N : (man,men,man's,men's : Str) -> N ;
|
|
||||||
-- regN : Str -> N ;
|
|
||||||
-- mk2N : (man,men : Str) -> N ;
|
|
||||||
-- genderN : Gender -> N -> N ;
|
|
||||||
-- compoundN : Str -> N -> N ;
|
|
||||||
--
|
|
||||||
-- mkN = overload {
|
|
||||||
-- mkN : (man,men,man's,men's : Str) -> N = mk4N ;
|
|
||||||
-- mkN : Str -> N = regN ;
|
|
||||||
-- mkN : (man,men : Str) -> N = mk2N ;
|
|
||||||
-- mkN : Gender -> N -> N = genderN ;
|
|
||||||
-- mkN : Str -> N -> N = compoundN
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
---- Relational nouns ("daughter of x") need a preposition.
|
|
||||||
--
|
|
||||||
-- prepN2 : N -> Prep -> N2 ;
|
|
||||||
--
|
|
||||||
---- The most common preposition is "of", and the following is a
|
|
||||||
---- shortcut for regular relational nouns with "of".
|
|
||||||
--
|
|
||||||
-- regN2 : Str -> N2 ;
|
|
||||||
--
|
|
||||||
-- mk2A : (free,freely : Str) -> A ;
|
|
||||||
-- regA : Str -> A ;
|
|
||||||
--
|
|
||||||
-- mkA = overload {
|
|
||||||
-- mkA : Str -> A = regA ;
|
|
||||||
-- mkA : (fat,fatter : Str) -> A = \fat,fatter ->
|
|
||||||
-- mkAdjective fat fatter (init fatter + "st") (adj2adv fat) ;
|
|
||||||
-- mkA : (good,better,best,well : Str) -> A = \a,b,c,d ->
|
|
||||||
-- mkAdjective a b c d
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- compoundA = compoundADeg ;
|
|
||||||
-- simpleA a =
|
|
||||||
-- let ad = (a.s ! AAdj Posit Nom)
|
|
||||||
-- in regADeg ad ;
|
|
||||||
--
|
|
||||||
-- irregAdv a adv = lin A {s = table {AAdv => adv; aform => a.s ! aform}} ;
|
|
||||||
--
|
|
||||||
-- prepA2 : A -> Prep -> A2 ;
|
|
||||||
--
|
|
||||||
-- mkA2 = overload {
|
|
||||||
-- mkA2 : A -> Prep -> A2 = prepA2 ;
|
|
||||||
-- mkA2 : A -> Str -> A2 = \a,p -> prepA2 a (mkPrep p) ;
|
|
||||||
-- mkA2 : Str -> Prep -> A2 = \a,p -> prepA2 (regA a) p;
|
|
||||||
-- mkA2 : Str -> Str -> A2 = \a,p -> prepA2 (regA a) (mkPrep p);
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mk5V : (go, goes, went, gone, going : Str) -> V ;
|
|
||||||
-- regV : (cry : Str) -> V ;
|
|
||||||
-- reg2V : (stop, stopped : Str) -> V;
|
|
||||||
-- irregV : (drink, drank, drunk : Str) -> V ;
|
|
||||||
-- irreg4V : (run, ran, run, running : Str) -> V ;
|
|
||||||
--
|
|
||||||
-- -- Use reg2V instead
|
|
||||||
-- regDuplV : Str -> V ;
|
|
||||||
-- -- Use irreg4V instead
|
|
||||||
-- irregDuplV : (get, got, gotten : Str) -> V ;
|
|
||||||
--
|
|
||||||
-- mkV = overload {
|
|
||||||
-- mkV : (cry : Str) -> V = regV ;
|
|
||||||
-- mkV : (stop, stopped : Str) -> V = reg2V ;
|
|
||||||
-- mkV : (drink, drank, drunk : Str) -> V = irregV ;
|
|
||||||
-- mkV : (run, ran, run, running : Str) -> V = irreg4V ;
|
|
||||||
-- mkV : (go, goes, went, gone, going : Str) -> V = mk5V ;
|
|
||||||
-- mkV : Str -> V -> V = prefixV
|
|
||||||
-- };
|
|
||||||
--
|
|
||||||
-- prepV2 : V -> Prep -> V2 ;
|
|
||||||
-- dirV2 : V -> V2 ;
|
|
||||||
-- prefixV : Str -> V -> V = \p,v -> lin V { s = \\vform => p + v.s ! vform; isRefl = v.isRefl } ;
|
|
||||||
--
|
|
||||||
-- mkV2 = overload {
|
|
||||||
-- mkV2 : V -> V2 = dirV2 ;
|
|
||||||
-- mkV2 : Str -> V2 = \s -> dirV2 (regV s) ;
|
|
||||||
-- mkV2 : V -> Prep -> V2 = prepV2 ;
|
|
||||||
-- mkV2 : V -> Str -> V2 = \v,p -> prepV2 v (mkPrep p) ;
|
|
||||||
-- mkV2 : Str -> Prep -> V2 = \v,p -> prepV2 (regV v) p ;
|
|
||||||
-- mkV2 : Str -> Str -> V2 = \v,p -> prepV2 (regV v) (mkPrep p)
|
|
||||||
-- };
|
|
||||||
--
|
|
||||||
-- prepPrepV3 : V -> Prep -> Prep -> V3 ;
|
|
||||||
-- dirV3 : V -> Prep -> V3 ;
|
|
||||||
-- dirdirV3 : V -> V3 ;
|
|
||||||
--
|
|
||||||
-- mkV3 = overload {
|
|
||||||
-- mkV3 : V -> Prep -> Prep -> V3 = prepPrepV3 ;
|
|
||||||
-- mkV3 : V -> Prep -> V3 = dirV3 ;
|
|
||||||
-- mkV3 : V -> Str -> V3 = \v,s -> dirV3 v (mkPrep s);
|
|
||||||
-- mkV3 : Str -> Str -> V3 = \v,s -> dirV3 (regV v) (mkPrep s);
|
|
||||||
-- mkV3 : V -> V3 = dirdirV3 ;
|
|
||||||
-- mkV3 : Str -> V3 = \v -> dirdirV3 (regV v) ;
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mkConj = overload {
|
|
||||||
-- mkConj : Str -> Conj = \y -> mk2Conj [] y plural ;
|
|
||||||
-- mkConj : Str -> Number -> Conj = \y,n -> mk2Conj [] y n ;
|
|
||||||
-- mkConj : Str -> Str -> Conj = \x,y -> mk2Conj x y plural ;
|
|
||||||
-- mkConj : Str -> Str -> Number -> Conj = mk2Conj ;
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mk2Conj : Str -> Str -> Number -> Conj = \x,y,n ->
|
|
||||||
-- lin Conj (sd2 x y ** {n = n}) ;
|
|
||||||
--
|
|
||||||
------ obsolete
|
|
||||||
--
|
|
||||||
---- Comparison adjectives may two more forms.
|
|
||||||
--
|
|
||||||
-- ADeg : Type ;
|
|
||||||
--
|
|
||||||
-- mkADeg : (good,better,best,well : Str) -> ADeg ;
|
|
||||||
--
|
|
||||||
---- The regular pattern recognizes two common variations:
|
|
||||||
---- "-e" ("rude" - "ruder" - "rudest") and
|
|
||||||
---- "-y" ("happy - happier - happiest - happily")
|
|
||||||
--
|
|
||||||
-- regADeg : Str -> ADeg ; -- long, longer, longest
|
|
||||||
--
|
|
||||||
---- However, the duplication of the final consonant is nor predicted,
|
|
||||||
---- but a separate pattern is used:
|
|
||||||
--
|
|
||||||
-- duplADeg : Str -> ADeg ; -- fat, fatter, fattest
|
|
||||||
--
|
|
||||||
---- If comparison is formed by "more", "most", as in general for
|
|
||||||
---- long adjective, the following pattern is used:
|
|
||||||
--
|
|
||||||
-- compoundADeg : A -> ADeg ; -- -/more/most ridiculous
|
|
||||||
--
|
|
||||||
---- From a given $ADeg$, it is possible to get back to $A$.
|
|
||||||
--
|
|
||||||
-- adegA : ADeg -> A ;
|
|
||||||
--
|
|
||||||
--
|
|
||||||
-- regPN : Str -> PN ;
|
|
||||||
-- regGenPN : Str -> Gender -> PN ; -- John, John's
|
|
||||||
--
|
|
||||||
---- Sometimes you can reuse a common noun as a proper name, e.g. "Bank".
|
|
||||||
--
|
|
||||||
-- nounPN : N -> PN ;
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--} ;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
111
src/hungarian/ParamHun.gf
Normal file
111
src/hungarian/ParamHun.gf
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
resource ParamHun = ParamX ** open Prelude in {
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Phonology
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Morphophonology
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Nouns
|
||||||
|
|
||||||
|
param
|
||||||
|
|
||||||
|
Case = Nom | Acc | Dat
|
||||||
|
-- | PossStem -- TODO: Stem where possessive suffixes attach?
|
||||||
|
| Ill | Ine | Ela | All | Ade | Abl | Sub | Sup | Del -- Locatives
|
||||||
|
| Cau -- Causal-final 'for the purpose of, for the reason that'
|
||||||
|
| Ins -- Instrumental
|
||||||
|
| Tra -- Translative
|
||||||
|
-- | Ess | Ter | For
|
||||||
|
-- | Tem -- Temporal, e.g. hatkor ‘six o’clock’ (from hat ‘6’)
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
SubjCase = SCNom | SCDat ; -- Limited set of subject cases
|
||||||
|
|
||||||
|
oper
|
||||||
|
|
||||||
|
caseTable : (x1,_,_,_,_,_,_,_,_,_,_,_,_,_,x15 : Str) -> Case=>Str =
|
||||||
|
\n,a,d,il,ine,el,al,ad,ab,sub,sup,del,ca,ins,tra -> table {
|
||||||
|
Nom => n ;
|
||||||
|
Acc => a ;
|
||||||
|
Dat => d ;
|
||||||
|
Ill => il ;
|
||||||
|
Ine => ine ;
|
||||||
|
Ela => el ;
|
||||||
|
All => al ;
|
||||||
|
Ade => ad ;
|
||||||
|
Abl => ab ;
|
||||||
|
Sub => sub ;
|
||||||
|
Sup => sup ;
|
||||||
|
Del => del ;
|
||||||
|
Cau => ca ;
|
||||||
|
Ins => ins ;
|
||||||
|
Tra => tra } ;
|
||||||
|
|
||||||
|
sc2case : SubjCase -> Case = \sc ->
|
||||||
|
case sc of {
|
||||||
|
SCNom => Nom ;
|
||||||
|
SCDat => Dat
|
||||||
|
} ;
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Numerals
|
||||||
|
|
||||||
|
param
|
||||||
|
DForm = Unit | Ten ;
|
||||||
|
Place = Indep | Attrib ;
|
||||||
|
|
||||||
|
CardOrd = NOrd | NCard ; -- Not used yet
|
||||||
|
|
||||||
|
NumType = NoNum | IsDig | IsNum ;
|
||||||
|
|
||||||
|
oper
|
||||||
|
isNum : {numtype : NumType} -> Bool = \nt -> case nt.numtype of {
|
||||||
|
NoNum => False ;
|
||||||
|
_ => True
|
||||||
|
} ;
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Adjectives
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Conjunctions
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Verbs
|
||||||
|
param
|
||||||
|
|
||||||
|
-- For object agreement in V2
|
||||||
|
ObjDef =
|
||||||
|
Def
|
||||||
|
| Indef ;
|
||||||
|
|
||||||
|
VForm =
|
||||||
|
VInf
|
||||||
|
| VFin Person Number ;
|
||||||
|
|
||||||
|
oper
|
||||||
|
|
||||||
|
agr2vf : Person*Number -> VForm = \pn ->
|
||||||
|
case <pn.p1,pn.p2> of {
|
||||||
|
<p,n> => VFin p n
|
||||||
|
} ;
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Clauses
|
||||||
|
|
||||||
|
-- param
|
||||||
|
|
||||||
|
-- ClType =
|
||||||
|
-- Statement
|
||||||
|
-- | PolarQuestion
|
||||||
|
-- | WhQuestion
|
||||||
|
-- | Subord ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
abstract ParseHunAbs =
|
|
||||||
Tense,
|
|
||||||
Cat,
|
|
||||||
Noun,
|
|
||||||
Adjective,
|
|
||||||
Numeral,
|
|
||||||
Symbol,
|
|
||||||
Conjunction,
|
|
||||||
Verb - [SlashV2V, PassV2],
|
|
||||||
Adverb,
|
|
||||||
Phrase,
|
|
||||||
Sentence,
|
|
||||||
Relative,
|
|
||||||
Idiom [VP, ProgrVP],
|
|
||||||
Extra [NP, Quant, VPSlash, VP, GenNP, PassVPSlash],
|
|
||||||
DictHunAbs **
|
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
|
||||||
--fun CompoundCN : Num -> N -> CN -> CN ;
|
|
||||||
-- DashCN : N -> N -> N ;
|
|
||||||
-- GerundN : V -> N ;
|
|
||||||
-- GerundAP : V -> AP ;
|
|
||||||
-- PastPartAP : V2 -> AP ;
|
|
||||||
-- myself_NP : NP ;
|
|
||||||
-- yourselfSg_NP : NP ;
|
|
||||||
-- himself_NP : NP ;
|
|
||||||
-- herself_NP : NP ;
|
|
||||||
-- itself_NP : NP ;
|
|
||||||
-- ourself_NP : NP ;
|
|
||||||
-- yourselfPl_NP : NP ;
|
|
||||||
-- themself_NP : NP ;
|
|
||||||
-- OrdCompar : A -> Ord ;
|
|
||||||
--
|
|
||||||
-- PositAdVAdj : A -> AdV ;
|
|
||||||
--
|
|
||||||
-- UseQuantPN : Quant -> PN -> NP;
|
|
||||||
--
|
|
||||||
-- SlashV2V : V2V -> Pol -> VP -> VPSlash ;
|
|
||||||
--
|
|
||||||
-- ComplPredVP : NP -> VP -> Cl ;
|
|
||||||
--
|
|
||||||
-- that_RP, no_RP : RP ;
|
|
||||||
--
|
|
||||||
-- CompS : S -> Comp ;
|
|
||||||
-- CompVP : VP -> Comp ;
|
|
||||||
--
|
|
||||||
--}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
--# -path=alltenses
|
|
||||||
concrete ParseHun of ParseHunAbs =
|
|
||||||
TenseX - [Pol, PNeg, PPos],
|
|
||||||
CatHun,
|
|
||||||
NounHun,
|
|
||||||
AdjectiveHun,
|
|
||||||
NumeralHun,
|
|
||||||
SymbolHun,
|
|
||||||
ConjunctionHun,
|
|
||||||
VerbHun - [SlashV2V, PassV2],
|
|
||||||
AdverbHun,
|
|
||||||
PhraseHun,
|
|
||||||
SentenceHun,
|
|
||||||
RelativeHun,
|
|
||||||
IdiomHun [VP, Tense, ProgrVP],
|
|
||||||
ExtraHun [NP, Quant, VPSlash, VP, Tense, GenNP, PassVPSlash],
|
|
||||||
DictHun **
|
|
||||||
open MorphoHun, ResHun, ParadigmsHun, Prelude in
|
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
|
||||||
--flags
|
|
||||||
-- literal=Symb ;
|
|
||||||
--
|
|
||||||
--lin
|
|
||||||
-- myself_NP = regNP "myself" singular ;
|
|
||||||
-- yourselfSg_NP = regNP "yourself" singular ;
|
|
||||||
-- himself_NP = regNP "himself" singular ;
|
|
||||||
-- herself_NP = regNP "herself" singular ;
|
|
||||||
-- itself_NP = regNP "itself" singular ;
|
|
||||||
-- ourself_NP = regNP "ourself" plural ;
|
|
||||||
-- yourselfPl_NP = regNP "yourself" plural ;
|
|
||||||
-- themself_NP = regNP "themself" plural ;
|
|
||||||
--
|
|
||||||
-- CompoundCN num noun cn = {
|
|
||||||
-- s = \\n,c => num.s ! Nom ++ noun.s ! num.n ! Nom ++ cn.s ! n ! c ;
|
|
||||||
-- g = cn.g
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- DashCN noun1 noun2 = {
|
|
||||||
-- s = \\n,c => noun1.s ! Sg ! Nom ++ "-" ++ noun2.s ! n ! c ;
|
|
||||||
-- g = noun2.g
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- GerundN v = {
|
|
||||||
-- s = \\n,c => v.s ! VPresPart ;
|
|
||||||
-- g = Neutr
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- GerundAP v = {
|
|
||||||
-- s = \\agr => v.s ! VPresPart ;
|
|
||||||
-- isPre = True
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- PastPartAP v = {
|
|
||||||
-- s = \\agr => v.s ! VPPart ;
|
|
||||||
-- isPre = True
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- OrdCompar a = {s = \\c => a.s ! AAdj Compar c } ;
|
|
||||||
--
|
|
||||||
-- PositAdVAdj a = {s = a.s ! AAdv} ;
|
|
||||||
--
|
|
||||||
-- UseQuantPN q pn = {s = \\c => q.s ! False ! Sg ++ pn.s ! npcase2case c ; a = agrgP3 Sg pn.g} ;
|
|
||||||
--
|
|
||||||
-- SlashV2V v p vp = insertObjc (\\a => p.s ++ case p.p of {CPos => ""; _ => "not"} ++
|
|
||||||
-- v.c3 ++
|
|
||||||
-- infVP v.typ vp a)
|
|
||||||
-- (predVc v) ;
|
|
||||||
--
|
|
||||||
-- ComplPredVP np vp = {
|
|
||||||
-- s = \\t,a,b,o =>
|
|
||||||
-- let
|
|
||||||
-- verb = vp.s ! t ! a ! b ! o ! np.a ;
|
|
||||||
-- compl = vp.s2 ! np.a
|
|
||||||
-- in
|
|
||||||
-- case o of {
|
|
||||||
-- ODir => compl ++ "," ++ np.s ! npNom ++ verb.aux ++ verb.adv ++ vp.ad ++ verb.fin ++ verb.inf ;
|
|
||||||
-- OQuest => verb.aux ++ compl ++ "," ++ np.s ! npNom ++ verb.adv ++ vp.ad ++ verb.fin ++ verb.inf
|
|
||||||
-- }
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- that_RP = {
|
|
||||||
-- s = \\_ => "that" ;
|
|
||||||
-- a = RNoAg
|
|
||||||
-- } ;
|
|
||||||
-- no_RP = {
|
|
||||||
-- s = \\_ => "" ;
|
|
||||||
-- a = RNoAg
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- CompS s = {s = \\_ => "that" ++ s.s} ;
|
|
||||||
-- CompVP vp = {s = \\a => infVP VVInf vp a} ;
|
|
||||||
--
|
|
||||||
--lin
|
|
||||||
-- PPos = {s = [] ; p = CPos} ;
|
|
||||||
-- PNeg = {s = [] ; p = CNeg True} ; -- contracted: don't
|
|
||||||
--
|
|
||||||
--}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,32 +1,29 @@
|
|||||||
concrete PhraseHun of Phrase = CatHun ** open Prelude, ResHun in
|
concrete PhraseHun of Phrase = CatHun ** open Prelude, ResHun in {
|
||||||
{
|
|
||||||
--{
|
lin
|
||||||
--
|
PhrUtt pconj utt voc = {s = pconj.s ++ utt.s ++ voc.s} ;
|
||||||
-- lin
|
|
||||||
-- PhrUtt pconj utt voc = {s = pconj.s ++ utt.s ++ voc.s} ;
|
UttS s = s ;
|
||||||
--
|
UttQS qs = qs ;
|
||||||
-- UttS s = s ;
|
UttIAdv iadv = iadv ;
|
||||||
-- UttQS qs = {s = qs.s ! QDir} ;
|
{-
|
||||||
-- UttImpSg pol imp = {s = pol.s ++ imp.s ! pol.p ! ImpF Sg False} ;
|
UttImpSg pol imp =
|
||||||
-- UttImpPl pol imp = {s = pol.s ++ imp.s ! pol.p ! ImpF Pl False} ;
|
UttImpPl pol imp =
|
||||||
-- UttImpPol pol imp = {s = pol.s ++ imp.s ! pol.p ! ImpF Sg True} ;
|
UttImpPol = UttImpSg ;
|
||||||
--
|
-}
|
||||||
-- UttIP ip = {s = ip.s ! npNom} ; --- Acc also
|
UttIP,
|
||||||
-- UttIAdv iadv = iadv ;
|
UttNP = \np -> {s = np.s ! Nom} ;
|
||||||
-- UttNP np = {s = np.s ! npNom} ;
|
UttVP vp = {s = vp.obj ++ vp.adv ++ vp.s ! VInf} ;
|
||||||
-- UttVP vp = {s = infVP VVInf vp (agrP3 Sg)} ;
|
UttAdv adv = adv ;
|
||||||
-- UttAdv adv = adv ;
|
UttCN cn = {s = cn.s ! Sg ! Nom} ;
|
||||||
-- UttCN n = {s = n.s ! Sg ! Nom} ;
|
UttCard n = {s = n.s ! Indep} ;
|
||||||
-- UttCard n = {s = n.s ! Nom} ;
|
UttAP ap = {s = ap.s ! Sg ++ ap.compar} ;
|
||||||
-- UttAP ap = {s = ap.s ! agrP3 Sg} ;
|
UttInterj i = i ;
|
||||||
-- UttInterj i = i ;
|
|
||||||
--
|
NoPConj = {s = []} ;
|
||||||
-- NoPConj = {s = []} ;
|
-- PConjConj conj = {s = conj.s1 ++ conj.s2 ! …} ;
|
||||||
-- PConjConj conj = {s = conj.s2} ; ---
|
|
||||||
--
|
NoVoc = {s = []} ;
|
||||||
-- NoVoc = {s = []} ;
|
-- VocNP np = { s = "," ++ np.s ! … } ; -}
|
||||||
-- VocNP np = {s = "," ++ np.s ! npNom} ;
|
|
||||||
--
|
|
||||||
--}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,73 +1,77 @@
|
|||||||
concrete QuestionHun of Question = CatHun ** open ResHun, Prelude in
|
concrete QuestionHun of Question = CatHun ** open
|
||||||
{
|
Prelude, ResHun, ParadigmsHun, (NH=NounHun) in {
|
||||||
--{
|
|
||||||
--
|
-- A question can be formed from a clause ('yes-no question') or
|
||||||
-- flags optimize=all_subs ;
|
-- with an interrogative.
|
||||||
--
|
|
||||||
-- lin
|
{-
|
||||||
--
|
lin
|
||||||
-- QuestCl cl = {
|
-- : Cl -> QCl ;
|
||||||
-- s = \\t,a,p =>
|
QuestCl =
|
||||||
-- let cls = cl.s ! t ! a ! p
|
|
||||||
-- in table {
|
-- : IP -> VP -> QCl ;
|
||||||
-- QDir => cls ! OQuest ;
|
QuestVP ip vp =
|
||||||
-- QIndir => "if" ++ cls ! ODir
|
|
||||||
-- } ---- "whether" in ExtHun
|
-- : IP -> ClSlash -> QCl ; -- whom does John love
|
||||||
-- } ;
|
QuestSlash ip cls =
|
||||||
--
|
|
||||||
-- QuestVP qp vp =
|
-- : IAdv -> Cl -> QCl ; -- why does John walk
|
||||||
-- let cl = mkClause (qp.s ! npNom) (agrP3 qp.n) vp
|
QuestIAdv iadv cls =
|
||||||
-- in {s = \\t,a,b,_ => cl.s ! t ! a ! b ! ODir} ;
|
|
||||||
--
|
|
||||||
-- QuestSlash ip slash =
|
-- : IComp -> NP -> QCl ; -- where is John?
|
||||||
-- mkQuestion (ss (slash.c2 ++ ip.s ! NPAcc)) slash ;
|
QuestIComp icomp np =
|
||||||
-- --- stranding in ExratHun
|
|
||||||
--
|
|
||||||
-- QuestIAdv iadv cl = mkQuestion iadv cl ;
|
-- Interrogative pronouns can be formed with interrogative
|
||||||
--
|
-- determiners, with or without a noun.
|
||||||
-- QuestIComp icomp np =
|
|
||||||
-- mkQuestion icomp (mkClause (np.s ! npNom) np.a (predAux auxBe)) ;
|
-- : IDet -> CN -> IP ; -- which five songs
|
||||||
--
|
IdetCN idet cn = {…} ** NH.DetCN idet cn ;
|
||||||
--
|
|
||||||
-- PrepIP p ip = {s = p.s ++ ip.s ! NPAcc} ;
|
-- : IDet -> IP ; -- which five
|
||||||
--
|
IdetIP idet = {…} ** NH.DetNP idet ;
|
||||||
-- AdvIP ip adv = {
|
|
||||||
-- s = \\c => ip.s ! c ++ adv.s ;
|
-- They can be modified with adverbs.
|
||||||
-- n = ip.n
|
-- : IP -> Adv -> IP ; -- who in Paris
|
||||||
-- } ;
|
--AdvIP = NH.AdvNP ;
|
||||||
--
|
|
||||||
-- IdetCN idet cn = {
|
-- Interrogative quantifiers have number forms and can take number modifiers.
|
||||||
-- s = \\c => idet.s ++ cn.s ! idet.n ! npcase2case c ;
|
|
||||||
-- n = idet.n
|
-- : IQuant -> Num -> IDet ; -- which (five)
|
||||||
-- } ;
|
IdetQuant = NH.DetQuant ;
|
||||||
--
|
|
||||||
-- IdetIP idet = {
|
-- Interrogative adverbs can be formed prepositionally.
|
||||||
-- s = \\c => idet.s ;
|
-- : Prep -> IP -> IAdv ; -- with whom
|
||||||
-- n = idet.n
|
PrepIP prep ip = ;
|
||||||
-- } ;
|
|
||||||
--
|
-- They can be modified with other adverbs.
|
||||||
-- IdetQuant idet num = {
|
|
||||||
-- s = idet.s ! num.n ++ num.s ! Nom ;
|
-- : IAdv -> Adv -> IAdv ; -- where in Paris
|
||||||
-- n = num.n
|
-- AdvIAdv iadv adv =
|
||||||
-- } ;
|
|
||||||
--
|
-- Interrogative complements to copulas can be both adverbs and
|
||||||
-- AdvIAdv i a = ss (i.s ++ a.s) ;
|
-- pronouns.
|
||||||
--
|
|
||||||
-- CompIAdv a = a ;
|
-- : IAdv -> IComp ;
|
||||||
-- CompIP p = ss (p.s ! npNom) ;
|
CompIAdv iadv = iadv ; -- where (is it)
|
||||||
--
|
|
||||||
-- lincat
|
-- : IP -> IComp ;
|
||||||
-- QVP = ResHun.VP ;
|
CompIP ip = {s = ip.s ! Abs} ; -- who (is it)
|
||||||
-- lin
|
|
||||||
-- ComplSlashIP vp np = insertObjPre (\\_ => vp.c2 ++ np.s ! NPAcc) vp ;
|
|
||||||
-- AdvQVP vp adv = insertObj (\\_ => adv.s) vp ;
|
-- More $IP$, $IDet$, and $IAdv$ are defined in $Structural$.
|
||||||
-- AddAdvQVP vp adv = insertObj (\\_ => adv.s) vp ;
|
|
||||||
--
|
-- Wh questions with two or more question words require a new, special category.
|
||||||
-- QuestQVP qp vp =
|
|
||||||
-- let cl = mkClause (qp.s ! npNom) (agrP3 qp.n) vp
|
cat
|
||||||
-- in {s = \\t,a,b,_ => cl.s ! t ! a ! b ! ODir} ;
|
QVP ; -- buy what where
|
||||||
--
|
fun
|
||||||
--
|
ComplSlashIP : VPSlash -> IP -> QVP ; -- buys what
|
||||||
--}
|
AdvQVP : VP -> IAdv -> QVP ; -- lives where
|
||||||
|
AddAdvQVP : QVP -> IAdv -> QVP ; -- buys what where
|
||||||
|
|
||||||
|
QuestQVP : IP -> QVP -> QCl ; -- who buys what where
|
||||||
|
-}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
26
src/hungarian/README.md
Normal file
26
src/hungarian/README.md
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Hungarian
|
||||||
|
|
||||||
|
## Language info
|
||||||
|
|
||||||
|
* English name: Hungarian
|
||||||
|
* Autonym: Magyar
|
||||||
|
* ISO code: Hun
|
||||||
|
|
||||||
|
## Authors
|
||||||
|
|
||||||
|
Inari Listenmaa, Julia Jansson, 2020-
|
||||||
|
|
||||||
|
With contributions from Erzsébet Galgóczy (initial nominal morphology) and Patrik Jansson (numerals).
|
||||||
|
|
||||||
|
## Publications
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
|
## Implementation information
|
||||||
|
|
||||||
|
So far (2020-03) just copypasted a dummy module with Hungarian words that inflect mostly wrong or not at all. This will change in a few weeks.
|
||||||
|
|
||||||
|
|
||||||
|
## Maintainer
|
||||||
|
|
||||||
|
Inari Listenmaa ([@inariksit](https://github.com/inariksit))
|
||||||
@@ -1,56 +1,31 @@
|
|||||||
concrete RelativeHun of Relative = CatHun ** open ResHun in
|
concrete RelativeHun of Relative = CatHun ** open
|
||||||
{
|
ResHun, Prelude, (NS=NounHun), (SS=StructuralHun) in {
|
||||||
--{
|
|
||||||
--
|
lin
|
||||||
-- flags optimize=all_subs ;
|
-- : Cl -> RCl ; -- such that John loves her
|
||||||
--
|
-- RelCl cl = ;
|
||||||
-- lin
|
|
||||||
--
|
-- : RP -> VP -> RCl ;
|
||||||
-- RelCl cl = {
|
RelVP = relVP ;
|
||||||
-- s = \\t,a,p,_ => "such" ++ "that" ++ cl.s ! t ! a ! p ! ODir ;
|
|
||||||
-- c = npNom
|
-- : RP -> ClSlash -> RCl ; -- whom John loves
|
||||||
-- } ;
|
RelSlash = relSlash ;
|
||||||
--
|
|
||||||
-- RelVP rp vp = {
|
-- : RP ;
|
||||||
-- s = \\t,ant,b,ag =>
|
IdRP = {s =
|
||||||
-- let
|
table {Sg => caseTable "ami" "amit" "aminek" -- nom, acc, dat
|
||||||
-- agr = case rp.a of {
|
"amibe" "amiben" "amiből" -- ill, ine, ela
|
||||||
-- RNoAg => ag ;
|
"amihez" "aminél" "amitől" -- all, ade, abl
|
||||||
-- RAg a => a
|
"amire" "amin" "amiről" -- sub, sup, del
|
||||||
-- } ;
|
"amiért" "amivel" "amivé" ; -- cau, ins, tra
|
||||||
-- cl = mkClause (rp.s ! RC (fromAgr agr).g npNom) agr vp
|
Pl => caseTable "amik" "amiket" "amiknek" -- nom, acc, dat
|
||||||
-- in
|
"amikbe" "amikben" "amikből" -- ill, ine, ela
|
||||||
-- cl.s ! t ! ant ! b ! ODir ;
|
"amikhez" "amiknél" "amiktől" -- all, ade, abl
|
||||||
-- c = npNom
|
"amikre" "amiken" "amikről" -- sub, sup, del
|
||||||
-- } ;
|
"amikért" "amikkel" "amikké"}; -- cau, ins, tra
|
||||||
--
|
} ;
|
||||||
---- Pied piping: "at which we are looking". Stranding and empty
|
|
||||||
---- relative are defined in $ExtraHun.gf$ ("that we are looking at",
|
-- : Prep -> NP -> RP -> RP ; -- the mother of whom
|
||||||
---- "we are looking at").
|
--FunRP prep np rp = {} ;
|
||||||
--
|
|
||||||
-- RelSlash rp slash = {
|
|
||||||
-- s = \\t,a,p,agr =>
|
|
||||||
-- slash.c2 ++ rp.s ! RPrep (fromAgr agr).g ++ slash.s ! t ! a ! p ! ODir ;
|
|
||||||
-- c = NPAcc
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- FunRP p np rp = {
|
|
||||||
-- s = \\c => np.s ! NPAcc ++ p.s ++ rp.s ! RPrep (fromAgr np.a).g ;
|
|
||||||
-- a = RAg np.a
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- IdRP =
|
|
||||||
-- { s = table {
|
|
||||||
-- RC _ (NCase Gen) => "whose" ;
|
|
||||||
-- RC Neutr _ => "which" ;
|
|
||||||
-- RC _ NPAcc => "whom" ;
|
|
||||||
-- RC _ (NCase Nom) => "who" ;
|
|
||||||
-- RPrep Neutr => "which" ;
|
|
||||||
-- RPrep _ => "whom"
|
|
||||||
-- } ;
|
|
||||||
-- a = RNoAg
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
--}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,550 +3,363 @@
|
|||||||
--1 Hungarian auxiliary operations.
|
--1 Hungarian auxiliary operations.
|
||||||
|
|
||||||
-- This module contains operations that are needed to make the
|
-- This module contains operations that are needed to make the
|
||||||
-- resource syntax work.
|
-- resource syntax work.
|
||||||
|
|
||||||
resource ResHun = ParamX ** open Prelude in
|
|
||||||
{
|
|
||||||
|
|
||||||
flags
|
|
||||||
optimize=noexpand ;
|
|
||||||
coding = utf8 ;
|
|
||||||
|
|
||||||
-- Some parameters, such as $Number$, are inherited from $ParamX$.
|
-- Some parameters, such as $Number$, are inherited from $ParamX$.
|
||||||
--
|
resource ResHun = NounMorphoHun ** open Prelude, Predef in {
|
||||||
--2 For $Noun$
|
|
||||||
--
|
|
||||||
-- This is case as needed when inflecting nouns.
|
|
||||||
--
|
|
||||||
param
|
|
||||||
Case = Nom | Acc | Dat | Ins | Ess | Tra | Cau
|
|
||||||
| Ill | Sub | All | Ine | Sup | Ade | Ela
|
|
||||||
| Del | Abl | Ter | For | Tem
|
|
||||||
;
|
|
||||||
|
|
||||||
Harm = H_a | H_e | H_o ;
|
--------------------------------------------------------------------------------
|
||||||
|
-- NP
|
||||||
|
|
||||||
oper
|
-- Noun morphology is in NounMorphoHun
|
||||||
Noun = {s : Number => Case => Str} ;
|
|
||||||
|
|
||||||
endCase : Case -> HarmForms = \c -> case c of {
|
oper
|
||||||
Nom => harm1 [] ;
|
BaseNP : Type = {
|
||||||
Acc => harm3 "ot" "et" "öt" ;
|
agr : Person*Number ;
|
||||||
Dat => harm "nak" "nek" ;
|
objdef : ObjDef ;
|
||||||
Ins => harm "al" "el" ;
|
empty : Str ; -- standard trick for pro-drop
|
||||||
Ess => harm "stul" "stül" ;
|
} ;
|
||||||
Tra => harm "á" "é" ;
|
|
||||||
Cau => harm1 "ért" ;
|
NounPhrase : Type = BaseNP ** {
|
||||||
Ill => harm "ba" "be" ;
|
s : Case => Str ;
|
||||||
Sub => harm "ra" "re" ;
|
} ;
|
||||||
All => harm3 "hoz" "hez" "höz" ;
|
|
||||||
Ine => harm "ban" "ben" ;
|
emptyNP : NounPhrase = {
|
||||||
Sup => harm3 "on" "en" "ön" ;
|
s = \\_ => [] ;
|
||||||
Ade => harm "nál" "nél" ;
|
agr = <P3,Sg> ;
|
||||||
Ela => harm "ból" "ből" ;
|
objdef = Indef ;
|
||||||
Del => harm "ról" "ről" ;
|
empty = [] ;
|
||||||
Abl => harm "tól" "től" ;
|
} ;
|
||||||
Ter => harm1 "ig" ;
|
|
||||||
For => harm1 "ként" ;
|
indeclNP : Str -> NounPhrase = \s -> emptyNP ** {s = \\c => s} ;
|
||||||
Tem => harm1 "kor"
|
|
||||||
|
defNP : Str -> Number -> NounPhrase = \s,n -> emptyNP ** {
|
||||||
|
s = (mkNoun s).s ! n ;
|
||||||
|
n = n ;
|
||||||
|
objdef = Def ;
|
||||||
|
} ;
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Pronouns
|
||||||
|
|
||||||
|
Pronoun : Type = NounPhrase ** {
|
||||||
|
--poss : Str ; -- for PossPron : Pron -> Quant
|
||||||
|
} ;
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Det, Quant, Card, Ord
|
||||||
|
|
||||||
|
-- Quant has variable number:
|
||||||
|
-- e.g. this_Quant has both "this" and "these"
|
||||||
|
Quant : Type = {
|
||||||
|
s, -- form that comes before noun: "{this} car"
|
||||||
|
sp : Number => Case => Str ; -- independent form, "I like {this}" (DetNP)
|
||||||
|
isIndefArt : Bool ; -- standard trick to prevent "a one car"
|
||||||
|
objdef : ObjDef ; -- How V2 agrees if NP with this Det is an object
|
||||||
|
} ;
|
||||||
|
|
||||||
|
mkQuant : (s,sp : Str) -> Quant = \s,sp -> {
|
||||||
|
s = (mkNoun s).s ;
|
||||||
|
sp = (mkNoun sp).s ;
|
||||||
|
isIndefArt = False ;
|
||||||
|
objdef = Def ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- Det is formed in DetQuant : Quant -> Num -> Det
|
||||||
|
-- so it has an inherent number.
|
||||||
|
Determiner : Type = {
|
||||||
|
s,
|
||||||
|
sp : Case => Str ;
|
||||||
|
n : Number ;
|
||||||
|
numtype : NumType ; -- Whether its Num component is digit, numeral or Sg/Pl
|
||||||
|
objdef : ObjDef ; -- How V2 agrees if NP with this Det is an object
|
||||||
|
} ;
|
||||||
|
|
||||||
|
mkDet : (s : Str) -> ObjDef -> Number -> Determiner = \s,d,n -> {
|
||||||
|
s,
|
||||||
|
sp = (mkNoun s).s ! n ;
|
||||||
|
n = n ;
|
||||||
|
numtype = NoNum ;
|
||||||
|
objdef = d ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
Numeral : Type = {
|
||||||
|
s : Place => Str ; -- Independent or attribute
|
||||||
|
numtype : NumType ; -- Digit, numeral or Sg/Pl : makes a difference in many languages
|
||||||
|
-- TODO add ordinal
|
||||||
|
} ;
|
||||||
|
|
||||||
|
{- Numeral can become Num via
|
||||||
|
Noun.gf: NumNumeral : Numeral -> Card ;
|
||||||
|
Noun.gf: NumCard : Card -> Num ;
|
||||||
|
-}
|
||||||
|
Num : Type = Numeral ** {
|
||||||
|
n : Number ; -- Singular or plural
|
||||||
|
} ;
|
||||||
|
|
||||||
|
baseNum : Num = {
|
||||||
|
s = \\_ => [] ;
|
||||||
|
n = Sg ;
|
||||||
|
numtype = NoNum
|
||||||
|
} ;
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Postpositions
|
||||||
|
|
||||||
|
-- TODO: personal suffixes, e.g. felettem, általam, not *felett/által én
|
||||||
|
Postposition : Type = {s : Str ; c : Case} ;
|
||||||
|
|
||||||
|
mkPrep : Str -> Postposition = \str -> {s=str ; c=Nom} ;
|
||||||
|
|
||||||
|
emptyPP : Postposition = mkPrep [] ;
|
||||||
|
|
||||||
|
------------------
|
||||||
|
-- Conj
|
||||||
|
|
||||||
|
Conj : Type = {
|
||||||
|
s1 : Str ;
|
||||||
|
s2 : Str ;
|
||||||
|
n : Number ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
mkConj : Str -> Number -> Conj = mkDConj [] ;
|
||||||
|
|
||||||
|
mkDConj : (s1,s2 : Str) -> Number -> Conj = \s1,s2,num -> {
|
||||||
|
s1 = s1 ;
|
||||||
|
s2 = s2 ;
|
||||||
|
n = num ;
|
||||||
|
} ;
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Adjectives
|
||||||
|
|
||||||
|
AdjPhrase : Type = {
|
||||||
|
s : Number => Str ;
|
||||||
|
compar : Str -- Discontinuous: Én *nagyobb* vagyok *nálad*.
|
||||||
|
} ;
|
||||||
|
|
||||||
|
emptyAP : AdjPhrase = {
|
||||||
|
s = \\_ => [] ;
|
||||||
|
compar = [] ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
Adjective : Type = {
|
||||||
|
s : Degree => Number => Str
|
||||||
|
} ;
|
||||||
|
Adjective2 : Type = Adjective ** {
|
||||||
|
c2 : Postposition ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
mkAdj : Str -> Adjective = \sg -> {
|
||||||
|
s = \\d,n =>
|
||||||
|
let adj = case d of {
|
||||||
|
Compar => comparAdj sg ;
|
||||||
|
Superl => "leg" + comparAdj sg ;
|
||||||
|
_ => sg } ;
|
||||||
|
plural = case n of {
|
||||||
|
Sg => [] ;
|
||||||
|
Pl => pluralAdj adj }
|
||||||
|
in adj + plural
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- https://en.wikisource.org/wiki/Simplified_Grammar_of_the_Hungarian_Language/Adjectives
|
||||||
|
comparAdj : Str -> Str = \stem ->
|
||||||
|
case stem of {
|
||||||
|
-- Final a and e become lengthened at the end of a word, if the comparative suffix -bb is joined to it—e.g., drága, drágább; fekete, feketébb, &c.; ó shortens its sound only in jó; jobb, legjobb.
|
||||||
|
"szép" => "szebb" ;
|
||||||
|
"könnyű" => "könnyebb" ;
|
||||||
|
"ifju" => "ifjabb" ;
|
||||||
|
"hosszú" => "hosszabb" ;
|
||||||
|
"sok" => "több" ;
|
||||||
|
"felső" => "felsőbb" ;
|
||||||
|
"belső" => "belsőbb" ;
|
||||||
|
_ + #v => stem + "bb" ;
|
||||||
|
_ => stem + harm "abb" "ebb" ! getHarm stem
|
||||||
|
} ;
|
||||||
|
|
||||||
|
pluralAdj : Str -> Str = \stem ->
|
||||||
|
case vowFinal stem of {
|
||||||
|
True => -- https://en.wikisource.org/wiki/Simplified_Grammar_of_the_Hungarian_Language/Adjectives
|
||||||
|
case last stem of { "ü" => "ek" ;
|
||||||
|
"i" => harm "ak" "ek" ! getHarm stem ;
|
||||||
|
_ => "k" } ;
|
||||||
|
|
||||||
|
False => harm3 "ok" "ek" "ök" ! getHarm stem
|
||||||
|
} ;
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Verbs
|
||||||
|
|
||||||
|
VerbEndings : Type = Person*Number => HarmForms ;
|
||||||
|
-- TODO: incomplete
|
||||||
|
endingsDef : VerbEndings = table {
|
||||||
|
<P1,Sg> => harm3 "om" "em" "öm" ;
|
||||||
|
<P2,Sg> => harm3 "od" "ed" "öd" ;
|
||||||
|
<P3,Sg> => harm "ja" "i" ;
|
||||||
|
<P1,Pl> => harm "juk" "jük" ;
|
||||||
|
<P2,Pl> => harm "játok" "itek" ;
|
||||||
|
<P3,Pl> => harm "ják" "ik"
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- by EG 2009, needs more special cases
|
||||||
|
endingsIndef : VerbEndings = table {
|
||||||
|
<P1,Sg> => harm3 "ok" "ek" "ök" ;
|
||||||
|
<P2,Sg> => harm1 "sz" ;
|
||||||
|
<P3,Sg> => harm1 [] ;
|
||||||
|
<P1,Pl> => harm "unk" "ünk" ;
|
||||||
|
<P2,Pl> => harm3 "tok" "tek" "tök" ; -- TODO allomorphs -otok, -etek, -ötök
|
||||||
|
<P3,Pl> => harm "nak" "nek" -- TODO allomorphs -anak, -enek
|
||||||
|
} ;
|
||||||
|
|
||||||
|
BaseVerb : Type = {
|
||||||
|
sc : SubjCase ; -- subject case
|
||||||
|
} ;
|
||||||
|
Verb : Type = BaseVerb ** {
|
||||||
|
s : VForm => Str ;
|
||||||
|
} ;
|
||||||
|
Verb2 : Type = BaseVerb ** {
|
||||||
|
s : ObjDef => VForm => Str ;
|
||||||
|
c2 : Case -- object case
|
||||||
|
} ;
|
||||||
|
Verb3 : Type = Verb2 ** {
|
||||||
|
-- c3 : Case -- indirect object case
|
||||||
|
} ;
|
||||||
|
|
||||||
|
datV2 : Verb -> Verb2 = \v -> {
|
||||||
|
s = \\_ => v.s ;
|
||||||
|
sc = SCDat ;
|
||||||
|
c2 = Nom
|
||||||
|
} ;
|
||||||
|
|
||||||
|
mkVerb2 : Str -> Verb2 = \sg3 -> vtov2 (mkVerb sg3) ;
|
||||||
|
mkVerb3 : Str -> Verb3 = \sg3 -> v2tov3 (mkVerb2 sg3) ;
|
||||||
|
|
||||||
|
vtov2 : Verb -> Verb2 = \v -> v ** {
|
||||||
|
s = table {
|
||||||
|
Def => let vDef : Verb = mkVerbReg endingsDef (v.s ! VInf) (v.s ! VFin P3 Sg)
|
||||||
|
in vDef.s ;
|
||||||
|
Indef => v.s } ;
|
||||||
|
c2 = Acc
|
||||||
|
} ;
|
||||||
|
v2tov3 : Verb2 -> Verb3 = \v -> v ** {c3 = Dat} ;
|
||||||
|
|
||||||
|
mkVerb : (sg3 : Str) -> Verb = mkVerbReg endingsIndef "TODO:infinitive" ; -- TODO
|
||||||
|
|
||||||
|
mkVerbReg : VerbEndings -> (inf, stem : Str) -> Verb = \hf,inf,stem ->
|
||||||
|
let h : Harm = getHarm stem ;
|
||||||
|
sg1 : Str = stem + hf ! <P1,Sg> ! h ;
|
||||||
|
sg2 : Str = stem + hf ! <P2,Sg> ! h ;
|
||||||
|
sg3 : Str = stem + hf ! <P3,Sg> ! h ;
|
||||||
|
pl1 : Str = stem + hf ! <P1,Pl> ! h ;
|
||||||
|
pl2 : Str = stem + hf ! <P2,Pl> ! h ;
|
||||||
|
pl3 : Str = stem + hf ! <P3,Pl> ! h ;
|
||||||
|
in mkVerbFull sg1 sg2 sg3 pl1 pl2 pl3 inf ;
|
||||||
|
|
||||||
|
mkVerbFull : (x1,_,_,_,_,_,x7 : Str) -> Verb =
|
||||||
|
\sg1,sg2,sg3,pl1,pl2,pl3,inf -> {
|
||||||
|
s = table {
|
||||||
|
VInf => inf ;
|
||||||
|
VFin P1 Sg => sg1 ;
|
||||||
|
VFin P2 Sg => sg2 ;
|
||||||
|
VFin P3 Sg => sg3 ;
|
||||||
|
VFin P1 Pl => pl1 ;
|
||||||
|
VFin P2 Pl => pl2 ;
|
||||||
|
VFin P3 Pl => pl3
|
||||||
} ;
|
} ;
|
||||||
|
sc = SCNom
|
||||||
endNumber : Number -> HarmForms = \n -> case n of {
|
|
||||||
Sg => harm1 [] ;
|
|
||||||
Pl => harm3 "ok" "ek" "ök"
|
|
||||||
} ;
|
|
||||||
|
|
||||||
harm3 : Str -> Str -> Str -> HarmForms = \a,e,o -> <a,e,o> ;
|
|
||||||
harm : Str -> Str -> HarmForms = \a,e -> harm3 a e e ;
|
|
||||||
harm1 : Str -> HarmForms = \i -> harm i i ;
|
|
||||||
|
|
||||||
getHarm : Str -> Harm = \s -> case s of {
|
|
||||||
_ + ("a" | "á" | "o" | "ó" | "u" | "ú") + _ => H_a ;
|
|
||||||
_ + ("ö" | "ő" | "ü") + _ => H_o ;
|
|
||||||
_ => H_e
|
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
HarmForms : Type = Str * Str * Str ;
|
copula : Verb = mkVerbFull
|
||||||
|
"vagyok"
|
||||||
|
"vagy"
|
||||||
|
"van"
|
||||||
|
"vagyunk"
|
||||||
|
"vagytok"
|
||||||
|
"vannak"
|
||||||
|
"lenni" ;
|
||||||
|
|
||||||
useHarm : Harm -> HarmForms -> Str = \h,ss -> case h of {
|
------------------
|
||||||
H_a => ss.p1 ;
|
-- VP
|
||||||
H_e => ss.p2 ;
|
|
||||||
H_o => ss.p3
|
VerbPhrase : Type = Verb ** {
|
||||||
|
obj : Str ;
|
||||||
|
adv : Str ;
|
||||||
|
c2 : Case ; -- for RelSlash
|
||||||
|
} ; -- TODO more fields
|
||||||
|
|
||||||
|
VPSlash : Type = Verb2 ** {
|
||||||
|
adv : Str ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
putHarmEnding : HarmForms -> Str -> Str = \hs,w ->
|
useV : Verb -> VerbPhrase = \v -> v ** {
|
||||||
w + useHarm (getHarm w) hs ;
|
obj,adv = [] ;
|
||||||
|
c2 = Acc ; -- TODO check
|
||||||
|
} ;
|
||||||
|
|
||||||
regNoun : Str -> Noun = \w -> {
|
useVc : Verb2 -> VPSlash = \v2 -> v2 ** {
|
||||||
s = \\n,c =>
|
adv = [] ;
|
||||||
let h = getHarm w
|
} ;
|
||||||
in
|
|
||||||
w + useHarm h (endNumber n) + useHarm h (endCase c)
|
insertObj : VPSlash -> NounPhrase -> VerbPhrase = \vps,np -> vps ** {
|
||||||
} ;
|
obj = np.s ! vps.c2 ;
|
||||||
|
|
||||||
|
-- If verb's subject case is Dat and object Nom, verb agrees with obj.
|
||||||
|
s = \\vf => case <vps.sc,vps.c2> of {
|
||||||
|
<SCDat,Nom> => vps.s ! np.objdef ! agr2vf np.agr ;
|
||||||
|
_ => vps.s ! np.objdef ! vf } ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
insertAdv : VerbPhrase -> SS -> VerbPhrase = \vp,adv -> vp ** {adv = adv.s} ;
|
||||||
|
insertAdvSlash : VPSlash -> SS -> VPSlash = \vps,adv -> vps ** {adv = adv.s} ;
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Cl, S
|
||||||
|
|
||||||
|
Clause : Type = {s : Tense => Anteriority => Polarity => Str} ;
|
||||||
|
|
||||||
|
{- After PredVP, we might still want to add more adverbs (QuestIAdv),
|
||||||
|
but we're done with verb inflection.
|
||||||
|
-}
|
||||||
|
ClSlash : Type = Clause ** {
|
||||||
|
c2 : Case ; -- For RelSlash
|
||||||
|
} ;
|
||||||
|
|
||||||
|
QClause : Type = Clause ;
|
||||||
|
|
||||||
|
|
||||||
--
|
Sentence : Type = {s : Str} ;
|
||||||
-- param
|
|
||||||
-- Agr = AgP1 Number | AgP2 Number | AgP3Sg Gender | AgP3Pl ;
|
predVP : NounPhrase -> VerbPhrase -> ClSlash = \np,vp -> vp ** {
|
||||||
--
|
s = let rel : RClause = relVP' (np2rp np) vp ;
|
||||||
-- param
|
in \\t,a,p => rel.s ! t ! a ! p ! np.agr.p2 ! sc2case vp.sc
|
||||||
-- Gender = Neutr | Masc | Fem ;
|
++ np.empty ; -- standard trick for prodrop+metavariable problem
|
||||||
--
|
} ;
|
||||||
--
|
|
||||||
----2 For $Verb$
|
-- Relative
|
||||||
--
|
|
||||||
---- Only these five forms are needed for open-lexicon verbs.
|
RP : Type = {s : Number => Case => Str} ;
|
||||||
--
|
RClause : Type = {s : Tense => Anteriority => Polarity => Number => Case => Str} ;
|
||||||
-- param
|
|
||||||
-- VForm =
|
np2rp : NounPhrase -> RP ** {agr : Person*Number} = \np -> np ** {
|
||||||
-- VInf
|
s = \\n => np.s ;
|
||||||
-- | VPres
|
} ;
|
||||||
-- | VPPart
|
|
||||||
-- | VPresPart
|
relVP : RP -> VerbPhrase -> RClause = \rp -> relVP' (rp ** {agr=<P3,Sg>}) ;
|
||||||
-- | VPast --# notpresent
|
|
||||||
-- ;
|
relVP' : RP ** {agr : Person*Number} -> VerbPhrase -> RClause = \rp,vp -> {
|
||||||
--
|
s = \\t,a,p,n,c => let subjcase : Case = case vp.sc of {
|
||||||
---- Auxiliary verbs have special negative forms.
|
SCNom => c ;
|
||||||
--
|
SCDat => Dat }
|
||||||
-- VVForm =
|
in rp.s ! n ! subjcase
|
||||||
-- VVF VForm
|
++ vp.s ! VFin rp.agr.p1 n -- variable by number
|
||||||
-- | VVPresNeg
|
++ vp.obj
|
||||||
-- | VVPastNeg --# notpresent
|
++ vp.adv
|
||||||
-- ;
|
} ;
|
||||||
--
|
|
||||||
---- The order of sentence is needed already in $VP$.
|
relSlash : RP -> ClSlash -> RClause = \rp,cls -> {
|
||||||
--
|
s = \\t,a,p,n,c => let objcase : Case = case cls.c2 of {
|
||||||
-- Order = ODir | OQuest ;
|
Acc => c ;
|
||||||
--
|
_ => cls.c2 }
|
||||||
---- The type of complement of a VV
|
in rp.s ! n ! objcase
|
||||||
--
|
++ cls.s ! t ! a ! p
|
||||||
-- VVType = VVAux | VVInf | VVPresPart ; -- can do / try to do / start doing
|
} ;
|
||||||
--
|
--------------------------------------------------------------------------------
|
||||||
----2 For $Adjective$
|
-- linrefs
|
||||||
--
|
|
||||||
-- AForm = AAdj Degree Case | AAdv ;
|
|
||||||
--
|
|
||||||
----2 For $Relative$
|
|
||||||
--
|
|
||||||
-- RAgr = RNoAg | RAg Agr ;
|
|
||||||
-- RCase = RPrep Gender | RC Gender NPCase ;
|
|
||||||
--
|
|
||||||
----2 For $Numeral$
|
|
||||||
--
|
|
||||||
-- CardOrd = NCard | NOrd ;
|
|
||||||
-- DForm = unit | teen | ten ;
|
|
||||||
--
|
|
||||||
----2 Transformations between parameter types
|
|
||||||
--
|
|
||||||
-- oper
|
|
||||||
-- toAgr : Number -> Person -> Gender -> Agr = \n,p,g ->
|
|
||||||
-- case p of {
|
|
||||||
-- P1 => AgP1 n ;
|
|
||||||
-- P2 => AgP2 n ;
|
|
||||||
-- P3 => case n of {
|
|
||||||
-- Sg => AgP3Sg g ;
|
|
||||||
-- Pl => AgP3Pl
|
|
||||||
-- }
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- fromAgr : Agr -> {n : Number ; p : Person ; g : Gender} = \a -> case a of {
|
|
||||||
-- AgP1 n => {n = n ; p = P1 ; g = Masc} ;
|
|
||||||
-- AgP2 n => {n = n ; p = P2 ; g = Masc} ;
|
|
||||||
-- AgP3Pl => {n = Pl ; p = P3 ; g = Masc} ;
|
|
||||||
-- AgP3Sg g => {n = Sg ; p = P3 ; g = g}
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- agrP3 : Number -> Agr = \n -> agrgP3 n Neutr ;
|
|
||||||
--
|
|
||||||
-- agrgP3 : Number -> Gender -> Agr = \n,g -> toAgr n P3 g ;
|
|
||||||
--
|
|
||||||
-- conjAgr : Agr -> Agr -> Agr = \a0,b0 ->
|
|
||||||
-- let a = fromAgr a0 ; b = fromAgr b0
|
|
||||||
-- in
|
|
||||||
-- toAgr
|
|
||||||
-- (conjNumber a.n b.n)
|
|
||||||
-- (conjPerson a.p b.p) a.g ;
|
|
||||||
--
|
|
||||||
---- For $Lex$.
|
|
||||||
--
|
|
||||||
---- For each lexical category, here are the worst-case constructors.
|
|
||||||
--
|
|
||||||
-- mkNoun : (_,_,_,_ : Str) -> {s : Number => Case => Str} =
|
|
||||||
-- \man,mans,men,mens -> {
|
|
||||||
-- s = table {
|
|
||||||
-- Sg => table {
|
|
||||||
-- Gen => mans ;
|
|
||||||
-- _ => man
|
|
||||||
-- } ;
|
|
||||||
-- Pl => table {
|
|
||||||
-- Gen => mens ;
|
|
||||||
-- _ => men
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mkAdjective : (_,_,_,_ : Str) -> {s : AForm => Str; lock_A : {}} =
|
|
||||||
-- \good,better,best,well -> lin A {
|
|
||||||
-- s = table {
|
|
||||||
-- AAdj Posit c => (regGenitiveS good) ! c ;
|
|
||||||
-- AAdj Compar c => (regGenitiveS better) ! c ;
|
|
||||||
-- AAdj Superl c => (regGenitiveS best) ! c ;
|
|
||||||
-- AAdv => well
|
|
||||||
-- }
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mkVerb : (_,_,_,_,_ : Str) -> Verb =
|
|
||||||
-- \go,goes,went,gone,going -> {
|
|
||||||
-- s = table {
|
|
||||||
-- VInf => go ;
|
|
||||||
-- VPres => goes ;
|
|
||||||
-- VPast => went ; --# notpresent
|
|
||||||
-- VPPart => gone ;
|
|
||||||
-- VPresPart => going
|
|
||||||
-- } ;
|
|
||||||
-- isRefl = False
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mkIP : (i,me,my : Str) -> Number -> {s : NPCase => Str ; n : Number} =
|
|
||||||
-- \i,me,my,n -> let who = mkNP i me my n P3 Neutr in {
|
|
||||||
-- s = who.s ;
|
|
||||||
-- n = n
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mkNP : (i,me,my : Str) -> Number -> Person -> Gender ->
|
|
||||||
-- {s : NPCase => Str ; a : Agr} = \i,me,my,n,p,g ->
|
|
||||||
-- { s = table {
|
|
||||||
-- NCase Nom => i ;
|
|
||||||
-- NPAcc => me ;
|
|
||||||
-- NCase Gen => my
|
|
||||||
-- } ;
|
|
||||||
-- a = toAgr n p g ;
|
|
||||||
-- };
|
|
||||||
--
|
|
||||||
-- regNP : Str -> Number -> {s : NPCase => Str ; a : Agr} = \that,n ->
|
|
||||||
-- mkNP that that (that + "'s") n P3 Neutr ;
|
|
||||||
--
|
|
||||||
-- regGenitiveS : Str -> Case => Str = \s ->
|
|
||||||
-- table { Gen => genitiveS s; _ => s } ;
|
|
||||||
--
|
|
||||||
-- genitiveS : Str -> Str = \dog ->
|
|
||||||
-- case last dog of {
|
|
||||||
-- "s" => dog + "'" ;
|
|
||||||
-- _ => dog + "'s"
|
|
||||||
-- };
|
|
||||||
--
|
|
||||||
---- We have just a heuristic definition of the indefinite article.
|
|
||||||
---- There are lots of exceptions: consonantic "e" ("euphemism"), consonantic
|
|
||||||
---- "o" ("one-sided"), vocalic "u" ("umbrella").
|
|
||||||
--
|
|
||||||
-- artIndef = pre {
|
|
||||||
-- "eu" | "Eu" | "uni" | "up" => "a" ;
|
|
||||||
-- "un" => "an" ;
|
|
||||||
-- "a" | "e" | "i" | "o" | "A" | "E" | "I" | "O" => "an" ;
|
|
||||||
-- "SMS" | "sms" => "an" ; ---
|
|
||||||
-- _ => "a"
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- artDef = "the" ;
|
|
||||||
--
|
|
||||||
---- For $Verb$.
|
|
||||||
--
|
|
||||||
-- Verb : Type = {
|
|
||||||
-- s : VForm => Str ;
|
|
||||||
-- isRefl : Bool
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- param
|
|
||||||
-- CPolarity =
|
|
||||||
-- CPos
|
|
||||||
-- | CNeg Bool ; -- contracted or not
|
|
||||||
--
|
|
||||||
-- oper
|
|
||||||
-- contrNeg : Bool -> Polarity -> CPolarity = \b,p -> case p of {
|
|
||||||
-- Pos => CPos ;
|
|
||||||
-- Neg => CNeg b
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- VerbForms : Type =
|
|
||||||
-- Tense => Anteriority => CPolarity => Order => Agr =>
|
|
||||||
-- {aux, adv, fin, inf : Str} ; -- would, not, sleeps, slept
|
|
||||||
--
|
|
||||||
-- VP : Type = {
|
|
||||||
-- s : VerbForms ;
|
|
||||||
-- prp : Str ; -- present participle
|
|
||||||
-- ptp : Str ; -- past participle
|
|
||||||
-- inf : Str ; -- the infinitive form ; VerbForms would be the logical place
|
|
||||||
-- ad : Str ; -- sentence adverb
|
|
||||||
-- s2 : Agr => Str -- complement
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
--
|
|
||||||
-- SlashVP = VP ** {c2 : Str} ;
|
|
||||||
--
|
|
||||||
-- predVc : (Verb ** {c2 : Str}) -> SlashVP = \verb ->
|
|
||||||
-- predV verb ** {c2 = verb.c2} ;
|
|
||||||
--
|
|
||||||
-- predV : Verb -> VP = \verb -> {
|
|
||||||
-- s = \\t,ant,b,ord,agr =>
|
|
||||||
-- let
|
|
||||||
-- inf = verb.s ! VInf ;
|
|
||||||
-- fin = presVerb verb agr ;
|
|
||||||
-- part = verb.s ! VPPart ;
|
|
||||||
-- in
|
|
||||||
-- case <t,ant,b,ord> of {
|
|
||||||
-- <Pres,Simul,CPos,ODir> => vff fin [] ;
|
|
||||||
-- <Pres,Simul,CPos,OQuest> => vf (does agr) inf ;
|
|
||||||
-- <Pres,Anter,CPos,_> => vf (have agr) part ; --# notpresent
|
|
||||||
-- <Pres,Anter,CNeg c,_> => vfn c (have agr) (havent agr) part ; --# notpresent
|
|
||||||
-- <Past,Simul,CPos,ODir> => vff (verb.s ! VPast) [] ; --# notpresent
|
|
||||||
-- <Past,Simul,CPos,OQuest> => vf "did" inf ; --# notpresent
|
|
||||||
-- <Past,Simul,CNeg c,_> => vfn c "did" "didn't" inf ; --# notpresent
|
|
||||||
-- <Past,Anter,CPos,_> => vf "had" part ; --# notpresent
|
|
||||||
-- <Past,Anter,CNeg c,_> => vfn c "had" "hadn't" part ; --# notpresent
|
|
||||||
-- <Fut, Simul,CPos,_> => vf "will" inf ; --# notpresent
|
|
||||||
-- <Fut, Simul,CNeg c,_> => vfn c "will" "won't" inf ; --# notpresent
|
|
||||||
-- <Fut, Anter,CPos,_> => vf "will" ("have" ++ part) ; --# notpresent
|
|
||||||
-- <Fut, Anter,CNeg c,_> => vfn c "will" "won't"("have" ++ part) ; --# notpresent
|
|
||||||
-- <Cond,Simul,CPos,_> => vf "would" inf ; --# notpresent
|
|
||||||
-- <Cond,Simul,CNeg c,_> => vfn c "would" "wouldn't" inf ; --# notpresent
|
|
||||||
-- <Cond,Anter,CPos,_> => vf "would" ("have" ++ part) ; --# notpresent
|
|
||||||
-- <Cond,Anter,CNeg c,_> => vfn c "would" "wouldn't" ("have" ++ part) ; --# notpresent
|
|
||||||
-- <Pres,Simul,CNeg c,_> => vfn c (does agr) (doesnt agr) inf
|
|
||||||
-- } ;
|
|
||||||
-- prp = verb.s ! VPresPart ;
|
|
||||||
-- ptp = verb.s ! VPPart ;
|
|
||||||
-- inf = verb.s ! VInf ;
|
|
||||||
-- ad = [] ;
|
|
||||||
-- s2 = \\a => if_then_Str verb.isRefl (reflPron ! a) []
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- predAux : Aux -> VP = \verb -> {
|
|
||||||
-- s = \\t,ant,cb,ord,agr =>
|
|
||||||
-- let
|
|
||||||
-- b = case cb of {
|
|
||||||
-- CPos => Pos ;
|
|
||||||
-- _ => Neg
|
|
||||||
-- } ;
|
|
||||||
-- inf = verb.inf ;
|
|
||||||
-- fin = verb.pres ! b ! agr ;
|
|
||||||
-- finp = verb.pres ! Pos ! agr ;
|
|
||||||
-- part = verb.ppart ;
|
|
||||||
-- in
|
|
||||||
-- case <t,ant,cb,ord> of {
|
|
||||||
-- <Pres,Anter,CPos,_> => vf (have agr) part ; --# notpresent
|
|
||||||
-- <Pres,Anter,CNeg c,_> => vfn c (have agr) (havent agr) part ; --# notpresent
|
|
||||||
-- <Past,Simul,CPos, _> => vf (verb.past ! b ! agr) [] ; --# notpresent
|
|
||||||
-- <Past,Simul,CNeg c, _> => vfn c (verb.past!Pos!agr)(verb.past!Neg!agr) [] ; --# notpresent
|
|
||||||
-- <Past,Anter,CPos,_> => vf "had" part ; --# notpresent
|
|
||||||
-- <Past,Anter,CNeg c,_> => vfn c "had" "hadn't" part ; --# notpresent
|
|
||||||
-- <Fut, Simul,CPos,_> => vf "will" inf ; --# notpresent
|
|
||||||
-- <Fut, Simul,CNeg c,_> => vfn c "will" "won't" inf ; --# notpresent
|
|
||||||
-- <Fut, Anter,CPos,_> => vf "will" ("have" ++ part) ; --# notpresent
|
|
||||||
-- <Fut, Anter,CNeg c,_> => vfn c "will" "won't"("have" ++ part) ; --# notpresent
|
|
||||||
-- <Cond,Simul,CPos,_> => vf "would" inf ; --# notpresent
|
|
||||||
-- <Cond,Simul,CNeg c,_> => vfn c "would" "wouldn't" inf ; --# notpresent
|
|
||||||
-- <Cond,Anter,CPos,_> => vf "would" ("have" ++ part) ; --# notpresent
|
|
||||||
-- <Cond,Anter,CNeg c,_> => vfn c "would" "wouldn't" ("have" ++ part) ; --# notpresent
|
|
||||||
-- <Pres,Simul,CPos, _> => vf fin [] ;
|
|
||||||
-- <Pres,Simul,CNeg c, _> => vfn c finp fin []
|
|
||||||
-- } ;
|
|
||||||
-- prp = verb.prpart ;
|
|
||||||
-- ptp = verb.ppart ;
|
|
||||||
-- inf = verb.inf ;
|
|
||||||
-- ad = [] ;
|
|
||||||
-- s2 = \\_ => []
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- vff : Str -> Str -> {aux, adv, fin, inf : Str} = \x,y ->
|
|
||||||
-- {aux = [] ; adv = [] ; fin = x ; inf = y} ;
|
|
||||||
--
|
|
||||||
-- vf : Str -> Str -> {aux, adv, fin, inf : Str} = \x,y -> vfn True x x y ;
|
|
||||||
--
|
|
||||||
-- vfn : Bool -> Str -> Str -> Str -> {aux, fin, adv, inf : Str} =
|
|
||||||
-- \contr,x,y,z ->
|
|
||||||
-- case contr of {
|
|
||||||
-- True => {aux = y ; adv = [] ; fin = [] ; inf = z} ;
|
|
||||||
-- False => {aux = x ; adv = "not" ; fin = [] ; inf = z}
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- insertObj : (Agr => Str) -> VP -> VP = \obj,vp -> {
|
|
||||||
-- s = vp.s ;
|
|
||||||
-- prp = vp.prp ;
|
|
||||||
-- ptp = vp.ptp ;
|
|
||||||
-- inf = vp.inf ;
|
|
||||||
-- ad = vp.ad ;
|
|
||||||
-- s2 = \\a => vp.s2 ! a ++ obj ! a
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- insertObjPre : (Agr => Str) -> VP -> VP = \obj,vp -> {
|
|
||||||
-- s = vp.s ;
|
|
||||||
-- prp = vp.prp ;
|
|
||||||
-- ptp = vp.ptp ;
|
|
||||||
-- inf = vp.inf ;
|
|
||||||
-- ad = vp.ad ;
|
|
||||||
-- s2 = \\a => obj ! a ++ vp.s2 ! a
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- insertObjc : (Agr => Str) -> SlashVP -> SlashVP = \obj,vp ->
|
|
||||||
-- insertObj obj vp ** {c2 = vp.c2} ;
|
|
||||||
--
|
|
||||||
----- The adverb should be before the finite verb.
|
|
||||||
--
|
|
||||||
-- insertAdV : Str -> VP -> VP = \ad,vp -> {
|
|
||||||
-- s = vp.s ;
|
|
||||||
-- prp = vp.prp ;
|
|
||||||
-- ptp = vp.ptp ;
|
|
||||||
-- inf = vp.inf ;
|
|
||||||
-- ad = vp.ad ++ ad ;
|
|
||||||
-- s2 = \\a => vp.s2 ! a
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
----
|
|
||||||
--
|
|
||||||
-- predVV : {s : VVForm => Str ; typ : VVType} -> VP = \verb ->
|
|
||||||
-- let verbs = verb.s
|
|
||||||
-- in
|
|
||||||
-- case verb.typ of {
|
|
||||||
-- VVAux => predAux {
|
|
||||||
-- pres = table {
|
|
||||||
-- Pos => \\_ => verbs ! VVF VPres ;
|
|
||||||
-- Neg => \\_ => verbs ! VVPresNeg
|
|
||||||
-- } ;
|
|
||||||
-- past = table { --# notpresent
|
|
||||||
-- Pos => \\_ => verbs ! VVF VPast ; --# notpresent
|
|
||||||
-- Neg => \\_ => verbs ! VVPastNeg --# notpresent
|
|
||||||
-- } ; --# notpresent
|
|
||||||
-- inf = verbs ! VVF VInf ;
|
|
||||||
-- ppart = verbs ! VVF VPPart ;
|
|
||||||
-- prpart = verbs ! VVF VPresPart ;
|
|
||||||
-- } ;
|
|
||||||
-- _ => predV {s = \\vf => verbs ! VVF vf ; isRefl = False}
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- presVerb : {s : VForm => Str} -> Agr -> Str = \verb ->
|
|
||||||
-- agrVerb (verb.s ! VPres) (verb.s ! VInf) ;
|
|
||||||
--
|
|
||||||
-- infVP : VVType -> VP -> Agr -> Str = \typ,vp,a ->
|
|
||||||
-- vp.ad ++
|
|
||||||
-- case typ of {
|
|
||||||
-- VVAux => vp.inf ;
|
|
||||||
-- VVInf => "to" ++ vp.inf ;
|
|
||||||
-- _ => vp.prp
|
|
||||||
-- } ++
|
|
||||||
-- vp.s2 ! a ;
|
|
||||||
--
|
|
||||||
-- agrVerb : Str -> Str -> Agr -> Str = \has,have,agr ->
|
|
||||||
-- case agr of {
|
|
||||||
-- AgP3Sg _ => has ;
|
|
||||||
-- _ => have
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- have = agrVerb "has" "have" ;
|
|
||||||
-- havent = agrVerb "hasn't" "haven't" ;
|
|
||||||
-- does = agrVerb "does" "do" ;
|
|
||||||
-- doesnt = agrVerb "doesn't" "don't" ;
|
|
||||||
--
|
|
||||||
-- Aux = {
|
|
||||||
-- pres : Polarity => Agr => Str ;
|
|
||||||
-- past : Polarity => Agr => Str ; --# notpresent
|
|
||||||
-- inf,ppart,prpart : Str
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- auxBe : Aux = {
|
|
||||||
-- pres = \\b,a => case <b,a> of {
|
|
||||||
-- <Pos,AgP1 Sg> => "am" ;
|
|
||||||
-- <Neg,AgP1 Sg> => ["am not"] ; --- am not I
|
|
||||||
-- _ => agrVerb (posneg b "is") (posneg b "are") a
|
|
||||||
-- } ;
|
|
||||||
-- past = \\b,a => case a of { --# notpresent
|
|
||||||
-- AgP1 Sg | AgP3Sg _ => posneg b "was" ; --# notpresent
|
|
||||||
-- _ => (posneg b "were") --# notpresent
|
|
||||||
-- } ; --# notpresent
|
|
||||||
-- inf = "be" ;
|
|
||||||
-- ppart = "been" ;
|
|
||||||
-- prpart = "being"
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- posneg : Polarity -> Str -> Str = \p,s -> case p of {
|
|
||||||
-- Pos => s ;
|
|
||||||
-- Neg => s + "n't"
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- conjThat : Str = "that" ;
|
|
||||||
--
|
|
||||||
-- reflPron : Agr => Str = table {
|
|
||||||
-- AgP1 Sg => "myself" ;
|
|
||||||
-- AgP2 Sg => "yourself" ;
|
|
||||||
-- AgP3Sg Masc => "himself" ;
|
|
||||||
-- AgP3Sg Fem => "herself" ;
|
|
||||||
-- AgP3Sg Neutr => "itself" ;
|
|
||||||
-- AgP1 Pl => "ourselves" ;
|
|
||||||
-- AgP2 Pl => "yourselves" ;
|
|
||||||
-- AgP3Pl => "themselves"
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
---- For $Sentence$.
|
|
||||||
--
|
|
||||||
-- Clause : Type = {
|
|
||||||
-- s : Tense => Anteriority => CPolarity => Order => Str
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mkClause : Str -> Agr -> VP -> Clause =
|
|
||||||
-- \subj,agr,vp -> {
|
|
||||||
-- s = \\t,a,b,o =>
|
|
||||||
-- let
|
|
||||||
-- verb = vp.s ! t ! a ! b ! o ! agr ;
|
|
||||||
-- compl = vp.s2 ! agr
|
|
||||||
-- in
|
|
||||||
-- case o of {
|
|
||||||
-- ODir => subj ++ verb.aux ++ verb.adv ++ vp.ad ++ verb.fin ++ verb.inf ++ compl ;
|
|
||||||
-- OQuest => verb.aux ++ subj ++ verb.adv ++ vp.ad ++ verb.fin ++ verb.inf ++ compl
|
|
||||||
-- }
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
--
|
|
||||||
---- For $Numeral$.
|
|
||||||
--
|
|
||||||
-- mkNum : Str -> Str -> Str -> Str -> {s : DForm => CardOrd => Case => Str} =
|
|
||||||
-- \two, twelve, twenty, second ->
|
|
||||||
-- {s = table {
|
|
||||||
-- unit => table {NCard => regGenitiveS two ; NOrd => regGenitiveS second} ;
|
|
||||||
-- teen => \\c => mkCard c twelve ;
|
|
||||||
-- ten => \\c => mkCard c twenty
|
|
||||||
-- }
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- regNum : Str -> {s : DForm => CardOrd => Case => Str} =
|
|
||||||
-- \six -> mkNum six (six + "teen") (six + "ty") (regOrd six) ;
|
|
||||||
--
|
|
||||||
-- regCardOrd : Str -> {s : CardOrd => Case => Str} = \ten ->
|
|
||||||
-- {s = table {NCard => regGenitiveS ten ;
|
|
||||||
-- NOrd => regGenitiveS (regOrd ten)} } ;
|
|
||||||
--
|
|
||||||
-- mkCard : CardOrd -> Str -> Case => Str = \o,ten ->
|
|
||||||
-- (regCardOrd ten).s ! o ;
|
|
||||||
--
|
|
||||||
-- regOrd : Str -> Str = \ten ->
|
|
||||||
-- case last ten of {
|
|
||||||
-- "y" => init ten + "ieth" ;
|
|
||||||
-- _ => ten + "th"
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- mkQuestion :
|
|
||||||
-- {s : Str} -> Clause ->
|
|
||||||
-- {s : Tense => Anteriority => CPolarity => QForm => Str} = \wh,cl ->
|
|
||||||
-- {
|
|
||||||
-- s = \\t,a,p =>
|
|
||||||
-- let
|
|
||||||
-- cls = cl.s ! t ! a ! p ;
|
|
||||||
-- why = wh.s
|
|
||||||
-- in table {
|
|
||||||
-- QDir => why ++ cls ! OQuest ;
|
|
||||||
-- QIndir => why ++ cls ! ODir
|
|
||||||
-- }
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
--
|
|
||||||
--}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,75 +1,79 @@
|
|||||||
concrete SentenceHun of Sentence = CatHun ** open Prelude, ResHun in
|
concrete SentenceHun of Sentence = CatHun ** open
|
||||||
{
|
TenseX, ResHun, (AK=AdverbHun), Prelude in {
|
||||||
--{
|
|
||||||
--
|
flags optimize=all_subs ;
|
||||||
-- flags optimize=all_subs ;
|
|
||||||
--
|
lin
|
||||||
-- lin
|
|
||||||
--
|
--2 Clauses
|
||||||
-- PredVP np vp = mkClause (np.s ! npNom) np.a vp ;
|
|
||||||
--
|
-- : NP -> VP -> Cl
|
||||||
-- PredSCVP sc vp = mkClause sc.s (agrP3 Sg) vp ;
|
PredVP = predVP ;
|
||||||
--
|
|
||||||
-- ImpVP vp = {
|
-- : SC -> VP -> Cl ; -- that she goes is good (Saeed p. 94)
|
||||||
-- s = \\pol,n =>
|
--PredSCVP sc vp = ;
|
||||||
-- let
|
|
||||||
-- agr = AgP2 (numImp n) ;
|
--2 Clauses missing object noun phrases
|
||||||
-- verb = infVP VVAux vp agr ;
|
-- : NP -> VPSlash -> ClSlash ;
|
||||||
-- dont = case pol of {
|
SlashVP np vps = predVP np (vps ** {s = vps.s ! Def ; obj = []}) ;
|
||||||
-- CNeg True => "don't" ;
|
{-
|
||||||
-- CNeg False => "do" ++ "not" ;
|
-- : ClSlash -> Adv -> ClSlash ; -- (whom) he sees today
|
||||||
-- _ => []
|
AdvSlash cls adv = cls ** insertAdv adv cls ;
|
||||||
-- }
|
|
||||||
-- in
|
-- SlashPrep : Cl -> Prep -> ClSlash ; -- (with whom) he walks
|
||||||
-- dont ++ verb
|
|
||||||
-- } ;
|
-- : NP -> VS -> SSlash -> ClSlash ; -- (whom) she says that he loves
|
||||||
--
|
-- SlashVS np vs ss = {} ;
|
||||||
-- SlashVP np vp =
|
|
||||||
-- mkClause (np.s ! npNom) np.a vp ** {c2 = vp.c2} ;
|
|
||||||
--
|
-- : Temp -> Pol -> ClSlash -> SSlash ; -- (that) she had not seen
|
||||||
-- AdvSlash slash adv = {
|
UseSlash t p cls = {
|
||||||
-- s = \\t,a,b,o => slash.s ! t ! a ! b ! o ++ adv.s ;
|
} ;
|
||||||
-- c2 = slash.c2
|
|
||||||
-- } ;
|
--2 Imperatives
|
||||||
--
|
-- : VP -> Imp ;
|
||||||
-- SlashPrep cl prep = cl ** {c2 = prep.s} ;
|
ImpVP vp = {s = \\num,pol => linVP (VImp num pol) Statement vp} ;
|
||||||
--
|
|
||||||
-- SlashVS np vs slash =
|
--2 Embedded sentences
|
||||||
-- mkClause (np.s ! npNom) np.a
|
|
||||||
-- (insertObj (\\_ => conjThat ++ slash.s) (predV vs)) **
|
-- : S -> SC ;
|
||||||
-- {c2 = slash.c2} ;
|
EmbedS s = {s = s.s ! True} ; -- choose subordinate
|
||||||
--
|
|
||||||
-- EmbedS s = {s = conjThat ++ s.s} ;
|
-- : QS -> SC ;
|
||||||
-- EmbedQS qs = {s = qs.s ! QIndir} ;
|
-- EmbedQS qs = { } ;
|
||||||
-- EmbedVP vp = {s = infVP VVInf vp (agrP3 Sg)} ; --- agr
|
|
||||||
--
|
-- : VP -> SC ;
|
||||||
-- UseCl t p cl = {
|
EmbedVP vp = {s = infVP vp} ;
|
||||||
-- s = t.s ++ p.s ++ cl.s ! t.t ! t.a ! ctr p.p ! ODir
|
-}
|
||||||
-- } ;
|
--2 Sentences
|
||||||
-- UseQCl t p cl = {
|
|
||||||
-- s = \\q => t.s ++ p.s ++ cl.s ! t.t ! t.a ! ctr p.p ! q
|
-- : Temp -> Pol -> Cl -> S ;
|
||||||
-- } ;
|
UseCl t p cl = {
|
||||||
-- UseRCl t p cl = {
|
s = t.s ++ p.s ++ cl.s ! t.t ! t.a ! p.p
|
||||||
-- s = \\r => t.s ++ p.s ++ cl.s ! t.t ! t.a ! ctr p.p ! r ;
|
} ;
|
||||||
-- c = cl.c
|
|
||||||
-- } ;
|
-- : Temp -> Pol -> QCl -> QS ;
|
||||||
-- UseSlash t p cl = {
|
UseQCl t p cl = {s = t.s ++ p.s ++ cl.s ! t.t ! t.a ! p.p} ;
|
||||||
-- s = t.s ++ p.s ++ cl.s ! t.t ! t.a ! ctr p.p ! ODir ;
|
|
||||||
-- c2 = cl.c2
|
-- : Temp -> Pol -> RCl -> RS ;
|
||||||
-- } ;
|
UseRCl t p cl = {s = \\n,c => t.s ++ p.s ++ cl.s ! t.t ! t.a ! p.p ! n ! c} ;
|
||||||
--
|
|
||||||
-- AdvS a s = {s = a.s ++ s.s} ;
|
-- AdvS : Adv -> S -> S ; -- then I will go home
|
||||||
-- ExtAdvS a s = {s = a.s ++ "," ++ s.s} ;
|
AdvS = advS "" ;
|
||||||
--
|
|
||||||
-- SSubjS a s b = {s = a.s ++ s.s ++ b.s} ;
|
-- ExtAdvS : Adv -> S -> S ; -- next week, I will go home
|
||||||
--
|
ExtAdvS = advS (SOFT_BIND ++ ",");
|
||||||
-- RelS s r = {s = s.s ++ "," ++ r.s ! agrP3 Sg} ;
|
|
||||||
--
|
-- : S -> Subj -> S -> S ;
|
||||||
-- oper
|
-- SSubjS s1 subj s2 = AdvS (AK.SubjS subj s2) s1 ;
|
||||||
-- ctr : CPolarity -> CPolarity = \x -> x ;
|
|
||||||
----- ctr = contrNeg True ; -- contracted negations
|
-- : S -> RS -> S ; -- she sleeps, which is good
|
||||||
--
|
-- RelS sent rs = advS {s = rs.s ! Sg3 Masc ++ SOFT_BIND ++ ","} sent ;
|
||||||
--}
|
|
||||||
--
|
oper
|
||||||
|
|
||||||
|
advS : (comma : Str) -> SS -> S -> S = \comma,a,sent -> sent ** {
|
||||||
|
s = a.s ++ comma ++ sent.s
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,148 +1,229 @@
|
|||||||
concrete StructuralHun of Structural = CatHun **
|
concrete StructuralHun of Structural = CatHun **
|
||||||
open MorphoHun, ResHun, ParadigmsHun,
|
open Prelude, ResHun, ParadigmsHun in {
|
||||||
(C = ConstructX), Prelude in
|
{-
|
||||||
{
|
-------
|
||||||
--{
|
-- Ad*
|
||||||
--
|
|
||||||
-- flags optimize=all ;
|
lin almost_AdA = mkAdA "" ;
|
||||||
--
|
lin almost_AdN = ss "" ;
|
||||||
-- lin
|
lin at_least_AdN = ss "" ;
|
||||||
-- above_Prep = mkPrep "above" ;
|
lin at_most_AdN = ss "" ;
|
||||||
-- after_Prep = mkPrep "after" ;
|
lin so_AdA = mkAdA "" ;
|
||||||
-- all_Predet = ss "all" ;
|
lin too_AdA = mkAdA "" ;
|
||||||
-- almost_AdA = mkAdA "almost" ;
|
lin very_AdA = mkAdA "" ;
|
||||||
-- almost_AdN = mkAdN "almost" ;
|
-}
|
||||||
-- although_Subj = ss "although" ;
|
lin as_CAdv = {s = "olyan" ; p = "mint"} ;
|
||||||
-- always_AdV = mkAdV "always" ;
|
{-
|
||||||
-- and_Conj = mkConj "and" ;
|
lin less_CAdv = { s = "" ; p = [] } ;
|
||||||
-- because_Subj = ss "because" ;
|
lin more_CAdv = { s = "" ; p = [] } ;
|
||||||
-- before_Prep = mkPrep "before" ;
|
lin how_IAdv = ss "" :
|
||||||
-- behind_Prep = mkPrep "behind" ;
|
|
||||||
-- between_Prep = mkPrep "between" ;
|
lin how8much_IAdv = ss "" ;
|
||||||
-- both7and_DConj = mkConj "both" "and";
|
lin when_IAdv = ss "" ;
|
||||||
-- but_PConj = ss "but" ;
|
lin where_IAdv = ss "" :
|
||||||
-- by8agent_Prep = mkPrep "by" ;
|
lin why_IAdv = ss "" :
|
||||||
-- by8means_Prep = mkPrep "by" ;
|
|
||||||
-- can8know_VV, can_VV = {
|
lin always_AdV = ss "" ;
|
||||||
-- s = table {
|
|
||||||
-- VVF VInf => ["be able to"] ;
|
lin everywhere_Adv = ss "" ;
|
||||||
-- VVF VPres => "can" ;
|
lin here7from_Adv = ss "" ;
|
||||||
-- VVF VPPart => ["been able to"] ;
|
lin here7to_Adv = ss "" ;
|
||||||
-- VVF VPresPart => ["being able to"] ;
|
lin here_Adv = ss "" ;
|
||||||
-- VVF VPast => "could" ; --# notpresent
|
lin quite_Adv = ss "" ;
|
||||||
-- VVPastNeg => "couldn't" ; --# notpresent
|
lin somewhere_Adv = ss "" ;
|
||||||
-- VVPresNeg => "can't"
|
lin there7from_Adv = ss "" ;
|
||||||
-- } ;
|
lin there7to_Adv = ss "" ;
|
||||||
-- typ = VVAux
|
lin there_Adv = ss "" ;
|
||||||
-- } ;
|
-}
|
||||||
-- during_Prep = mkPrep "during" ;
|
-------
|
||||||
-- either7or_DConj = mkConj "either" "or" singular ;
|
-- Conj
|
||||||
-- everybody_NP = regNP "everybody" singular ;
|
|
||||||
-- every_Det = mkDeterminer singular "every" ;
|
lin and_Conj = mkConj "és" Pl ;
|
||||||
-- everything_NP = regNP "everything" singular ;
|
lin or_Conj = mkConj "vagy" Sg ;
|
||||||
-- everywhere_Adv = mkAdv "everywhere" ;
|
-- lin if_then_Conj =
|
||||||
-- few_Det = mkDeterminer plural "few" ;
|
-- lin both7and_DConj =
|
||||||
----- first_Ord = ss "first" ; DEPRECATED
|
lin either7or_DConj = mkDConj "vagy" "vagy" Sg ;
|
||||||
-- for_Prep = mkPrep "for" ;
|
{-
|
||||||
-- from_Prep = mkPrep "from" ;
|
lin but_PConj = ss "" ;
|
||||||
-- he_Pron = mkPron "he" "him" "his" "his" singular P3 masculine ;
|
lin otherwise_PConj = ss "" ;
|
||||||
-- here_Adv = mkAdv "here" ;
|
lin therefore_PConj = ss "" ;
|
||||||
-- here7to_Adv = mkAdv ["to here"] ;
|
|
||||||
-- here7from_Adv = mkAdv ["from here"] ;
|
-----------------
|
||||||
-- how_IAdv = ss "how" ;
|
-- *Det and Quant
|
||||||
-- how8much_IAdv = ss "how much" ;
|
|
||||||
-- how8many_IDet = mkDeterminer plural ["how many"] ;
|
|
||||||
-- if_Subj = ss "if" ;
|
lin how8many_IDet = ;
|
||||||
-- in8front_Prep = mkPrep ["in front of"] ;
|
|
||||||
-- i_Pron = mkPron "I" "me" "my" "mine" singular P1 human ;
|
lin all_Predet = {s = ""} ;
|
||||||
-- in_Prep = mkPrep "in" ;
|
lin not_Predet = {s = ""} ;
|
||||||
-- it_Pron = mkPron "it" "it" "its" "its" singular P3 nonhuman ;
|
lin only_Predet = {s = ""} ;
|
||||||
-- less_CAdv = C.mkCAdv "less" "than" ;
|
lin most_Predet = {s = ""} ;
|
||||||
-- many_Det = mkDeterminer plural "many" ;
|
-}
|
||||||
-- more_CAdv = C.mkCAdv "more" "than" ;
|
|
||||||
-- most_Predet = ss "most" ;
|
--lin every_Det =
|
||||||
-- much_Det = mkDeterminer singular "much" ;
|
lin few_Det = mkDet "kevés" Def Sg ; -- TODO check
|
||||||
-- must_VV = {
|
lin many_Det = mkDet "sok" Def Sg ; -- TODO check
|
||||||
-- s = table {
|
--lin much_Det =
|
||||||
-- VVF VInf => ["have to"] ;
|
|
||||||
-- VVF VPres => "must" ;
|
lin somePl_Det = mkDet "némely" Indef Pl ;
|
||||||
-- VVF VPPart => ["had to"] ;
|
lin someSg_Det = mkDet "némely" Indef Sg ;
|
||||||
-- VVF VPresPart => ["having to"] ;
|
--lin no_Quant =
|
||||||
-- VVF VPast => ["had to"] ; --# notpresent
|
|
||||||
-- VVPastNeg => ["hadn't to"] ; --# notpresent
|
lin that_Quant = mkQuant "az" "az" ;
|
||||||
-- VVPresNeg => "mustn't"
|
lin this_Quant = mkQuant "ez" "ez" ;
|
||||||
-- } ;
|
{-lin which_IQuant =
|
||||||
-- typ = VVAux
|
|
||||||
-- } ;
|
|
||||||
-----b no_Phr = ss "no" ;
|
-----
|
||||||
-- no_Utt = ss "no" ;
|
-- NP
|
||||||
-- on_Prep = mkPrep "on" ;
|
|
||||||
------ one_Quant = mkDeterminer singular "one" ; -- DEPRECATED
|
lin everybody_NP = defNP "" N.NumPl ;
|
||||||
-- only_Predet = ss "only" ;
|
lin everything_NP = defNP "" N.NumSg ;
|
||||||
-- or_Conj = mkConj "or" singular ;
|
lin nobody_NP = mkVerb; ""
|
||||||
-- otherwise_PConj = ss "otherwise" ;
|
lin nothing_NP = defNP "" N.NumSg ;
|
||||||
-- part_Prep = mkPrep "of" ;
|
lin somebody_NP = defNP "" N.NumSg ;
|
||||||
-- please_Voc = ss "please" ;
|
-}
|
||||||
-- possess_Prep = mkPrep "of" ;
|
lin something_NP = defNP "valami" Sg ;
|
||||||
-- quite_Adv = mkAdv "quite" ;
|
|
||||||
-- she_Pron = mkPron "she" "her" "her" "hers" singular P3 feminine ;
|
-------
|
||||||
-- so_AdA = mkAdA "so" ;
|
-- Prep
|
||||||
-- somebody_NP = regNP "somebody" singular ;
|
|
||||||
-- someSg_Det = mkDeterminer singular "some" ;
|
-- List of postpositions requiring case:
|
||||||
-- somePl_Det = mkDeterminer plural "some" ;
|
-- https://en.wiktionary.org/wiki/Appendix:Hungarian_postpositions#Postpositions_Requiring_Case
|
||||||
-- something_NP = regNP "something" singular ;
|
lin above_Prep = mkPrep "fölött" ;
|
||||||
-- somewhere_Adv = mkAdv "somewhere" ;
|
-- lin after_Prep = mkPrep ""
|
||||||
-- that_Quant = mkQuant "that" "those" ;
|
-- lin before_Prep = mkPrep "" ;
|
||||||
-- there_Adv = mkAdv "there" ;
|
-- lin behind_Prep = mkPrep "" ;
|
||||||
-- there7to_Adv = mkAdv "there" ;
|
-- lin between_Prep = = mkPrep "" ;
|
||||||
-- there7from_Adv = mkAdv ["from there"] ;
|
lin by8agent_Prep = mkPrep "által" ;
|
||||||
-- therefore_PConj = ss "therefore" ;
|
lin by8means_Prep = casePrep Ins ;
|
||||||
-- they_Pron = mkPron "they" "them" "their" "theirs" plural P3 human ;
|
-- lin during_Prep = mkPrep ;
|
||||||
-- this_Quant = mkQuant "this" "these" ;
|
-- lin except_Prep = mkPrep ;
|
||||||
-- through_Prep = mkPrep "through" ;
|
-- lin for_Prep = mkPrep "" ;
|
||||||
-- too_AdA = mkAdA "too" ;
|
-- lin from_Prep = mkPrep "" ;
|
||||||
-- to_Prep = mkPrep "to" ;
|
-- lin in8front_Prep = mkPrep "" ;
|
||||||
-- under_Prep = mkPrep "under" ;
|
lin in_Prep = casePrep Ine ;
|
||||||
-- very_AdA = mkAdA "very" ;
|
lin on_Prep = casePrep Ade ;
|
||||||
-- want_VV = mkVV (regV "want") ;
|
-- lin part_Prep = casePrep ;
|
||||||
-- we_Pron = mkPron "we" "us" "our" "ours" plural P1 human ;
|
-- lin possess_Prep = -- Suffix attaches to possessee, not possessor
|
||||||
-- whatPl_IP = mkIP "what" "what" "what's" plural ;
|
-- lin through_Prep = mkPrep ;
|
||||||
-- whatSg_IP = mkIP "what" "what" "what's" singular ;
|
lin to_Prep = casePrep All ;
|
||||||
-- when_IAdv = ss "when" ;
|
lin under_Prep = mkPrep "alatt" ;
|
||||||
-- when_Subj = ss "when" ;
|
-- lin with_Prep = mkPrep "" ;
|
||||||
-- where_IAdv = ss "where" ;
|
-- lin without_Prep = mkPrep "" ;
|
||||||
-- which_IQuant = {s = \\_ => "which"} ;
|
|
||||||
-----b whichPl_IDet = mkDeterminer plural ["which"] ;
|
|
||||||
-----b whichSg_IDet = mkDeterminer singular ["which"] ;
|
-------
|
||||||
-- whoPl_IP = mkIP "who" "whom" "whose" plural ;
|
-- Pron
|
||||||
-- whoSg_IP = mkIP "who" "whom" "whose" singular ;
|
|
||||||
-- why_IAdv = ss "why" ;
|
-- Pronouns are closed class, no constructor in ParadigmsHun.
|
||||||
-- without_Prep = mkPrep "without" ;
|
-- it_Pron =
|
||||||
-- with_Prep = mkPrep "with" ;
|
i_Pron = emptyNP ** {
|
||||||
-----b yes_Phr = ss "yes" ;
|
s = caseTable "én" "engem" "nekem"
|
||||||
-- yes_Utt = ss "yes" ;
|
"belém" "bennem" "belőlem" -- inner locatives
|
||||||
-- youSg_Pron = mkPron "you" "you" "your" "yours" singular P2 human ;
|
"hozzám" "nálam" "tőlem" -- outer locatives
|
||||||
-- youPl_Pron = mkPron "you" "you" "your" "yours" plural P2 human ;
|
"rám" "rajtam" "rólam" -- outer locatives
|
||||||
-- youPol_Pron = mkPron "you" "you" "your" "yours" singular P2 human ;
|
"értem" -- Causative
|
||||||
--
|
"velem" -- Instrumental
|
||||||
-- not_Predet = {s = "not" ; lock_Predet = <>} ;
|
nonExist ; -- Translative
|
||||||
-- no_Quant = mkQuant "no" "no" "none" "none" ;
|
agr = <P1,Sg> ;
|
||||||
-- if_then_Conj = mkConj "if" "then" singular ;
|
objdef = Def ;
|
||||||
-- nobody_NP = regNP "nobody" singular ;
|
poss = "em" ;
|
||||||
-- nothing_NP = regNP "nothing" singular ;
|
} ;
|
||||||
--
|
youPol_Pron,
|
||||||
-- at_least_AdN = mkAdN "at least" ;
|
youSg_Pron = emptyNP ** {
|
||||||
-- at_most_AdN = mkAdN "at most" ;
|
s = caseTable "te" "teged" "neked"
|
||||||
--
|
"beléd" "benned" "belőled"
|
||||||
-- except_Prep = mkPrep "except" ;
|
"hozzád" "nálad" "tőled"
|
||||||
--
|
"rád" "rajtad" "rólad"
|
||||||
-- as_CAdv = C.mkCAdv "as" "as" ;
|
"érted" -- Causative
|
||||||
--
|
"veled" -- Instrumental
|
||||||
-- have_V2 = dirV2 (mk5V "have" "has" "had" "had" "having") ;
|
nonExist ; -- Translative
|
||||||
-- that_Subj = ss "that" ;
|
agr = <P2,Sg> ;
|
||||||
-- lin language_title_Utt = ss "Hunlish" ;
|
objdef = Def ;
|
||||||
--
|
poss = "d" ;
|
||||||
--}
|
} ;
|
||||||
--
|
he_Pron,
|
||||||
|
she_Pron = emptyNP ** {
|
||||||
|
s = caseTable "ő" "őt" "neki"
|
||||||
|
"belé" "benne" "belőle"
|
||||||
|
"hozzá" "nála" "tőle"
|
||||||
|
"rá" "rajta" "róla"
|
||||||
|
"érte" -- Causative
|
||||||
|
"vele" -- Instrumental
|
||||||
|
nonExist ; -- Translative
|
||||||
|
objdef = Def ;
|
||||||
|
} ;
|
||||||
|
we_Pron = emptyNP ** {
|
||||||
|
s = caseTable "mi" "minket" "nekünk"
|
||||||
|
"belénk" "bennünk" "belőlünk"
|
||||||
|
"hozzánk" "nálunk" "tőlünk"
|
||||||
|
"ránk" "rajtunk" "rólunk"
|
||||||
|
"értünk" -- Causative
|
||||||
|
"velünk" -- Instrumental
|
||||||
|
nonExist ; -- Translative
|
||||||
|
agr = <P1,Pl> ;
|
||||||
|
objdef = Def ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
youPl_Pron = emptyNP ** {
|
||||||
|
s = caseTable "ti" "titeket" "nektek"
|
||||||
|
"belétek" "bennetek" "belőletek"
|
||||||
|
"hozzátok" "nálatok" "tőletek"
|
||||||
|
"rátok" "rajtatok" "rólatok"
|
||||||
|
"értetek" -- Causative
|
||||||
|
"veletek" -- Instrumental
|
||||||
|
nonExist ; -- Translative
|
||||||
|
agr = <P2,Pl> ;
|
||||||
|
objdef = Def ;
|
||||||
|
} ;
|
||||||
|
they_Pron = emptyNP ** {
|
||||||
|
s = caseTable "ők" "őket" "nekik"
|
||||||
|
"beléjük" "bennük" "belőlük"
|
||||||
|
"hozzájuk" "náluk" "tőlük"
|
||||||
|
"rájuk" "rajtuk" "róluk"
|
||||||
|
"értük" -- Causative
|
||||||
|
"velük" -- Instrumental
|
||||||
|
nonExist ; -- Translative
|
||||||
|
agr = <P3,Pl> ;
|
||||||
|
objdef = Def ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
--lin whatPl_IP = ;
|
||||||
|
--lin whatSg_IP = :
|
||||||
|
--lin whoPl_IP = ;
|
||||||
|
--lin whoSg_IP = ;
|
||||||
|
|
||||||
|
-------
|
||||||
|
-- Subj
|
||||||
|
|
||||||
|
-- lin although_Subj =
|
||||||
|
-- lin because_Subj =
|
||||||
|
-- lin if_Subj =
|
||||||
|
-- lin that_Subj =
|
||||||
|
-- lin when_Subj =
|
||||||
|
|
||||||
|
|
||||||
|
------
|
||||||
|
-- Utt
|
||||||
|
|
||||||
|
lin language_title_Utt = ss "magyar" ;
|
||||||
|
lin no_Utt = ss "nem" ;
|
||||||
|
lin yes_Utt = ss "igen" ;
|
||||||
|
|
||||||
|
-------
|
||||||
|
-- Verb
|
||||||
|
|
||||||
|
lin have_V2 = datV2 copula ;
|
||||||
|
{-lin can8know_VV = can_VV ; -- can (capacity)
|
||||||
|
lin can_VV = mkVV "" ; -- can (possibility)
|
||||||
|
lin must_VV = mkVV "" ;
|
||||||
|
lin want_VV = mkVV "" subjunctive ;
|
||||||
|
|
||||||
|
------
|
||||||
|
-- Voc
|
||||||
|
|
||||||
|
lin please_Voc = ss "" ;
|
||||||
|
-}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,48 +1,56 @@
|
|||||||
--# -path=.:../abstract:../common
|
concrete SymbolHun of Symbol = CatHun **
|
||||||
|
open Prelude, ResHun, (NH=NounHun) in {
|
||||||
|
|
||||||
concrete SymbolHun of Symbol = CatHun ** open Prelude, ResHun in
|
lin
|
||||||
{
|
|
||||||
--{
|
-- : Symb -> PN ; -- x
|
||||||
--
|
SymbPN i = mkPN i.s ;
|
||||||
--lin
|
|
||||||
-- SymbPN i = {s = addGenitiveS i.s ; g = Neutr} ;
|
-- : Int -> PN ; -- 27
|
||||||
-- IntPN i = {s = addGenitiveS i.s ; g = Neutr} ;
|
IntPN i = mkPN i.s ;
|
||||||
-- FloatPN i = {s = addGenitiveS i.s ; g = Neutr} ;
|
|
||||||
-- NumPN i = {s = i.s ; g = Neutr} ;
|
-- : Float -> PN ; -- 3.14159
|
||||||
-- CNIntNP cn i = {
|
FloatPN i = mkPN i.s ;
|
||||||
-- s = \\c => cn.s ! Sg ! Nom ++ (addGenitiveS i.s) ! npcase2case c ;
|
|
||||||
-- a = agrgP3 Sg cn.g
|
-- : Card -> PN ; -- twelve [as proper name]
|
||||||
-- } ;
|
NumPN i = mkPN (i.s ! Indep) ;
|
||||||
-- CNSymbNP det cn xs = {
|
|
||||||
-- s = \\c => det.s ++ cn.s ! det.n ! Nom ++ (addGenitiveS xs.s) ! npcase2case c ;
|
oper
|
||||||
-- a = agrgP3 det.n cn.g
|
|
||||||
-- } ;
|
mkPN : Str -> NounPhrase = \s -> emptyNP ** {
|
||||||
-- CNNumNP cn i = {
|
s = \\_ => s ;
|
||||||
-- s = \\c => cn.s ! Sg ! Nom ++ i.s ! npcase2case c ;
|
} ;
|
||||||
-- a = agrgP3 Sg cn.g
|
|
||||||
-- } ;
|
lin
|
||||||
--
|
-- : CN -> Int -> NP
|
||||||
-- SymbS sy = sy ;
|
CNIntNP cn i = NH.MassNP (cn ** {
|
||||||
--
|
s = \\n,c => cn.s ! n ! c ++ i.s}) ;
|
||||||
-- SymbNum sy = { s = addGenitiveS sy.s ; n = Pl ; hasCard = True } ;
|
|
||||||
-- SymbOrd sy = { s = \\c => sy.s ++ (regGenitiveS "th")!c} ;
|
-- : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
|
||||||
--
|
CNSymbNP det cn xs =
|
||||||
--lincat
|
let cnSymb : CN = cn ** {s = \\n,c => cn.s ! n ! c ++ xs.s}
|
||||||
--
|
in NH.DetCN det cnSymb ;
|
||||||
-- Symb, [Symb] = SS ;
|
|
||||||
--
|
-- : CN -> Card -> NP ; -- level five ; level 5
|
||||||
--lin
|
CNNumNP cn i = NH.MassNP (cn ** {
|
||||||
-- MkSymb s = s ;
|
s = \\n,c => cn.s ! n ! c ++ i.s ! Indep}) ;
|
||||||
--
|
|
||||||
-- BaseSymb = infixSS "and" ;
|
-- : Symb -> S ;
|
||||||
-- ConsSymb = infixSS "," ;
|
SymbS sy = sy ;
|
||||||
--
|
|
||||||
--oper
|
-- : Symb -> Card ;
|
||||||
-- -- Note: this results in a space before 's, but there's
|
SymbNum sy = baseNum ** {s = \\_ => sy.s} ;
|
||||||
-- -- not mauch we can do about that.
|
|
||||||
-- addGenitiveS : Str -> Case => Str = \s ->
|
-- : Symb -> Ord ;
|
||||||
-- table { Gen => s ++ "'s"; _ => s } ;
|
SymbOrd sy = {s = \\n => sy.s ; n=Pl} ;
|
||||||
--
|
|
||||||
--}
|
lincat
|
||||||
|
Symb, [Symb] = SS ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
MkSymb s = s ;
|
||||||
|
|
||||||
|
BaseSymb = infixSS "és" ;
|
||||||
|
ConsSymb = infixSS "," ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,63 +1,141 @@
|
|||||||
concrete VerbHun of Verb = CatHun ** open ResHun in
|
concrete VerbHun of Verb = CatHun ** open ResHun, AdverbHun, Prelude in {
|
||||||
{
|
|
||||||
--{
|
|
||||||
--
|
lin
|
||||||
-- flags optimize=all_subs ;
|
|
||||||
--
|
-----
|
||||||
-- lin
|
-- VP
|
||||||
-- UseV = predV ;
|
-- : V -> VP
|
||||||
--
|
UseV = ResHun.useV ;
|
||||||
-- SlashV2a v = predVc v ;
|
|
||||||
-- Slash2V3 v np =
|
-- : V2 -> VP ; -- be loved
|
||||||
-- insertObjc (\\_ => v.c2 ++ np.s ! NPAcc) (predV v ** {c2 = v.c3}) ;
|
-- PassV2 = ResHun.passV2 ;
|
||||||
-- Slash3V3 v np =
|
|
||||||
-- insertObjc (\\_ => v.c3 ++ np.s ! NPAcc) (predVc v) ; ----
|
-- : VPSlash -> VP ;
|
||||||
--
|
-- ReflVP = ResHun.insertRefl ;
|
||||||
-- ComplVV v vp = insertObj (\\a => infVP v.typ vp a) (predVV v) ;
|
|
||||||
-- ComplVS v s = insertObj (\\_ => conjThat ++ s.s) (predV v) ;
|
-- : VV -> VP -> VP ;
|
||||||
-- ComplVQ v q = insertObj (\\_ => q.s ! QIndir) (predV v) ;
|
-- ComplVV vv vp = let vc = vp.vComp in case vv.vvtype of {
|
||||||
-- ComplVA v ap = insertObj (ap.s) (predV v) ;
|
--
|
||||||
--
|
-- } ;
|
||||||
-- SlashV2V v vp = insertObjc (\\a => v.c3 ++ infVP v.typ vp a) (predVc v) ;
|
|
||||||
-- SlashV2S v s = insertObjc (\\_ => conjThat ++ s.s) (predVc v) ;
|
-- : VS -> S -> VP ;
|
||||||
-- SlashV2Q v q = insertObjc (\\_ => q.s ! QIndir) (predVc v) ;
|
-- ComplVS vs s =
|
||||||
-- SlashV2A v ap = insertObjc (\\a => ap.s ! a) (predVc v) ; ----
|
-- let vps = useV vs ;
|
||||||
--
|
-- subord = SubjS {s=""} s ;
|
||||||
-- ComplSlash vp np = insertObjPre (\\_ => vp.c2 ++ np.s ! NPAcc) vp ;
|
-- in vps ** {} ;
|
||||||
--
|
|
||||||
-- SlashVV vv vp =
|
{-
|
||||||
-- insertObj (\\a => infVP vv.typ vp a) (predVV vv) **
|
-- : VQ -> QS -> VP ;
|
||||||
-- {c2 = vp.c2} ;
|
ComplVQ vq qs = ;
|
||||||
-- SlashV2VNP vv np vp =
|
|
||||||
-- insertObjPre (\\_ => vv.c2 ++ np.s ! NPAcc)
|
-- : VA -> AP -> VP ; -- they become red
|
||||||
-- (insertObjc (\\a => vv.c3 ++ infVP vv.typ vp a) (predVc vv)) **
|
ComplVA va ap = ResHun.insertObj (CompAP ap).s (useV va) ;
|
||||||
-- {c2 = vp.c2} ;
|
|
||||||
--
|
--------
|
||||||
-- UseComp comp = insertObj comp.s (predAux auxBe) ;
|
-- Slash
|
||||||
--
|
-}
|
||||||
-- AdvVP vp adv = insertObj (\\_ => adv.s) vp ;
|
-- : V2 -> VPSlash
|
||||||
-- AdVVP adv vp = insertAdV adv.s vp ;
|
SlashV2a = ResHun.useVc ;
|
||||||
--
|
|
||||||
-- AdvVPSlash vp adv = insertObj (\\_ => adv.s) vp ** {c2 = vp.c2} ;
|
{-
|
||||||
-- AdVVPSlash adv vp = insertAdV adv.s vp ** {c2 = vp.c2} ;
|
-- : V3 -> NP -> VPSlash ; -- give it (to her)
|
||||||
--
|
-- : V3 -> NP -> VPSlash ; -- give (it) to her
|
||||||
-- ReflVP v = insertObjPre (\\a => v.c2 ++ reflPron ! a) v ;
|
Slash2V3,
|
||||||
--
|
Slash3V3 = \v3 -> insertObj (useVc3 v3) ;
|
||||||
-- PassV2 v = insertObj (\\_ => v.s ! VPPart) (predAux auxBe) ;
|
|
||||||
--
|
-- : V2S -> S -> VPSlash ; -- answer (to him) that it is good
|
||||||
-----b UseVS, UseVQ = \vv -> {s = vv.s ; c2 = [] ; isRefl = vv.isRefl} ; -- no "to"
|
SlashV2S v2s s =
|
||||||
--
|
let vps = useVc v2s ;
|
||||||
-- CompAP ap = ap ;
|
subord = SubjS {s=""} s ;
|
||||||
-- CompNP np = {s = \\_ => np.s ! NPAcc} ;
|
in vps ** {obj = } ;
|
||||||
-- CompAdv a = {s = \\_ => a.s} ;
|
|
||||||
-- CompCN cn = {s = \\a => case (fromAgr a).n of {
|
|
||||||
-- Sg => artIndef ++ cn.s ! Sg ! Nom ;
|
-- : V2V -> VP -> VPSlash ; -- beg (her) to go
|
||||||
-- Pl => cn.s ! Pl ! Nom
|
SlashV2V v2v vp = ;
|
||||||
-- }
|
|
||||||
-- } ;
|
-- : V2Q -> QS -> VPSlash ; -- ask (him) who came
|
||||||
--
|
SlashV2Q v2q qs = ;
|
||||||
-- UseCopula = predAux auxBe ;
|
|
||||||
--
|
-- : V2A -> AP -> VPSlash ; -- paint (it) red
|
||||||
--}
|
SlashV2A v2a ap = useVc v2a ** {
|
||||||
|
aComp = \\_ => (CompAP ap).aComp ! Sg3 Masc
|
||||||
|
} ;
|
||||||
|
-}
|
||||||
|
-- : VPSlash -> NP -> VP
|
||||||
|
ComplSlash = ResHun.insertObj ;
|
||||||
|
{-
|
||||||
|
-- : VV -> VPSlash -> VPSlash ;
|
||||||
|
-- Just like ComplVV except missing subject!
|
||||||
|
SlashVV vv vps = ComplVV vv vps ** { missing = vps.missing ;
|
||||||
|
post = vps.post } ;
|
||||||
|
|
||||||
|
-- : V2V -> NP -> VPSlash -> VPSlash ; -- beg me to buy
|
||||||
|
SlashV2VNP v2v np vps =
|
||||||
|
ComplVV v2v vps **
|
||||||
|
{ missing = vps.missing ;
|
||||||
|
post = vps.post ;
|
||||||
|
iobj = np ** { s = np.s ! Dat } } ;
|
||||||
|
|
||||||
|
-}
|
||||||
|
|
||||||
|
-- : Comp -> VP ;
|
||||||
|
UseComp comp = comp ;
|
||||||
|
|
||||||
|
|
||||||
|
-- : VP -> Adv -> VP ; -- sleep here
|
||||||
|
AdvVP = insertAdv ;
|
||||||
|
|
||||||
|
-- : VPSlash -> Adv -> VPSlash ; -- use (it) here
|
||||||
|
AdvVPSlash = insertAdvSlash ;
|
||||||
|
{-
|
||||||
|
-- : VP -> Adv -> VP ; -- sleep , even though ...
|
||||||
|
ExtAdvVP vp adv = vp ** { } ;
|
||||||
|
|
||||||
|
-- : AdV -> VP -> VP ; -- always sleep
|
||||||
|
AdVVP adv vp = vp ** { } ;
|
||||||
|
|
||||||
|
-- : AdV -> VPSlash -> VPSlash ; -- always use (it)
|
||||||
|
AdVVPSlash adv vps = vps ** { } ;
|
||||||
|
|
||||||
|
-- : VP -> Prep -> VPSlash ; -- live in (it)
|
||||||
|
VPSlashPrep vp prep =
|
||||||
|
-}
|
||||||
|
|
||||||
|
--2 Complements to copula
|
||||||
|
|
||||||
|
-- Adjectival phrases, noun phrases, and adverbs can be used.
|
||||||
|
|
||||||
|
-- : AP -> Comp ;
|
||||||
|
CompAP ap = UseCopula ** {
|
||||||
|
s = \\vf => case vf of {
|
||||||
|
VFin P3 n => ap.s ! n ;
|
||||||
|
VFin _ n => ap.s ! n ++ copula.s ! vf ;
|
||||||
|
_ => ap.s ! Sg ++ copula.s ! vf}
|
||||||
|
++ ap.compar ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- : CN -> Comp ;
|
||||||
|
CompCN cn = UseCopula ** {
|
||||||
|
s = \\vf => case vf of {
|
||||||
|
VFin P3 n => cn.s ! n ! Nom ;
|
||||||
|
VFin _ n => cn.s ! n ! Nom ++ copula.s ! vf ;
|
||||||
|
_ => cn.s ! Sg ! Nom ++ copula.s ! vf} ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- : NP -> Comp ;
|
||||||
|
CompNP np = UseCopula ** {
|
||||||
|
s = \\vf => case vf of {
|
||||||
|
VFin P3 _ => np.s ! Nom ;
|
||||||
|
_ => np.s ! Nom ++ copula.s ! vf } ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- : Adv -> Comp ;
|
||||||
|
CompAdv adv = UseCopula ** {
|
||||||
|
s = \\vf => adv.s ++ copula.s ! vf ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
-- : VP -- Copula alone;
|
||||||
|
UseCopula = useV copula ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
34
src/hungarian/unittest/adjective.gftest
Normal file
34
src/hungarian/unittest/adjective.gftest
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
--------------------------------
|
||||||
|
-- Adjectives with complement --
|
||||||
|
--------------------------------
|
||||||
|
-- LangEng: I am married to you
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (UseComp (CompAP (ComplA2 married_A2 (UsePron youSg_Pron))))))) NoVoc
|
||||||
|
LangHun: én házas vagyok veled
|
||||||
|
|
||||||
|
|
||||||
|
----------------
|
||||||
|
-- Comparison --
|
||||||
|
----------------
|
||||||
|
-- LangEng: I am as red as you
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (UseComp (CompAP (CAdvAP as_CAdv (PositA red_A) (UsePron youSg_Pron))))))) NoVoc
|
||||||
|
LangHun: én olyan piros vagyok mint te
|
||||||
|
|
||||||
|
-- LangEng: I am redder than you
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (UseComp (CompAP (ComparA red_A (UsePron youSg_Pron))))))) NoVoc
|
||||||
|
LangHun: én pirosabb vagyok nálad
|
||||||
|
|
||||||
|
|
||||||
|
------------------
|
||||||
|
-- Superlatives --
|
||||||
|
------------------
|
||||||
|
-- LangEng: I am reddest
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (UseComp (CompAP (AdjOrd (OrdSuperl red_A))))))) NoVoc
|
||||||
|
LangHun: én legpirosabb vagyok
|
||||||
|
|
||||||
|
-- LangEng: I am the reddest
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (UseComp (CompNP (DetNP (DetQuantOrd DefArt NumSg (OrdSuperl red_A)))))))) NoVoc
|
||||||
|
LangHun: én a legpirosabb vagyok
|
||||||
|
|
||||||
|
-- !! I suspect this is nonsense
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (UseComp (CompNP (DetNP (DetQuantOrd DefArt NumPl (OrdSuperl red_A)))))))) NoVoc
|
||||||
|
LangHun: én a legpirosabbok vagyok
|
||||||
7
src/hungarian/unittest/dative.gftest
Normal file
7
src/hungarian/unittest/dative.gftest
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
-- LangEng: I have a cat
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a have_V2) (DetCN (DetQuant IndefArt NumSg) (UseN cat_N)))))) NoVoc
|
||||||
|
LangHun: nekem van egy macska
|
||||||
|
|
||||||
|
-- LangEng: I have the cat
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a have_V2) (DetCN (DetQuant DefArt NumSg) (UseN cat_N)))))) NoVoc
|
||||||
|
LangHun: nekem van a macska
|
||||||
364
src/hungarian/unittest/inflection.gftest
Normal file
364
src/hungarian/unittest/inflection.gftest
Normal file
@@ -0,0 +1,364 @@
|
|||||||
|
---------------------
|
||||||
|
-- Noun inflection --
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
-- Beer
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumSg) (UseN beer_N))
|
||||||
|
LangEng: under the beer
|
||||||
|
LangHun: a sör alatt
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumSg) (UseN beer_N))
|
||||||
|
LangEng: in the beer
|
||||||
|
LangHun: a sörben
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumSg) (UseN beer_N))
|
||||||
|
LangEng: on the beer
|
||||||
|
LangHun: a sörnél
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumSg) (UseN beer_N))
|
||||||
|
# LangEng: of the beer
|
||||||
|
# LangHun: a söré
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumSg) (UseN beer_N))
|
||||||
|
LangEng: to the beer
|
||||||
|
LangHun: a sörhöz
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumPl) (UseN beer_N))
|
||||||
|
LangHun: a sörökben
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumPl) (UseN beer_N))
|
||||||
|
LangHun: a söröknél
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumPl) (UseN beer_N))
|
||||||
|
# LangHun: a söröké
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumPl) (UseN beer_N))
|
||||||
|
LangHun: a sörökhöz
|
||||||
|
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumPl) (UseN beer_N))
|
||||||
|
LangHun: a sörök alatt
|
||||||
|
|
||||||
|
--látom not látok
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (UseN beer_N)))))) NoVoc
|
||||||
|
LangEng: I see the beer
|
||||||
|
LangHun: én látom a söröt
|
||||||
|
|
||||||
|
--söröket not sörököt
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumPl) (UseN beer_N)))))) NoVoc
|
||||||
|
LangEng: I see the beers
|
||||||
|
LangHun: én látom a söröket
|
||||||
|
|
||||||
|
|
||||||
|
-- Woman
|
||||||
|
-- nő-nőt, not *nő-növet
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumSg) (UseN woman_N))
|
||||||
|
LangEng: under the woman
|
||||||
|
LangHun: a nő alatt
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumSg) (UseN woman_N))
|
||||||
|
LangEng: in the woman
|
||||||
|
LangHun: a nőben
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumSg) (UseN woman_N))
|
||||||
|
LangEng: on the woman
|
||||||
|
LangHun: a nőnél
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumSg) (UseN woman_N))
|
||||||
|
# LangEng: of the woman
|
||||||
|
# LangHun: a nőé
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumSg) (UseN woman_N))
|
||||||
|
LangEng: to the woman
|
||||||
|
LangHun: a nőhöz
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumPl) (UseN woman_N))
|
||||||
|
LangHun: a nőkben
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumPl) (UseN woman_N))
|
||||||
|
LangHun: a nőknél
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumPl) (UseN woman_N))
|
||||||
|
# LangHun: a nőké
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumPl) (UseN woman_N))
|
||||||
|
LangHun: a nőkhöz
|
||||||
|
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumPl) (UseN woman_N))
|
||||||
|
LangHun: a nők alatt
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (UseN woman_N)))))) NoVoc
|
||||||
|
LangEng: I see the woman
|
||||||
|
LangHun: én látom a nőt
|
||||||
|
|
||||||
|
--nőket not nőköt
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumPl) (UseN woman_N)))))) NoVoc
|
||||||
|
LangEng: I see the women
|
||||||
|
LangHun: én látom a nőket
|
||||||
|
|
||||||
|
-- Apple
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumSg) (UseN apple_N))
|
||||||
|
LangEng: under the apple
|
||||||
|
LangHun: az alma alatt
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumSg) (UseN apple_N))
|
||||||
|
LangEng: in the apple
|
||||||
|
LangHun: az almában
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumSg) (UseN apple_N))
|
||||||
|
LangEng: on the apple
|
||||||
|
LangHun: az almánál
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumSg) (UseN apple_N))
|
||||||
|
# LangEng: of the apple
|
||||||
|
# LangHun: az almáé
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumSg) (UseN apple_N))
|
||||||
|
LangEng: to the apple
|
||||||
|
LangHun: az almához
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumPl) (UseN apple_N))
|
||||||
|
LangHun: az almákban
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumPl) (UseN apple_N))
|
||||||
|
LangHun: az almáknál
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumPl) (UseN apple_N))
|
||||||
|
# LangHun: az almáké
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumPl) (UseN apple_N))
|
||||||
|
LangHun: az almákhoz
|
||||||
|
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumPl) (UseN apple_N))
|
||||||
|
LangHun: az almák alatt
|
||||||
|
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (UseN apple_N)))))) NoVoc
|
||||||
|
LangEng: I see the apple
|
||||||
|
LangHun: én látom az almát
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumPl) (UseN apple_N)))))) NoVoc
|
||||||
|
LangEng: I see the apples
|
||||||
|
LangHun: én látom az almákat
|
||||||
|
|
||||||
|
-- Bird
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumSg) (UseN bird_N))
|
||||||
|
LangEng: under the bird
|
||||||
|
LangHun: a madár alatt
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumSg) (UseN bird_N))
|
||||||
|
LangEng: in the bird
|
||||||
|
LangHun: a madárban
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumSg) (UseN bird_N))
|
||||||
|
LangEng: on the bird
|
||||||
|
LangHun: a madárnál
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumSg) (UseN bird_N))
|
||||||
|
# LangEng: of the bird
|
||||||
|
# LangHun: a madáré
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumSg) (UseN bird_N))
|
||||||
|
LangEng: to the bird
|
||||||
|
LangHun: a madárhoz
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumPl) (UseN bird_N))
|
||||||
|
LangHun: a madarakban
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumPl) (UseN bird_N))
|
||||||
|
LangHun: a madaraknál
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumPl) (UseN bird_N))
|
||||||
|
# LangHun: a madaraké
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumPl) (UseN bird_N))
|
||||||
|
LangHun: a madarakhoz
|
||||||
|
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumPl) (UseN bird_N))
|
||||||
|
LangHun: a madarak alatt
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (UseN bird_N)))))) NoVoc
|
||||||
|
LangEng: I see the bird
|
||||||
|
LangHun: én látom a madarat
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumPl) (UseN bird_N)))))) NoVoc
|
||||||
|
LangEng: I see the birds
|
||||||
|
LangHun: én látom a madarakat
|
||||||
|
|
||||||
|
-- Name
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumSg) (UseN name_N))
|
||||||
|
LangEng: under the name
|
||||||
|
LangHun: a név alatt
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumSg) (UseN name_N))
|
||||||
|
LangEng: in the name
|
||||||
|
LangHun: a névben
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumSg) (UseN name_N))
|
||||||
|
LangEng: on the name
|
||||||
|
LangHun: a névnél
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumSg) (UseN name_N))
|
||||||
|
# LangEng: of the name
|
||||||
|
# LangHun: a névé
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumSg) (UseN name_N))
|
||||||
|
LangEng: to the name
|
||||||
|
LangHun: a névhez
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumPl) (UseN name_N))
|
||||||
|
LangHun: a nevekben
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumPl) (UseN name_N))
|
||||||
|
LangHun: a neveknél
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumPl) (UseN name_N))
|
||||||
|
# LangHun: a neveké
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumPl) (UseN name_N))
|
||||||
|
LangHun: a nevekhez
|
||||||
|
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumPl) (UseN name_N))
|
||||||
|
LangHun: a nevek alatt
|
||||||
|
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (UseN name_N)))))) NoVoc
|
||||||
|
LangEng: I see the name
|
||||||
|
LangHun: én látom a nevet
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumPl) (UseN name_N)))))) NoVoc
|
||||||
|
LangEng: I see the names
|
||||||
|
LangHun: én látom a neveket
|
||||||
|
|
||||||
|
-- Man
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumSg) (UseN man_N))
|
||||||
|
LangEng: under the man
|
||||||
|
LangHun: a férfi alatt
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumSg) (UseN man_N))
|
||||||
|
LangEng: in the man
|
||||||
|
LangHun: a férfiban
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumSg) (UseN man_N))
|
||||||
|
LangEng: on the man
|
||||||
|
LangHun: a férfinál
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumSg) (UseN man_N))
|
||||||
|
# LangEng: of the man
|
||||||
|
# LangHun: a férfié
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumSg) (UseN man_N))
|
||||||
|
LangEng: to the man
|
||||||
|
LangHun: a férfihoz
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumPl) (UseN man_N))
|
||||||
|
LangHun: a férfiakban
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumPl) (UseN man_N))
|
||||||
|
LangHun: a férfiaknál
|
||||||
|
|
||||||
|
# Lang: PrepNP possess_Prep (DetCN (DetQuant DefArt NumPl) (UseN man_N))
|
||||||
|
# LangHun: a férfiaké
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumPl) (UseN man_N))
|
||||||
|
LangHun: a férfiakhoz
|
||||||
|
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumPl) (UseN man_N))
|
||||||
|
LangHun: a férfiak alatt
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (UseN man_N)))))) NoVoc
|
||||||
|
LangEng: I see the man
|
||||||
|
LangHun: én látom a férfit
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumPl) (UseN man_N)))))) NoVoc
|
||||||
|
LangEng: I see the men
|
||||||
|
LangHun: én látom a férfiakat
|
||||||
|
|
||||||
|
|
||||||
|
-- Horse
|
||||||
|
Lang: PrepNP by8means_Prep (DetCN (DetQuant DefArt NumSg) (UseN horse_N))
|
||||||
|
LangEng: by the horse
|
||||||
|
LangHun: a lóval
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumSg) (UseN horse_N))
|
||||||
|
LangEng: in the horse
|
||||||
|
LangHun: a lóban
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumSg) (UseN horse_N))
|
||||||
|
LangEng: on the horse
|
||||||
|
LangHun: a lónál
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumSg) (UseN horse_N))
|
||||||
|
LangEng: to the horse
|
||||||
|
LangHun: a lóhoz
|
||||||
|
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumSg) (UseN horse_N))
|
||||||
|
LangEng: under the horse
|
||||||
|
LangHun: a ló alatt
|
||||||
|
|
||||||
|
Lang: PrepNP by8means_Prep (DetCN (DetQuant DefArt NumPl) (UseN horse_N))
|
||||||
|
LangEng: by the horses
|
||||||
|
LangHun: a lovakkal
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumPl) (UseN horse_N))
|
||||||
|
LangEng: in the horses
|
||||||
|
LangHun: a lovakban
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumPl) (UseN horse_N))
|
||||||
|
LangEng: on the horses
|
||||||
|
LangHun: a lovaknál
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumPl) (UseN horse_N))
|
||||||
|
LangEng: to the horses
|
||||||
|
LangHun: a lovakhoz
|
||||||
|
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumPl) (UseN horse_N))
|
||||||
|
LangEng: under the horses
|
||||||
|
LangHun: a lovak alatt
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (UseN horse_N)))))) NoVoc
|
||||||
|
LangEng: I see the horse
|
||||||
|
LangHun: én látom a lovat
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumPl) (UseN horse_N)))))) NoVoc
|
||||||
|
LangEng: I see the horses
|
||||||
|
LangHun: én látom a lovakat
|
||||||
|
|
||||||
|
|
||||||
|
-- Stone
|
||||||
|
Lang: PrepNP by8means_Prep (DetCN (DetQuant DefArt NumSg) (UseN stone_N))
|
||||||
|
LangHun: a kővel
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumSg) (UseN stone_N))
|
||||||
|
LangHun: a kőben
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumSg) (UseN stone_N))
|
||||||
|
LangHun: a kőnél
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumSg) (UseN stone_N))
|
||||||
|
LangHun: a kőhöz
|
||||||
|
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumSg) (UseN stone_N))
|
||||||
|
LangHun: a kő alatt
|
||||||
|
|
||||||
|
Lang: PrepNP by8means_Prep (DetCN (DetQuant DefArt NumPl) (UseN stone_N))
|
||||||
|
LangHun: a kövekkel
|
||||||
|
|
||||||
|
Lang: PrepNP in_Prep (DetCN (DetQuant DefArt NumPl) (UseN stone_N))
|
||||||
|
LangHun: a kövekben
|
||||||
|
|
||||||
|
Lang: PrepNP on_Prep (DetCN (DetQuant DefArt NumPl) (UseN stone_N))
|
||||||
|
LangHun: a köveknél
|
||||||
|
|
||||||
|
Lang: PrepNP to_Prep (DetCN (DetQuant DefArt NumPl) (UseN stone_N))
|
||||||
|
LangHun: a kövekhez
|
||||||
|
|
||||||
|
Lang: PrepNP under_Prep (DetCN (DetQuant DefArt NumPl) (UseN stone_N))
|
||||||
|
LangHun: a kövek alatt
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (UseN stone_N)))))) NoVoc
|
||||||
|
LangEng: I see the stone
|
||||||
|
LangHun: én látom a követ
|
||||||
|
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumPl) (UseN stone_N)))))) NoVoc
|
||||||
|
LangEng: I see the stones
|
||||||
|
LangHun: én látom a köveket
|
||||||
9
src/hungarian/unittest/numerals.gftest
Normal file
9
src/hungarian/unittest/numerals.gftest
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
-- Plural
|
||||||
|
-- LangEng: the cats fly
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (DetCN (DetQuant DefArt NumPl) (UseN cat_N)) (UseV fly_V)))) NoVoc
|
||||||
|
LangHun: a macskák repülnek
|
||||||
|
|
||||||
|
-- Numeral
|
||||||
|
-- LangEng: two cats fly
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (DetCN (DetQuant IndefArt (NumCard (NumNumeral (num (pot2as3 (pot1as2 (pot0as1 (pot0 n2)))))))) (UseN cat_N)) (UseV fly_V)))) NoVoc
|
||||||
|
LangHun: két macska repül
|
||||||
68
src/hungarian/unittest/relative.gftest
Normal file
68
src/hungarian/unittest/relative.gftest
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
------------------------------
|
||||||
|
-- These need to be correct --
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
-- LangEng: I see a man that flies
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant IndefArt NumSg) (RelCN (UseN man_N) (UseRCl (TTAnt TPres ASimul) PPos (RelVP IdRP (UseV fly_V))))))))) NoVoc
|
||||||
|
LangHun: én látok egy férfit amit repül
|
||||||
|
|
||||||
|
-- LangEng: I see the man that flies
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (RelCN (UseN man_N) (UseRCl (TTAnt TPres ASimul) PPos (RelVP IdRP (UseV fly_V))))))))) NoVoc
|
||||||
|
LangHun: én látom a férfit amit repül
|
||||||
|
|
||||||
|
-- LangEng: I see the man that sees a cat
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (RelCN (UseN man_N) (UseRCl (TTAnt TPres ASimul) PPos (RelVP IdRP (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant IndefArt NumSg) (UseN cat_N))))))))))) NoVoc
|
||||||
|
LangHun: én látom a férfit amit lát egy macskát
|
||||||
|
|
||||||
|
-- LangEng: I see the man that sees the cat
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (RelCN (UseN man_N) (UseRCl (TTAnt TPres ASimul) PPos (RelVP IdRP (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (UseN cat_N))))))))))) NoVoc
|
||||||
|
LangHun: én látom a férfit amit látja a macskát
|
||||||
|
|
||||||
|
-- LangEng: I see the man that has a cat
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (RelCN (UseN man_N) (UseRCl (TTAnt TPres ASimul) PPos (RelVP IdRP (ComplSlash (SlashV2a have_V2) (DetCN (DetQuant IndefArt NumSg) (UseN cat_N))))))))))) NoVoc
|
||||||
|
LangHun: én látom a férfit aminek van egy macska
|
||||||
|
|
||||||
|
-- LangEng: I see the man that has the cat
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (RelCN (UseN man_N) (UseRCl (TTAnt TPres ASimul) PPos (RelVP IdRP (ComplSlash (SlashV2a have_V2) (DetCN (DetQuant DefArt NumSg) (UseN cat_N))))))))))) NoVoc
|
||||||
|
LangHun: én látom a férfit aminek van a macska
|
||||||
|
|
||||||
|
-- LangEng: I see the cat that flies and that is red
|
||||||
|
-- Do we need copula in "is red" or is it still fine without?
|
||||||
|
-- This constructor repeats amit, we have other constructors that don't.
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (RelCN (UseN cat_N) (ConjRS and_Conj (BaseRS (UseRCl (TTAnt TPres ASimul) PPos (RelVP IdRP (UseV fly_V))) (UseRCl (TTAnt TPres ASimul) PPos (RelVP IdRP (UseComp (CompAP (PositA red_A))))))))))))) NoVoc
|
||||||
|
LangHun: én látom a macskát amit repül és amit piros
|
||||||
|
|
||||||
|
-- LangEng: I see the man that flies and that has a cat
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (RelCN (UseN man_N) (ConjRS and_Conj (BaseRS (UseRCl (TTAnt TPres ASimul) PPos (RelVP IdRP (UseV fly_V))) (UseRCl (TTAnt TPres ASimul) PPos (RelVP IdRP (ComplSlash (SlashV2a have_V2) (DetCN (DetQuant IndefArt NumSg) (UseN cat_N))))))))))))) NoVoc
|
||||||
|
LangHun: én látom a férfit amit repül és aminek van egy macska
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------------------------------
|
||||||
|
-- These are just for fun and lower prio to fix in grammar --
|
||||||
|
-------------------------------------------------------------
|
||||||
|
|
||||||
|
-- LangEng: I see the man that the cat sees
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (RelCN (UseN man_N) (UseRCl (TTAnt TPres ASimul) PPos (RelSlash IdRP (SlashVP (DetCN (DetQuant DefArt NumSg) (UseN cat_N)) (SlashV2a see_V2)))))))))) NoVoc
|
||||||
|
LangHun: én látom a férfit amit a macska látja
|
||||||
|
|
||||||
|
-- LangEng: I see a man that the cat sees
|
||||||
|
-- Should this be "amit a macska lát"?
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant IndefArt NumSg) (RelCN (UseN man_N) (UseRCl (TTAnt TPres ASimul) PPos (RelSlash IdRP (SlashVP (DetCN (DetQuant DefArt NumSg) (UseN cat_N)) (SlashV2a see_V2)))))))))) NoVoc
|
||||||
|
LangHun: én látok egy férfit amit a macska látja
|
||||||
|
|
||||||
|
-- LangEng: I see a cat that the man has
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant IndefArt NumSg) (RelCN (UseN cat_N) (UseRCl (TTAnt TPres ASimul) PPos (RelSlash IdRP (SlashVP (DetCN (DetQuant DefArt NumSg) (UseN man_N)) (SlashV2a have_V2)))))))))) NoVoc
|
||||||
|
LangHun: én látok egy macskát amit a férfinak van
|
||||||
|
|
||||||
|
-- LangEng: I see the cat that the man has
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (RelCN (UseN cat_N) (UseRCl (TTAnt TPres ASimul) PPos (RelSlash IdRP (SlashVP (DetCN (DetQuant DefArt NumSg) (UseN man_N)) (SlashV2a have_V2)))))))))) NoVoc
|
||||||
|
LangHun: én látom a macskát amit a férfinak van
|
||||||
|
|
||||||
|
-- LangEng: I see the cat that the man has and that flies
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (ComplSlash (SlashV2a see_V2) (DetCN (DetQuant DefArt NumSg) (RelCN (UseN cat_N) (ConjRS and_Conj (BaseRS (UseRCl (TTAnt TPres ASimul) PPos (RelSlash IdRP (SlashVP (DetCN (DetQuant DefArt NumSg) (UseN man_N)) (SlashV2a have_V2)))) (UseRCl (TTAnt TPres ASimul) PPos (RelVP IdRP (UseV fly_V))))))))))) NoVoc
|
||||||
|
LangHun: én látom a macskát amit a férfinak van és amit repül
|
||||||
|
|
||||||
|
-- LangEng: I am redder than the cats that those women have
|
||||||
|
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron i_Pron) (UseComp (CompAP (ComparA red_A (DetCN (DetQuant DefArt NumPl) (RelCN (UseN cat_N) (UseRCl (TTAnt TPres ASimul) PPos (RelSlash IdRP (SlashVP (DetCN (DetQuant that_Quant NumPl) (UseN woman_N)) (SlashV2a have_V2)))))))))))) NoVoc
|
||||||
|
LangHun: én pirosabb vagyok a macskáknál amik azoknak nőknek vannak
|
||||||
Reference in New Issue
Block a user