Apertium has moved from SourceForge to GitHub.
If you have any questions, please come and talk to us on #apertium on irc.freenode.net or contact the GitHub migration team.

Starting a new language with lttoolbox

From Apertium
(Difference between revisions)
Jump to: navigation, search
(The language)
(The language)
Line 18: Line 18:
   
 
===Paradigms===
 
===Paradigms===
  +
  +
Here we give four example paradigms.
   
 
;Masculine animate
 
;Masculine animate
   
 
{|class=wikitable
 
{|class=wikitable
! !! Singular !! Dual !! Plural
+
! !! Singular !! Dual !! Plural
 
|-
 
|-
| Nominative ||
+
| Nominative || nan || nan'''aj''' || nan'''ojo'''
 
|-
 
|-
| Genitive ||
+
| Genitive || nan'''a''' || nan'''ow''' || nan'''ow'''
 
|-
 
|-
| Dative ||
+
| Dative || nan'''ej''' || nan'''omaj''' || nan'''am'''
 
|-
 
|-
| Accusative ||
+
| Accusative || nan'''a''' || nan'''ow''' || nan'''ow'''
 
|-
 
|-
| Locative ||
+
| Instrumental || nan'''om''' || nan'''omaj''' || nan'''ami'''
 
|-
 
|-
| Instrumental ||
+
| Locative || nan'''je''' || nan'''omaj''' || nan'''ach'''
 
|-
 
|-
| Vocative ||
+
| Vocative || nan'''o'''! || nan'''aj'''! || nan'''ojo'''!
 
|-
 
|-
 
|}
 
|}

Revision as of 23:08, 20 December 2011

Contents

For information on how to install lttoolbox, see lttoolbox and minimal installation from SVN

This page is going to describe how to start a new language with lttoolbox. As lttoolbox is not really suited to agglutinative languages, or languages with complex and regular morphophonology (see starting a new language with HFST), we're going to work on one with simpler and less regular morphology.

Preliminaries

A morphological transducer in lttoolbox has typically one file, a .dix file. This defines both how morphemes in the language are joined together, morphotactics, and how changes happen when these morphemes are joined together, morphographemics (or morphophonology). For example,

  • Morphotactics: wolf<n><pl> → wolf + s
  • Morphographemics: wolf + s → wolves

These two phenomena are treated in the same file.

The language

The language we will be modelling is Upper Sorbian, a Slavic language spoken in Germany. There is a limited grammar available in English here and that is what we will be basing our analysis on. The part of speech we're going to look at for this small tutorial is nouns. Nouns in Upper Sorbian have seven cases (nominative, genitive, dative, accusative, locative, instrumental, vocative), three numbers (singular, dual, plural) and three genders (masculine, feminine, neuter). Like other Slavic languages, the category of animacy is distinguished in the masculine.

Paradigms

Here we give four example paradigms.

Masculine animate
Singular Dual Plural
Nominative nan nanaj nanojo
Genitive nana nanow nanow
Dative nanej nanomaj nanam
Accusative nana nanow nanow
Instrumental nanom nanomaj nanami
Locative nanje nanomaj nanach
Vocative nano! nanaj! nanojo!
Masculine inanimate
Feminine
Neuter

Lexicon

The basics

Compiling

Paradigms

Analysis and generation

Troubleshooting

Notes


Further reading

See also

Personal tools