mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
(Ara) Add a constructor for mkDet that allows gender variance
This commit is contained in:
@@ -5,8 +5,19 @@ flags optimize = all ;--noexpand;
|
|||||||
|
|
||||||
oper
|
oper
|
||||||
|
|
||||||
mkDet : Str -> Number -> State -> Det
|
mkDet = overload {
|
||||||
= mkDetDecl True ;
|
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
|
mkDetDecl : Bool -> Str -> Number -> State -> Det
|
||||||
= \decl,word,num,state -> baseQuant **
|
= \decl,word,num,state -> baseQuant **
|
||||||
|
|||||||
Reference in New Issue
Block a user