diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html b/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html index 38d831ee3..657591e3b 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html @@ -42,7 +42,8 @@
-Last update: Sat Feb 25 22:35:58 2006 +Author: +Last update: Fri Apr 21 11:44:29 2006
Produced by @@ -50,6 +51,9 @@ gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.
+== +
+# -path=.:../abstract:../../prelude:../common
@@ -171,9 +175,13 @@ function:-All the functions above work quite as well to form compound nouns, -such as baby boom. +A compound noun ia an uninflected string attached to an inflected noun, +such as baby boom, chief executive officer.
++ compoundN : Str -> N -> N ; ++
diff --git a/lib/resource-1.0/english/ParadigmsEng.gf b/lib/resource-1.0/english/ParadigmsEng.gf index f9abbaf02..067b8bea8 100644 --- a/lib/resource-1.0/english/ParadigmsEng.gf +++ b/lib/resource-1.0/english/ParadigmsEng.gf @@ -86,8 +86,10 @@ oper --3 Compound nouns -- --- All the functions above work quite as well to form compound nouns, --- such as "baby boom". +-- A compound noun ia an uninflected string attached to an inflected noun, +-- such as "baby boom", "chief executive officer". + + compoundN : Str -> N -> N ; --3 Relational nouns @@ -341,6 +343,8 @@ oper genderN g man = {s = man.s ; g = g ; lock_N = <>} ; + compoundN s n = {s = \\x,y => s ++ n.s ! x ! y ; g=n.g ; lock_N = <>} ; + mkN2 = \n,p -> n ** {lock_N2 = <> ; c2 = p} ; regN2 n = mkN2 (regN n) (mkPreposition "of") ; mkN3 = \n,p,q -> n ** {lock_N3 = <> ; c2 = p ; c3 = q} ;