mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 01:32:50 -06:00
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
concrete DatabaseEng of Database = open Prelude,Syntax,English,Predication,Paradigms,DatabaseEngRes in {
|
|
|
|
flags lexer=text ; unlexer=text ;
|
|
|
|
lincat
|
|
Phras = SS1 Bool ; -- long or short form
|
|
Subject = NP ;
|
|
Noun = CN ;
|
|
Property = AP ;
|
|
Comparison = AdjDeg ;
|
|
Relation = Adj2 ;
|
|
Feature = Fun ;
|
|
Value = NP ;
|
|
Name = PN ;
|
|
|
|
lin
|
|
LongForm sent = ss (sent.s ! True ++ "?") ;
|
|
ShortForm sent = ss (sent.s ! False ++ "?") ;
|
|
|
|
WhichAre A B = mkSent (defaultQuestion (IntVP (NounIPMany A) (PosA B)))
|
|
(defaultNounPhrase (IndefManyNP (ModAdj B A))) ;
|
|
|
|
IsIt Q A = mkSentSame (defaultQuestion (QuestVP Q (PosA A))) ;
|
|
|
|
MoreThan = ComparAdjP ;
|
|
TheMost = SuperlNP ;
|
|
Relatively C _ = PositAdjP C ;
|
|
|
|
RelatedTo = ComplAdj ;
|
|
|
|
FeatureOf = appFun1 ;
|
|
ValueOf F V = appFun1 F (UsePN V) ;
|
|
|
|
WithProperty A B = ModAdj B A ;
|
|
|
|
Individual = UsePN ;
|
|
|
|
AllN = DetNP AllDet ;
|
|
MostN = DetNP MostDet ;
|
|
EveryN = DetNP EveryDet ;
|
|
|
|
-- only these are language-dependent
|
|
|
|
Any n = detNounPhrase anyPlDet n ** {lock_NP = <>} ; ---
|
|
|
|
IsThere A = mkSentPrel ["is there"] (defaultNounPhrase (IndefOneNP A)) ;
|
|
AreThere A = mkSentPrel ["are there"] (defaultNounPhrase (IndefManyNP A)) ;
|
|
|
|
WhatIs V = mkSentPrel ["what is"] (defaultNounPhrase V) ;
|
|
|
|
} ;
|