Difference between revisions of "Tag order"

From Apertium
Jump to navigation Jump to search
(Created page with 'Tags in the Apertium stream format and dictionaries are ''ordered''. Language pairs more or less stick to the same ordering conventions, with the main part-of-speech being fi…')
 
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
<adj><posi><mf><sg><ind>
 
<adj><posi><mf><sg><ind>
 
</pre>
 
</pre>
  +
  +
For noun with case, it's typically <pre><PoS><gender><number><case></pre>
  +
e.g. <pre><n><f><sg><nom></pre>
   
 
[[Category:Writing dictionaries]]
 
[[Category:Writing dictionaries]]

Latest revision as of 07:04, 20 October 2011

Tags in the Apertium stream format and dictionaries are ordered. Language pairs more or less stick to the same ordering conventions, with the main part-of-speech being first (after the lemma). The main rule-of-thumb is that tags that don't change within this lemma, go first. Nouns with gender typically have gender right after <n> (a different gender might make the word refer to something completely different), while tags like number follow gender (changing number doesn't change the meaning of the lemma).

Examples of typical tag order for some parts-of-speech:

    <vblex><past><p3><m><sg>

    <n><f><pl><def>

    <adj><posi><mf><sg><ind>

For noun with case, it's typically

<PoS><gender><number><case>

e.g.

<n><f><sg><nom>