mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-30 10:28:53 -06:00
fix bug with numeral 1 in DetQuant
This commit is contained in:
@@ -94,14 +94,14 @@ concrete NounEus of Noun = CatEus ** open ResEus, Prelude in {
|
|||||||
|
|
||||||
-- : Quant -> Num -> Det ;
|
-- : Quant -> Num -> Det ;
|
||||||
DetQuant quant num = quant **
|
DetQuant quant num = quant **
|
||||||
{ s = \\c,ph => case <num.isNum,num.n> of { --numeral 1 ("bat") goes after NP!
|
{ s = \\c,ph => case <num.isNum,num.n> of {
|
||||||
<True,Sg> => num.s ++ quant.s ! num.n ! c ! FinalCons ;
|
<True,Sg> => num.s ; --numeral 1 ("bat") goes after NP, and no other article
|
||||||
_ => quant.s ! num.n ! c ! ph
|
_ => quant.s ! num.n ! c ! ph
|
||||||
} ;
|
} ;
|
||||||
nbr = num.n ;
|
nbr = num.n ;
|
||||||
pref = case num.n of {
|
pref = case num.n of {
|
||||||
Sg => quant.pref ;
|
Sg => quant.pref ; -- empty in case of numeral 1
|
||||||
Pl => quant.pref ++ num.s
|
Pl => quant.pref ++ num.s -- the numeral itself in case of other numerals
|
||||||
} ;
|
} ;
|
||||||
isDef = orB quant.isDef num.isNum } ;
|
isDef = orB quant.isDef num.isNum } ;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user