mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
Added CompCN to ParseEng. Perhaps this should move to NounEng.
This commit is contained in:
@@ -30,7 +30,7 @@ concrete ParseEng of ParseEngAbs =
|
|||||||
VA, become_VA],
|
VA, become_VA],
|
||||||
BigLexEng
|
BigLexEng
|
||||||
|
|
||||||
** open ParadigmsEng, ResEng, MorphoEng, ParamX, Prelude in {
|
** open ParadigmsEng, ResEng, MorphoEng, NounEng, ParamX, Prelude in {
|
||||||
|
|
||||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||||
|
|
||||||
@@ -125,6 +125,9 @@ lin
|
|||||||
a = agrP3 Sg
|
a = agrP3 Sg
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
CompCN cn = { s = \\a => let n = (fromAgr a).n
|
||||||
|
in IndefArt.s ! False ! n ++ cn.s ! n ! Acc} ;
|
||||||
|
|
||||||
-- Lexical additions
|
-- Lexical additions
|
||||||
|
|
||||||
lin
|
lin
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ fun NumOfNP : Num -> NP -> NP ; -- ten of the dogs
|
|||||||
fun CAdvNP : CAdv -> CN -> NP -> NP ; -- more wine than the professor
|
fun CAdvNP : CAdv -> CN -> NP -> NP ; -- more wine than the professor
|
||||||
fun CAdvSSlash : CAdv -> CN -> SSlash -> NP ; -- more wine than the professor drank
|
fun CAdvSSlash : CAdv -> CN -> SSlash -> NP ; -- more wine than the professor drank
|
||||||
|
|
||||||
|
fun CompCN : CN -> Comp ; -- "(every man is) a dog", "(all men are) dogs"
|
||||||
|
|
||||||
-- Lexical additions
|
-- Lexical additions
|
||||||
|
|
||||||
fun a8few_Det : Det ;
|
fun a8few_Det : Det ;
|
||||||
|
|||||||
Reference in New Issue
Block a user