Jump to content

User:So9q

From Wikifunctions

More about me on meta.

I'm interested in functions for Swedish and other languages I know.

Shortcuts

Generic helper functions

Add string suffix if not already present

Replace suffix

Swedish

All functions with ✓ below have been created and implemented by me. :)

Verbs

Fyra grupper för konjugering

Helper functions

Group 1

E.g. titta -> tittar

Group 2

E.g. köra -> kör, ringa -> ringer, söka -> sökte

de verb som slutar på -te i preteritum är de som slutar på en av följande bokstäver: k, p, t, s eller x.

Group 3

E.g. bo -> bor/bodde/bott

Group 4

Oregelbundna

E.g. dricka -> dricker/drack/druckit E.g. böra -> bör/borde/bort

Nouns

The purpose of these declension functions is to cover all nouns in Swedish. The first six classes are borrowed from Svenska Akademiens språklära. Unfortunately none of them account for the nouns in the seventh - ninth classes below.

Since a few nouns have no plural forms and a few have multiple plural forms we recommend to call the helper functions below first to avoid erroneous output.

Swedish noun helper functions

First declension

E.g. gata -> gator

Case Singular Plural
Indefinite Definite Indefinite Definite
Nominative - Z17725 Z17703 Z17915
Genitive Z18020 Z18066 Z18092 Z17918

Second declension

E.g. växel -> växlar

Case Singular Plural
Indefinite Definite Indefinite Definite
Nominative - Z17736 Z17721 Z17921
Genitive Z18020 Z18104 Z18108 Z17923

Third declension

E.g. student -> studenter

Case Singular Plural
Indefinite Definite Indefinite Definite
Nominative - Z17741 Z17745 Z17928
Genitive Z18020 Z18098 Z18101 Z17934

Fourth declension

E.g. fiende -> fiender

Case Singular Plural
Indefinite Definite Indefinite Definite
Nominative - Z17853 Z17749 Z17939
Genitive Z18020 Z18066 Z18095 Z17942

Fifth declension

E.g äpple -> äpplen

Case Singular Plural
Indefinite Definite Indefinite Definite
Nominative - Z17904 Z17791 Z17946
Genitive Z18020 Z18017 Z18066 Z17952

Sixth declension

E.g. lärare, bord

Case Singular Plural
Indefinite Definite Indefinite Definite
Nominative - Z17907 Z17783 Z17966
Genitive Z18020 Z18063 Z18020 Z17970

Seventh (vovel shortening only) declension

I invented this class to account for mus -> möss and similar nouns.

Case Singular Plural
Indefinite Definite Indefinite Definite
Nominative - Z17911 Z17822 Z18048
Genitive (no change) Z11602 Z18045 Z17822 Z18055

Eigth declension

I invented this class to account for öga -> ögon and similar nouns.

Case Singular Plural
Indefinite Definite Indefinite Definite
Nominative - Z17904 Z17827 Z18012
Genitive Z18020 Z18017 Z18026 Z18023

Ninth declension

I invented this class to account for huvud -> huvuden and similar nouns.

Case Singular Plural
Indefinite Definite Indefinite Definite
Nominative - Z17907 Z17832 Z18032
Genitive Z18020 Z18042 Z18039 Z18036

Sources

  • irregular nouns:
  • declensions:

Other functions

Affected by bugs or missing features

Affected by missing float type


Wikidata dependent functions

  • noun lexeme is endocentric compound? (Z18317): Accept a Lexeme ID, look it up in Wikidata and return True if P31→ statement is found, False if not. (takes LID, lookup in Wikidata and return True if P31-statement is found, False if not.
  • noun lexeme is exocentric compound? (takes LID, lookup in Wikidata and return True if P31-statement is found, False if not.
  • is noun lexeme? (Z19330): no description

Notes

  • {{section resolved|1=~~~~}}
  • {{Welcome/lang|user=|welcominguser=|1=~~~~}}