A computational grammar and lexicon for Maltese
A computational grammar and lexicon for Maltese
A computational grammar and lexicon for Maltese
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
3.4 Generating full <strong>for</strong>ms<br />
After creating a monolingual dictionary module as described in the previous section, this module<br />
can be used with the GF runtime in order to produce full <strong>for</strong>ms <strong>for</strong> each of our lexemes.<br />
This task is also carried out using a Haskell script, which accesses a compiled version of the<br />
dictionary modules using the PGF library.<br />
3.4.1 Nouns<br />
For nouns which do not already have an explicit plural <strong>for</strong>m included in the <strong>lexicon</strong>, just the<br />
use of the smart paradigm alone will provide a plural <strong>for</strong>m. This can be found by using the<br />
linearise -table comm<strong>and</strong>.<br />
In cases where nouns take a postclitic pronoun to indicate possession, one cannot simply<br />
look at its inflection table since clitics are h<strong>and</strong>led at the syntax level. Instead, a template tree is<br />
constructed <strong>and</strong> linearised with the bind lexer in order to produce the correctly inflected <strong>for</strong>m.<br />
For nouns, the following template tree was used:<br />
DetCN (DetQuant (PossPron ) NumSg) <br />
where is the pronoun indicating the direct object (possessor) <strong>and</strong> is the noun under<br />
analysis.<br />
3.4.2 Adjectives<br />
For adjectives, simply using the linearise comm<strong>and</strong> on the lexical units is enough to get the<br />
inflections <strong>for</strong> gender <strong>and</strong> number, <strong>and</strong> the <strong>for</strong>ms <strong>for</strong> comparative <strong>and</strong> superlative.<br />
3.4.3 Verbs<br />
For verbs, the situation is a lot more complex, Since a number of morphological features are<br />
produced by syntactic constructors in the <strong>grammar</strong>, we again need to use template trees <strong>for</strong><br />
producing inflections. At the top level, sentences in the different tenses <strong>and</strong> polarities are generated<br />
using these templates:<br />
Perfective: UseCl (TTAnt TPast ASimul) (PredVP (UsePron ) )<br />
Imperfective: UseCl (TTAnt TPres ASimul) (PredVP (UsePron ) )<br />
Imperative: UttImpSg (ImpVP )<br />
UttImpPl (ImpVP )<br />
where is a clause, which may be defined in many ways depending on what combination<br />
of object clitics is being produced:<br />
Direct: UseV <br />
DO: ComplSlash (SlashVa ) (UsePron )<br />
IO: AdvVP (ComplSlash (SlashVa ) ) (PrepNP <strong>for</strong>_Prep (UsePron ))<br />
DO + IO: AdvVP (ComplSlash (SlashVa ) (UsePron )) (PrepNP <strong>for</strong>_Prep (UsePron ))<br />
58