mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Added this, that, conjunctions and giving to stoneage grammars.
This commit is contained in:
@@ -7,6 +7,14 @@ cat
|
||||
|
||||
fun
|
||||
|
||||
-- Sentence conjunction
|
||||
|
||||
AndS : S -> S -> S ;
|
||||
|
||||
-- NP conjunction
|
||||
|
||||
AndNP : NP -> NP -> NP ;
|
||||
|
||||
-- Actions with an object
|
||||
|
||||
Drink : NP -> NP -> S ;
|
||||
@@ -67,18 +75,20 @@ fun
|
||||
Swell : NP -> S ;
|
||||
Burn : NP -> S ;
|
||||
|
||||
-- Actions with an object and a recipient
|
||||
|
||||
Give : NP -> NP -> NP -> S ; -- subject object recipient
|
||||
|
||||
-- Say
|
||||
-- FearThat
|
||||
|
||||
-- Give : NP -> NP -> NP -> S ;
|
||||
|
||||
-- Determiners
|
||||
|
||||
The_One : CN -> NP ;
|
||||
The_Many : CN -> NP ;
|
||||
A : CN -> NP ;
|
||||
-- This : CN -> NP ;
|
||||
-- That : CN -> NP ;
|
||||
This : CN -> NP ;
|
||||
That : CN -> NP ;
|
||||
All : CN -> NP ;
|
||||
Many : CN -> NP ;
|
||||
Some_One : CN -> NP ;
|
||||
|
||||
@@ -13,6 +13,16 @@ lincat
|
||||
CN = CN ;
|
||||
|
||||
lin
|
||||
|
||||
-- Sentence conjunction
|
||||
|
||||
AndS s1 s2 = { s = s1.s ++ and_Conj.s ++ s2.s } ** { lock_Phr = <> } ;
|
||||
|
||||
-- NP conjunction
|
||||
|
||||
AndNP n1 n2 = ConjNP and_Conj (TwoNP n1 n2);
|
||||
|
||||
|
||||
Drink = PresV2 (dirV2 drink_V) ;
|
||||
Eat = PresV2 (dirV2 eat_V) ;
|
||||
Bite = PresV2 (dirV2 bite_V) ;
|
||||
@@ -69,15 +79,15 @@ lin
|
||||
Swell = PresV swell_V ;
|
||||
Burn = PresV burn_V ;
|
||||
|
||||
Give = PresV3 (dirV3 give_V "to") ;
|
||||
|
||||
-- Say = ;
|
||||
-- Give = giveV3 ;
|
||||
|
||||
The_One = DefOneNP ;
|
||||
The_Many = DefNumNP NoNum ;
|
||||
A = IndefOneNP ;
|
||||
|
||||
-- This : CN -> NP ;
|
||||
-- That : CN -> NP ;
|
||||
This = DetNP this_Det ;
|
||||
That = DetNP that_Det ;
|
||||
All = NDetNP all_NDet NoNum ;
|
||||
Many = DetNP many_Det ;
|
||||
Some_One = DetNP some_Det ;
|
||||
|
||||
@@ -3,6 +3,7 @@ resource StoneageResEng = open ResourceEng, ParadigmsEng in {
|
||||
oper
|
||||
PresV : V -> NP -> Phr = \v,s -> PresCl (SPredV s v) ;
|
||||
PresV2 : V2 -> NP -> NP -> Phr = \v,s,o -> PresCl (SPredV2 s v o) ;
|
||||
PresV3 : V3 -> NP -> NP -> NP -> Phr = \v,s,o,r -> PresCl (SPredV3 s v o r) ;
|
||||
PresVasV2 : V -> NP -> NP -> Phr = \ v -> PresV2 (dirV2 v) ;
|
||||
|
||||
PresCl : Cl -> Phr =
|
||||
|
||||
@@ -3,6 +3,7 @@ resource StoneageResSwe = open ResourceSwe, SyntaxSwe, ParadigmsSwe in {
|
||||
oper
|
||||
PresV : V -> NP -> Phr = \v,s -> PresCl (SPredV s v) ;
|
||||
PresV2 : V2 -> NP -> NP -> Phr = \v,s,o -> PresCl (SPredV2 s v o) ;
|
||||
PresV3 : V3 -> NP -> NP -> NP -> Phr = \v,s,o,r -> PresCl (SPredV3 s v o r) ;
|
||||
PresVasV2 : V -> NP -> NP -> Phr = \ v -> PresV2 (dirV2 v) ;
|
||||
|
||||
PresCl : Cl -> Phr =
|
||||
|
||||
@@ -12,6 +12,15 @@ lincat
|
||||
CN = CN ;
|
||||
|
||||
lin
|
||||
|
||||
-- Sentence conjunction
|
||||
|
||||
AndS s1 s2 = { s = s1.s ++ and_Conj.s ++ s2.s } ** { lock_Phr = <> } ;
|
||||
|
||||
-- NP conjunction
|
||||
|
||||
AndNP n1 n2 = ConjNP and_Conj (TwoNP n1 n2);
|
||||
|
||||
Drink = PresVasV2 drink_V ;
|
||||
Eat = PresVasV2 eat_V ;
|
||||
Bite = PresVasV2 bite_V ;
|
||||
@@ -70,15 +79,15 @@ lin
|
||||
Swell = PresV swell_V ;
|
||||
Burn = PresV burn_V ;
|
||||
|
||||
Give = PresV3 (dirV3 give_V "till") ;
|
||||
|
||||
-- Say = ;
|
||||
-- Give = giveV3 ;
|
||||
|
||||
The_One = DefOneNP;
|
||||
The_Many = DefNumNP NoNum ;
|
||||
A = IndefOneNP ;
|
||||
|
||||
-- This : CN -> NP ;
|
||||
-- That : CN -> NP ;
|
||||
This = DetNP this_Det ;
|
||||
That = DetNP that_Det ;
|
||||
All = NDetNP all_NDet NoNum ;
|
||||
Many = DetNP many_Det ;
|
||||
Some_One = DetNP some_Det ;
|
||||
|
||||
@@ -35,6 +35,16 @@ abstract SwadeshLex = Categories ** {
|
||||
|
||||
-- not : Adv ; -- ?
|
||||
|
||||
-- Conjunctions
|
||||
|
||||
and_Conj : Conj ;
|
||||
|
||||
-- Prepositions
|
||||
|
||||
at_Prep : Prep ;
|
||||
in_Prep : Prep ;
|
||||
with_Prep : Prep ;
|
||||
|
||||
-- Numerals
|
||||
|
||||
one_Num : Num ;
|
||||
|
||||
@@ -40,6 +40,9 @@ concrete SwadeshLexEng of SwadeshLex = CategoriesEng
|
||||
|
||||
-- not : Adv ; -- ?
|
||||
|
||||
-- Conjunctions
|
||||
|
||||
and_Conj = and_Conj ;
|
||||
|
||||
-- Numerals
|
||||
|
||||
|
||||
@@ -40,6 +40,9 @@ concrete SwadeshLexSwe of SwadeshLex = CategoriesSwe
|
||||
|
||||
-- not : Adv ; -- ?
|
||||
|
||||
-- Conjunctions
|
||||
|
||||
and_Conj = and_Conj ;
|
||||
|
||||
-- Numerals
|
||||
|
||||
|
||||
Reference in New Issue
Block a user