1
0
forked from GitHub/gf-rgl

(Romance) Remove Degree from A, new field for comp

This commit is contained in:
Inari Listenmaa
2021-09-13 15:15:17 +08:00
parent 3d703856a6
commit 862c50e936
5 changed files with 44 additions and 40 deletions
+9 -2
View File
@@ -46,6 +46,13 @@ param
oper
AF : Gender -> Number -> AForm = \g,n -> case n of {Sg => ASg g AAttr ; Pl => APl g} ;
-- helper functions for comparative/superlative forms
oper
af2num : AForm -> Number = \af -> case af of {
APl _ => Pl ;
_ => Sg -- singular and adverbial use Sg form. As of 2021, there are no funs from AP to Adv, so it doesn't matter.
} ;
-- The following coercions are useful:
oper
@@ -267,8 +274,8 @@ oper
vpAgrNone : VPAgr = VPAgrClit Masc Sg ;
oper
mkOrd : {s : Degree => AForm => Str} -> {s : AAgr => Str} ;
mkOrd x = {s = \\ag => x.s ! Posit ! aagr2aform ag } ;
mkOrd : Adj -> {s : AAgr => Str} ;
mkOrd x = {s = \\ag => x.s ! aagr2aform ag } ;
-- This is used in Spanish and Italian to bind clitics with preceding verb.