Skip to content

Commit ffc10a3

Browse files
committed
guessed VocNP, UttCN, UttAP
1 parent fff1c40 commit ffc10a3

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/gaelic/NounGla.gf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ concrete NounGla of Noun = CatGla ** open ResGla, Prelude in {
1313
DDef n sp => cn.s ! c ! sp ! n ;
1414
DPoss n _ => cn.s ! c ! Def ! n -- ????????????????
1515
} ;
16+
voc = case det.dt of {
17+
DDef n sp => cn.voc ! n ; -- ???????????????? guessed
18+
DPoss n _ => cn.voc ! n -- ????????????????
19+
} ;
1620
a = NotPron det.dt ;
1721
} ;
1822

src/gaelic/PhraseGla.gf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ concrete PhraseGla of Phrase = CatGla ** open Prelude, ResGla in {
1515
UttImpSg pol imp = { s = pol.s ++ imp.s ! Sg ! pol.p } ;
1616
UttImpPl pol imp =
1717
UttImpPol pol imp = {s = pol.s ++ imp.s ! Sg ! pol.p} ;
18-
UttVP vp = {s = linVP vp} ;
19-
UttAP ap = { s = ap.s } ;
20-
UttAdv adv = {s = } ;
21-
UttCN n = {s = } ;
22-
UttCard n = {s = } ; -}
18+
UttVP vp = {s = linVP vp} ; -}
19+
UttAP ap = { s = ap.s ! ASg NOM Masc } ;
20+
UttAdv adv = {s = adv.s} ;
21+
UttCN n = {s = n.s ! NOM ! Indef ! Sg} ;
22+
-- UttCard n = {s = } ;
2323
UttInterj i = i ;
2424
NoPConj = {s = []} ;
2525
-- PConjConj conj = {s = conj.s1 ++ conj.s2 ! …} ;
2626

2727
NoVoc = {s = []} ;
28-
-- VocNP np = { s = "," ++ np.s ! } ;
28+
VocNP np = {s = "," ++ np.art ! NOM ++ np.voc} ; --guessed
2929

3030
}

src/gaelic/ResGla.gf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ oper
169169
-- or do we have an exhaustive list of prepositions that merge, and we can make that into a param and put on a LHS here?
170170

171171
s : Case => Str ; -- TODO: is lenition a separate dimension from case?
172+
voc : Str ;
172173
empty : Str ; -- to avoid metavariables
173174
a : Agr ; -- includes whether it's pron and whether it's definite. TODO: probably can make even leaner (wasn't a prio so far).
174175
} ;
@@ -177,6 +178,7 @@ oper
177178

178179
emptyNP : LinNP = {
179180
s,art = \\_ => [] ;
181+
voc = [] ;
180182
a = NotPron (DDef Sg Indef) ; -- we assume pronouns are definite by default. also it just matters for PrepNP.
181183
empty = [] ;
182184
} ;

0 commit comments

Comments
 (0)