Difference between revisions of "Northern Sámi and Norwegian/Compounds"

From Apertium
Jump to navigation Jump to search
Line 1: Line 1:
Compounds in sme->nob come in many shapes:
Compounds in sme->nob come in many shapes, those ending in a nominal include eg.:


* mielbargin <code>^miel<ShCmp><@←PPRED>$ ^bargat<V><TV><Der2><Actor><N><Ess>$</code>
* mielbargin <code>^miel<ShCmp><@←PPRED>$ ^bargat<V><TV><Der2><Actor><N><Ess>$</code>
Line 5: Line 5:
* allaskuvla <code>^allat<A><Attr><@→N>$ ^skuvla<N><Sg><Nom>$</code>
* allaskuvla <code>^allat<A><Attr><@→N>$ ^skuvla<N><Sg><Nom>$</code>
* politiijastašuvnna <code>^politiija<N><Sg><Nom><Cmp><@HNOUN>$ ^stašuvdna<N><Sg><Gen>$</code>
* politiijastašuvnna <code>^politiija<N><Sg><Nom><Cmp><@HNOUN>$ ^stašuvdna<N><Sg><Gen>$</code>

We could generalise some by having an output macro out_cmp_nom that that takes the nominal and assumes that variable "cmp" is set to the first lexical unit. Then we need four rules for the above:

* <code><pattern-item n="cmp"><pattern-item n="verb"></code>
* <code><pattern-item n="cmp"><pattern-item n="nom"></code>
* <code><pattern-item n="adj"><pattern-item n="nom"></code>
* <code><pattern-item n="nom"><pattern-item n="nom"></code>

Revision as of 12:00, 16 May 2010

Compounds in sme->nob come in many shapes, those ending in a nominal include eg.:

  • mielbargin ^miel<ShCmp><@←PPRED>$ ^bargat<V><TV><Der2><Actor><N><Ess>$
  • vuođđofága ^vuođđu<N><Sg><Nom><Cmp><@HNOUN>$ ^fága<N><Sg><Nom>$
  • allaskuvla ^allat<A><Attr><@→N>$ ^skuvla<N><Sg><Nom>$
  • politiijastašuvnna ^politiija<N><Sg><Nom><Cmp><@HNOUN>$ ^stašuvdna<N><Sg><Gen>$

We could generalise some by having an output macro out_cmp_nom that that takes the nominal and assumes that variable "cmp" is set to the first lexical unit. Then we need four rules for the above:

  • <pattern-item n="cmp"><pattern-item n="verb">
  • <pattern-item n="cmp"><pattern-item n="nom">
  • <pattern-item n="adj"><pattern-item n="nom">
  • <pattern-item n="nom"><pattern-item n="nom">