What is the correct grammar tree in GF for generating sentences in Spanish:
a) that contain subjunctive mood.
b) which the subject is a sentence too.
an example:
me gusta que mi jefe no trabaje hoy
What is the correct grammar tree in GF for generating sentences in Spanish:
a) that contain subjunctive mood.
b) which the subject is a sentence too.
an example:
me gusta que mi jefe no trabaje hoy
Let's construct this piece by piece.
Checking out the table, we see that both indicative and subjunctive are retained.
So now we need to give this as an argument to some VS, which forces out the subjunctive. Let's construct one—there is a ready-made constructor in ParadigmsSpa, called
subjVS : V -> VS
.Now let's test that:
The subjunctive is correct, but unfortunately, the dative agreement isn't working properly. That's a known issue, and I have tried to fix it, but adding it on top, in a way that everything works properly, makes the whole grammar just really slow. (I wonder if it was more feasible, if Spanish didn't use the Romance functor, but that's not something I'm willing to try. :-P)
The complete grammar
So, the subjunctive part of this is easy. Here's a grammar for you to try out.
Note on dative verbs
So what to do with dative verbs? For V2, you can just flip the subject and the object. But for VS, it's trickier, and would require ~ugly~creative hacks.
For now, I would suggest postprocessing, as in this answer. The good side with a dative verb as a
VS
is that the verb will always inflect in 3rd person singular, so you don't have the situation like "me gustas tu" vs. "me gustan ustedes". You can safely postprocess"yo gusto que"
into"me gusta que"
.If the RGL is fixed to include proper handling of dative verbs, I'll update this answer.