summaryrefslogtreecommitdiff
path: root/next-lib/src/russian/ResRus.gf
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2008-11-26 19:38:51 +0000
committerkrasimir <krasimir@chalmers.se>2008-11-26 19:38:51 +0000
commitb6c9aedd873348b59e5215572b3540824ec3abef (patch)
treea9d46c6e6fd67b692ed37df5d58b85c6594e8d37 /next-lib/src/russian/ResRus.gf
parent720932d75120a86e99f0dec32d3335aaba65e4a6 (diff)
SubstForm in Russian is replaced with NForm like in Bulgarian and is used more widely
Diffstat (limited to 'next-lib/src/russian/ResRus.gf')
-rw-r--r--next-lib/src/russian/ResRus.gf20
1 files changed, 5 insertions, 15 deletions
diff --git a/next-lib/src/russian/ResRus.gf b/next-lib/src/russian/ResRus.gf
index d19ea1797..9203f0bd7 100644
--- a/next-lib/src/russian/ResRus.gf
+++ b/next-lib/src/russian/ResRus.gf
@@ -74,7 +74,7 @@ oper
-- For the sake of shorter description these parameters are
-- combined in the type SubstForm.
param
- SubstForm = SF Number Case ;
+ NForm = NF Number Case ;
-- Real parameter types (i.e. ones on which words and phrases depend)
@@ -114,14 +114,14 @@ oper
mkPronForm: Case -> AfterPrep -> Possessive -> PronForm =
\c,n,p -> PF c n p ;
-
- CommNounPhrase: Type = {s : Number => Case => Str; g : Gender; anim : Animacy} ;
+ CommNoun = {s : NForm => Str ; g : Gender ; anim : Animacy } ;
+
NounPhrase : Type = { s : PronForm => Str ; n : Number ;
p : Person ; g: PronGen ; anim : Animacy ; pron: Bool} ;
- mkNP : Number -> CommNounPhrase -> NounPhrase = \n,chelovek ->
- {s = \\cas => chelovek.s ! n ! (extCase cas) ;
+ mkNP : Number -> CommNoun -> NounPhrase = \n,chelovek ->
+ {s = \\cas => chelovek.s ! NF n (extCase cas) ;
n = n ; g = PGen chelovek.g ; p = P3 ; pron =False ;
anim = chelovek.anim
} ;
@@ -387,14 +387,4 @@ oper mille : Size => Str = table {
oper gg : Str -> Gender => Str = \s -> table {_ => s} ;
-- CardOrd = NCard | NOrd ;
-
-----2 Transformations between parameter types
---
-
-oper
-
- numSF: SubstForm -> Number = \sf -> case sf of { SF n _ => n } ;
-
- caseSF: SubstForm -> Case = \sf -> case sf of { SF _ c => c } ;
-
}