Become a language pair developer for Apertium

From Apertium
Revision as of 20:06, 18 December 2011 by BrendenD14 (talk | contribs)
Jump to navigation Jump to search

Step 1: Adding to the First Dictionary

When adding entries, you have to enter the lemma (word as you would read it in a dictionary),the part between <i> and </i> that contains the prefix of the word that is common to all inflected forms, and the element in <par> that refers to the inflection paradigm of this word. All entries will have a basic structure like:

      <e lm="(lemma)">
        <par n="(paradigm)"/>

Start by opening your first language's dictionary file. For example: (an XML file).

Then, create a new entry with the basic structure.

Now, between the quotes in the area where it says "(lemma)" replace (lemma) with your word. Note: Do not include () in entries, but place input between "".

Next, you can enter the prefix in the space between <i> and </i> and replace (prefix).

Finally, enter the paradigm in <par> between the quotations. The paradigm should consist of the prefix of another word that has the same inflection and is already in the dictionary and has the morphological analysis: adj m sg, adj f sg, adj m pl and adj f pl respectively. For example: <par n="absolut/o__adj"/>

Now, save your altered dictionary, and DO NOT change file name, directory, or file type.

To finish, use the Terminal and enter make <apertiummodule>. Replace <apertiummodule> with your module name. For example: make apertium-en-es. Now press the "Enter" key and allow you computer to recompile the module with the changes you just made.