mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-28 05:52:51 -06:00
added the constructor Noun.NumeralSuperlOrd for phrases like "third largest", which have special linearizations in many languages e.g. German (drittgrösste) and Finnish (kolmanneksi suurin). Implemented for Chi (to check), Dut, Eng, Fin, Ger, Romance, Scand so far
This commit is contained in:
@@ -108,6 +108,14 @@ incomplete concrete NounScand of Noun =
|
||||
isDet = True
|
||||
} ;
|
||||
|
||||
OrdNumeralSuperl n a = {
|
||||
s = n.s ! NOrd SupWeak ++ case a.isComp of {
|
||||
True => "mest" ++ a.s ! AF (APosit (Weak Sg)) Nom ;
|
||||
_ => a.s ! AF (ASuperl SupWeak) Nom
|
||||
} ;
|
||||
isDet = True
|
||||
} ;
|
||||
|
||||
DefArt = {
|
||||
s = \\n,bm,bn,g => if_then_Str (orB bm bn) (artDef (gennum (ngen2gen g) n)) [] ;
|
||||
sp = \\n,bm,bn,g => artDef (gennum (ngen2gen g) n) ;
|
||||
|
||||
Reference in New Issue
Block a user