Inflectional paradigms

From UNL Wiki
(Difference between revisions)
Jump to: navigation, search
Admin (Talk | contribs)
(New page: Inflectional paradigms are used to generate the inflected forms out of the lemma. == When to use inflectional paradigms == Inflectional paradigms must be used in the case of inflectiona...)
Newer edit →

Revision as of 11:39, 11 August 2009

Inflectional paradigms are used to generate the inflected forms out of the lemma.

Contents

When to use inflectional paradigms

Inflectional paradigms must be used in the case of inflectional words (such as nouns, adjectives and verbs), regardless if they are regular or not.

When not to use inflectional paradigms

Inflectional paradigms should not be used in the case of uninflected words (such as adverbs) or already inflected verbs (such as personal pronouns).

Syntax

Inflectional paradigm rules follow the UNL syntactic general formalism:

<DICTIONARY ATTRIBUTE VALUES> “:=” <ACTION> [“,” <ACTION>]*

where

<DICTIONARY ATTRIBUTE VALUES> is a set dictionary tags extracted from the UNL Dictionary Tagset
<ACTION> is the action to be performed in the event of the dictionary value (see below)
“ “ = constant
[ ] = optional
* to be repeated zero or more times

Dictionary Attribute Values

The dictionary attribute values should comply with the UNL Dictionary Tagset. They can be used in isolation or conjoined by “&”.

PLR (= PLURAL)
1PS&ET1&IND (= FIRST PERSON OF SINGULAR [1PS] + PRESENT [ET1] + INDICATIVE [ IND])

Actions

There are three different types of actions that can be performed over the entries. The syntax for each of them is depicted below: {- border="1" cellpadding="5" align="center" !Type !Syntax |- |left appending |<LEFT DELETION>”<”<LEFT ADDITION> |- |right appending <RIGHT ADDITION>”>”<RIGHT DELETION> |- |replacement |”<SOURCE>”:”<TARGET> |}

where <LEFT DELETION> is the string (between double quotes) or the number of characters from the beginning of the entry to be deleted before the addition of the LEFT ADDITION <LEFT ADDITION> is the string to be added to beginning of the entry <RIGHT DELETION> is the string (between double quotes) or the number of characters from the end of the entry to be deleted before the addition of the RIGHT ADDITION <RIGHT ADDITION> is the string to be added to the end of the entry <SOURCE> is the string (between double quotes) to be replaced (if empty, it means that the whole string will be replaced). It can also be the interval of characters to be replaced. In this case, the number of the beginning character and of the ending character should be informed between square brackets and should be separated with a semicolon. <TARGET> is the form to be used instead of the source (if empty, it means that the whole entry should be deleted)

Examples

TYPE RULE BEHAVIOR EXAMPLES right appending PLR:=”y”>”ies” in case of the feature “PLR” (=plural), the rightmost "y" will be deleted and the "ies" string will be added to the right of the entry baby>babies lady>ladies PLR:=1>”ies” in case of the feature “PLR” (=plural), the rightmost character will be deleted and the "ies" string will be added to the right of the entry left appending NOT:=<”un” in case of the feature NOT (=negation), the string "un" will be added to the left of the entry, and nothing will be deleted dress>undress NOT:=0<”un” replacement PLR:=”oo”:”ee” in case of the feature "PLR” (=plural), the "oo" string will be replaced by "ee" foot>feet tooth>teeth PLR:=[2;3]:”ee” in case of the feature "PLR” (=plural), the string "ee" will replace the string that goes from the second to the third character 1PS&ET1&IND:=”am” in case of the features “1PS” (=first person of singular) AND “ET1” (=present tense) AND “IND” (indicative), the whole string will be replaced by “am” be>am

Software