final state for lecture 5

This commit is contained in:
Arianna Masciolini
2025-04-13 21:50:30 +02:00
parent 75871004b6
commit 84daa586fe
3 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
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" ;
black_A = {s = "black"} ;
the_Sg = {s = "the"; n = Sg} ;
the_Pl = {s = "the"; n = Pl} ;
}