mirror of
https://github.com/GrammaticalFramework/comp-syntax-gu-mlt.git
synced 2026-02-09 14:51:06 -07:00
after lecture 5 (will finish AgreementSwe on Wednesday)
This commit is contained in:
32
lectures/lecture-05/AgreementEng.gf
Normal file
32
lectures/lecture-05/AgreementEng.gf
Normal file
@@ -0,0 +1,32 @@
|
||||
concrete AgreementEng of Agreement = open MorphologyEng in {
|
||||
lincat
|
||||
NP = {s: Str; n: Number} ;
|
||||
CN = Noun ;
|
||||
N = Noun ;
|
||||
A = {s: Str} ;
|
||||
Det = {s: Str; n: Number} ;
|
||||
|
||||
lin
|
||||
DetCN d cn = {
|
||||
s = d.s ++ (cn.s ! d.n) ;
|
||||
n = d.n ;
|
||||
} ;
|
||||
AdjCN a cn = {
|
||||
s = \\n => a.s ++ (cn.s ! n) ;
|
||||
} ;
|
||||
UseN n = n ;
|
||||
|
||||
cat_N = regNoun "cat" ;
|
||||
house_N = regNoun "house" ;
|
||||
black_A = {s = "black"} ;
|
||||
big_A = {s = "big"} ;
|
||||
this_Det = {
|
||||
s = "this";
|
||||
n = Sg ;
|
||||
} ;
|
||||
these_Det = {
|
||||
s = "these";
|
||||
n = Pl ;
|
||||
} ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user