(Ara) Add a constructor for mkDet that allows gender variance

This commit is contained in:
Inari Listenmaa
2019-01-02 13:38:45 +02:00
parent 4a3f17c166
commit 829ab04dcf

View File

@@ -5,8 +5,19 @@ flags optimize = all ;--noexpand;
oper
mkDet : Str -> Number -> State -> Det
= mkDetDecl True ;
mkDet = overload {
mkDet : Str -> Number -> State -> Det
= mkDetDecl True ;
mkDet : (m,f : Str) -> Number -> State -> Det
= \m,f,n,d ->
let detM = mkDetDecl True m n d ;
detF = mkDetDecl True f n d ;
in detM ** {
s = \\h,g,c => case g of {
Fem => detF.s ! h ! g ! c ;
Masc => detM.s ! h ! g ! c }
}
} ;
mkDetDecl : Bool -> Str -> Number -> State -> Det
= \decl,word,num,state -> baseQuant **