mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
Updated CompatibilityEng to compile with case-inflected Num and Ord.
This commit is contained in:
@@ -5,7 +5,13 @@ concrete CompatibilityEng of Compatibility = CatEng ** open Prelude, ResEng in {
|
|||||||
-- from Noun 19/4/2008
|
-- from Noun 19/4/2008
|
||||||
|
|
||||||
lin
|
lin
|
||||||
NumInt n = {s = n.s ; n = Pl ; hasCard = True} ;
|
NumInt n = {s = addGenitiveS n.s ; n = Pl ; hasCard = True} ;
|
||||||
OrdInt n = {s = n.s ++ "th"} ;
|
OrdInt n = {s = \\c => n.s ++ (regGenitiveS "th")!c } ;
|
||||||
|
|
||||||
|
oper
|
||||||
|
-- Note: this results in a space before 's, but there's
|
||||||
|
-- not mauch we can do about that.
|
||||||
|
addGenitiveS : Str -> Case => Str = \s ->
|
||||||
|
table { Gen => s ++ "'s"; _ => s } ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ lin
|
|||||||
SymbS sy = sy ;
|
SymbS sy = sy ;
|
||||||
|
|
||||||
SymbNum sy = { s = addGenitiveS sy.s ; n = Pl ; hasCard = True } ;
|
SymbNum sy = { s = addGenitiveS sy.s ; n = Pl ; hasCard = True } ;
|
||||||
SymbOrd sy = { s = addGenitiveS (sy.s ++ "th")} ;
|
SymbOrd sy = { s = \\c => sy.s ++ (regGenitiveS "th")!c} ;
|
||||||
|
|
||||||
lincat
|
lincat
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user