Skip to content

Commit

Permalink
ExtendAra: quick and dirty PassVPSlash and CompoundN, to be revisited
Browse files Browse the repository at this point in the history
  • Loading branch information
aarneranta committed Feb 8, 2024
1 parent ea2dfb2 commit 5bdd45a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion src/arabic/ExtendAra.gf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ concrete ExtendAra of Extend =
EmptyRelSlash, PredAPVP,
ComplDirectVS, ComplDirectVQ, -- because of Utt
VPS, MkVPS, PredVPS, BaseVPS, ConsVPS, ConjVPS,
EmbedSSlash, AdjAsNP, GerundNP
EmbedSSlash, AdjAsNP, GerundNP,
PassVPSlash, ---- bogus implementation, see below
CompoundN
]
with (Grammar=GrammarAra)
** open
Expand Down Expand Up @@ -91,4 +93,16 @@ lin
s = \\_ => np.s ! Nom ++ vps.s ! np.a.pgn -- first quick version with order always Nominal.
} ; -- if necessary, change VPS into {s : PerGenNum => Order => {before,after : Str}}


-- AR 24-02-08
PassVPSlash vpslash = vpslash ** {s = \\pgn, vpf => vpslash.s ! pgn ! vpf} ;
---- vpf does not have passive forms left,
---- so this function is not possible with the current lincat of VP and VPSlash

---- very unsure about this as well
CompoundN a b = b ** {
s = \\n, s, c => b.s ! n ! Const ! c ++ a.s ! n ! s ! c ;
s2 = \\n, s, c => b.s2 ! n ! Const ! c ++ a.s2 ! n ! s ! c
} ;

}
2 changes: 1 addition & 1 deletion src/arabic/VerbAra.gf
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ concrete VerbAra of Verb = CatAra ** open Prelude, ResAra, ParamX in {
CompNP np = {s = \\_,_ => [] ;
obj = {s = np.s ! Nom ; a = agrLite np.a} ;
isNP = True} ;
--

--
}

0 comments on commit 5bdd45a

Please sign in to comment.