summaryrefslogtreecommitdiff
path: root/treebanks/talbanken/State.hs
blob: badbd6c8021405300ea2632a749911f2e3995a18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{-# LANGUAGE TemplateHaskell #-}
module State where
import Structure
import PGF
import Data.Label 

data State = State {
             _isExist      :: Bool
           , _iquant       :: Bool
           , _passive      :: Bool
           , _sentenceType :: SentenceType
           , _vform        :: [VPForm]
           , _complement   :: (VPForm,[Maybe Expr],[Bool])
           , _object       :: Maybe Expr  -- for objects not within the VP 'vilka äpplen äter han'
           , _tmp          :: Maybe (VForm CId)
           , _anter        :: Bool
           , _pol          :: Maybe Bool
           , _subj         :: Maybe Expr
           , _nptype       :: NPType
           }

$(mkLabels [''State])

startState :: State
startState = State { 
                _isExist = False
               ,_passive = False
               ,_iquant = False
               ,_vform  = []
               ,_complement = (V,[],[])
               ,_sentenceType = Dir 
               ,_object = Nothing
               ,_tmp = Nothing
               ,_anter = False
               ,_pol = Nothing
               ,_subj = Nothing
               ,_nptype = Normal}