# Swedish Lexical Paradigms

Last update: 2006-06-22 21:39:41 CEST

- Parameters
- Nouns
  - Compound nouns
  - Relational nouns
  - Relational common noun phrases
  - Proper names and noun phrases
- Adjectives
  - Two-place adjectives
- Adverbs
- Verbs
  - Verbs with a particle.
  - Deponent verbs.
  - Two-place verbs
  - Three-place verbs
  - Other complement patterns

Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

Aarne Ranta 2001 - 2006

This is an API for the user of the resource grammar for adding lexical items. It gives functions for forming expressions of open categories: nouns, adjectives, verbs.

Closed categories (determiners, pronouns, conjunctions) are accessed through the resource syntax API, `Structural.gf`.

The main difference with `MorphoSwe.gf` is that the types referred to are compiled resource grammar types. We have moreover had the design principle of always having existing forms, rather than stems, as string arguments of the paradigms.

The structure of functions for each word class `C` is the following: first we give a handful of patterns that aim to cover all regular cases. Then we give a worst-case function `mkC`, which serves as an escape to construct the most irregular words of type `C`. However, this function should only seldom be needed: we have a separate module `IrregSwe`, which covers many irregular verbs.

        resource ParadigmsSwe =
          open
            (Predef=Predef),
            Prelude,
            CommonScand,
            ResSwe,
            MorphoSwe,
            CatSwe in {

## Parameters

To abstract over gender names, we define the following identifiers.

        oper
          Gender : Type ;

          utrum     : Gender ;
          neutrum   : Gender ;

To abstract over number names, we define the following.

          Number : Type ;

          singular : Number ;
          plural   : Number ;

To abstract over case names, we define the following.

          Case : Type ;

          nominative : Case ;
          genitive   : Case ;

Prepositions used in many-argument functions are just strings.

          mkPrep : Str -> Prep ;
          noPrep : Prep ;         -- empty string

## Nouns

Worst case: give all four forms. The gender is computed from the last letter of the second form (if n, then `utrum`, otherwise `neutrum`).

          mkN  : (apa,apan,apor,aporna : Str) -> N ;

The regular function takes the singular indefinite form and computes the other forms and the gender by a heuristic. The heuristic is currently to treat all words ending with a like flicka, with e like rike, and otherwise like bil. If in doubt, use the `cc` command to test!

          regN : Str -> N ;

Adding the gender manually greatly improves the correction of `regN`.

          regGenN : Str -> Gender -> N ;

In practice the worst case is often just: give singular and plural indefinite.

          mk2N : (nyckel,nycklar : Str) -> N ;

This heuristic takes just the plural definite form and infers the others. It does not work if there are changes in the stem.

          mk1N : (bilarna : Str) -> N ;

### Compound nouns

All the functions above work quite as well to form compound nouns, such as fotboll.

### Relational nouns

Relational nouns (dotter till x) need a preposition.

          mkN2 : N -> Prep -> N2 ;

The most common preposition is av, and the following is a shortcut for regular, `nonhuman` relational nouns with av.

          regN2 : Str -> Gender -> N2 ;

Use the function `mkPreposition` or see the section on prepositions below to form other prepositions.

Three-place relational nouns (förbindelse från x till y) need two prepositions.

          mkN3 : N -> Prep -> Prep -> N3 ;

### Relational common noun phrases

In some cases, you may want to make a complex `CN` into a relational noun (e.g. den före detta maken till). However, `N2` and `N3` are purely lexical categories. But you can use the `AdvCN` and `PrepNP` constructions to build phrases like this.

### Proper names and noun phrases

Proper names, with a regular genitive, are formed as follows

          regGenPN : Str -> Gender -> PN ;
          regPN    : Str -> PN ;            -- utrum

Sometimes you can reuse a common noun as a proper name, e.g. Bank.

          nounPN : N -> PN ;

To form a noun phrase that can also be plural and have an irregular genitive, you can use the worst-case function.

          mkNP : Str -> Str -> Number -> Gender -> NP ;

## Adjectives

Adjectives may need as many as seven forms.

          mkA : (liten, litet, lilla, sma, mindre, minst, minsta : Str) -> A ;

The regular pattern works for many adjectives, e.g. those ending with ig.

          regA : Str -> A ;

Just the comparison forms can be irregular.

          irregA : (tung,tyngre,tyngst : Str) -> A ;

Sometimes just the positive forms are irregular.

          mk3A : (galen,galet,galna : Str) -> A ;
          mk2A : (bred,brett        : Str) -> A ;

Comparison forms may be compound (mera svensk - mest svensk).

          compoundA : A -> A ;

### Two-place adjectives

Two-place adjectives need a preposition for their second argument.

          mkA2 : A -> Prep -> A2 ;

## Adverbs

Adverbs are not inflected. Most lexical ones have position after the verb. Some can be preverbal in subordinate position (e.g. alltid).

          mkAdv : Str -> Adv ;  -- här
          mkAdV : Str -> AdV ;  -- alltid

Adverbs modifying adjectives and sentences can also be formed.

          mkAdA : Str -> AdA ;

## Verbs

The worst case needs five forms.

          mkV : (supa,super,sup,söp,supit,supen : Str) -> V ;

The 'regular verb' function is inspired by Lexin. It uses the present tense indicative form. The value is the first conjugation if the argument ends with ar (tala - talar - talade - talat), the second with er (leka - leker - lekte - lekt, with the variations like gräva, vända, tyda, hyra), and the third in other cases (bo - bor - bodde - bott).

          regV : (talar : Str) -> V ;

The almost regular verb function needs the infinitive and the preteritum. It is not really more powerful than the new implementation of `regV` based on the indicative form.

          mk2V : (leka,lekte : Str) -> V ;

There is an extensive list of irregular verbs in the module `IrregSwe`. In practice, it is enough to give three forms, as in school books.

          irregV : (dricka, drack, druckit : Str) -> V ;

### Verbs with a particle.

The particle, such as in passa på, is given as a string.

          partV  : V -> Str -> V ;

### Deponent verbs.

Some words are used in passive forms only, e.g. hoppas, some as reflexive e.g. ångra sig.

          depV  : V -> V ;
          reflV : V -> V ;

### Two-place verbs

Two-place verbs need a preposition, except the special case with direct object. (transitive verbs). Notice that a particle comes from the `V`.

          mkV2  : V -> Prep -> V2 ;

          dirV2 : V -> V2 ;

### Three-place verbs

Three-place (ditransitive) verbs need two prepositions, of which the first one or both can be absent.

          mkV3     : V -> Prep -> Prep -> V3 ; -- tala, med, om
          dirV3    : V -> Prep -> V3 ;         -- ge, (acc),till
          dirdirV3 : V -> V3 ;                 -- ge, (dat), (acc)

### Other complement patterns

Verbs and adjectives can take complements such as sentences, questions, verb phrases, and adjectives.

          mkV0  : V -> V0 ;
          mkVS  : V -> VS ;
          mkV2S : V -> Prep -> V2S ;
          mkVV  : V -> VV ;
          mkV2V : V -> Prep -> Prep -> V2V ;
          mkVA  : V -> VA ;
          mkV2A : V -> Prep -> V2A ;
          mkVQ  : V -> VQ ;
          mkV2Q : V -> Prep -> V2Q ;

          mkAS  : A -> AS ;
          mkA2S : A -> Prep -> A2S ;
          mkAV  : A -> AV ;
          mkA2V : A -> Prep -> A2V ;

Notice: categories `V2S, V2V, V2A, V2Q` are in v 1.0 treated just as synonyms of `V2`, and the second argument is given as an adverb. Likewise `AS, A2S, AV, A2V` are just `A`. `V0` is just `V`.

          V0, V2S, V2V, V2A, V2Q : Type ;
          AS, A2S, AV, A2V : Type ;