User talk:Mike/sv-noun

From Wiktionary, the free dictionary
Jump to navigation Jump to search
gender definite suffix plural suffix examples
common -n -ar tumme - tumme/n - tumm/ar - tumm/arna - (tum-)
bro - bro/n - bro/ar - bro/arna - (bro-)
fjäder - fjäder/n - fjädr/ar - fjädr/arna - (fjäder-)
-er dator - dator/n - dator/er - dator/erna - (dator-)
bräda - bräda/n - bräd/er1 - bräd/erna - (bräd-)
-or penna - penna/n - penn/or - penn/orna - (penn-)
vara - vara/n - var/or - var/orna - (varu-)
kvinna - kvinna/n - kvinn/or - kvinn/orna - (kvinno-)
-r sko - sko/n - sko/r - sko/rna - (sko-)
- mjölke - mjölke/n - — - — - (?)
-en -ar bil - bil/en - bil/ar - bil/arna - (bil-)
lie - li/en - li/ar - li/arna - (lie-)
-er bild - bild/en - bild/er - bild/erna - (bild-, bilder-)
and - and/en - änd/er - änd/erna - (and-)
-or ros - ros/en - ros/or - ros/orna - (ros-, rosen-)
-0 öl - öl/en - öl - öl/en - (öl-)
användare - användar/en - användare - användar/na - (användar-)
man - mann/en - män - männ/en - (man-)
- mjölk - mjölk/en - — - — - (mjölk-)
-(e)n -ar nyckel - nyckel/n, (nyckl/en, nyckel/en)* - nyckl/ar - nyckl/arna - (nyckel-)
himmel - himl/en, (himmel/n, himmel/en)* - himl/ar - himl/arna - (himmel-, himmels-, himla-)
-er filosofi - filosofi/n, filosofi/en* - filosofi/er - filosofi/erna - (filosofi-)
-0 - beundran - beundran - — - — - (beundrans-)
önskan - önskan - — - — - (önske-)
neuter -t -n äpple - äpple/t - äpple/n - äpple/na - (äpple-, äppel-)
-on öga - öga/t - ög/on - ög/onen - (ögon-)
- syre - syre/t - — - — - (syre-)
-et -er vin - vin/et - vin/er - vin/erna - (vin-)
akvarium - akvari/et - akvari/er - akvari/erna - (akvarie-)
-0 hus - hus/et - hus - hus/en - (hus-)
fönster - fönstr/et - fönster - fönstr/en - (fönster-)
centrum - centrum/et - centrum - centrum/en - (centrum-)
rum - rumm/et - rum - rumm/en - (rums-)
- vatten - vattn/et - — - — - (vatten-)
trä - trä/et - — - — - (trä-)
-(e)t -n bi - bi/et, bi/t - bi/n - bi/na - (bi-)
*Are these alternative spellings common enough to warrant places on the main inflection line or should they simply be mentioned under a Grammar header?
1Also with -or plural.



(endings in def. pl.)

-n + -ar, -er, -or, -r -> -na
-en + -ar, -er, -or -> -na
-en + -0 -> -na or -en 
-t + -n -> -a
-t + -on -> -en
-et + -er -> -na
-et + -0 -> -en



Test uses of the template: (down to one word needing to be given one parameter more than I had hoped to require) Please, if I've forgotten some set of words inflecting in a manner unrecognized by the present template, help me identify them! Or if I have overlooked some error amongst those I already added.

ToDo:[edit]

  • If cmp= is left out, should one assume:
    • that the word does not form compounds, or
    • that the user forgot/didn't know, or
    • that the compound is formed without any special forms? (May be unwise, as very many words which are already compounds take a "-s-")
  • Change the parameter head= into several parts (head1=, head2=,...) which the user doesn't have to link, but which the template anchors correctly/automatically.
  • Documentation!
  • Check such that it never hurts to give a stem extra! (the extra forms now given to "nyckel" or "himmel" (se below) may very well be guilty of misbehaviour in this respect).
  • Non'standard' forms (e.g. "centra" or "centrer" versus "centrum" as indef. plural of "centrum"). Do they:
    • necessitate multiple, sequential uses of the template?
    • require overriding, named parameters to add secondary option?
    • look better with a completely new - for-use-at-irregular-nouns-only - template which allows specification of each form separately?
  • And finally, Documentation!! (It's not exactly trivial to use, as it is...)

First shot on doc's[edit]

There are words for which this template is easy to use, and there are other words...

First declination (plural -or)
;;definite -n: e.g. lampa: {{User:Mike/sv-noun||n|lamp|or}}



The template takes up to five parameters, though some pain has been taken to make sure the fifth parameter should be required extremely rarely, and that two other parameters (number 1 and 3) should be able to be skipped in the majority of cases.

The principle is that the the first two parameters taken together should form the definite singular, while param's 3 and 4 taken together should form the indefinite plural, but that if 1 or 3 is dropped, the headword is silently assumed.

But then, there are the details, mainly accessed through particular, very careful, choices of the parameters 2 and 4....

Indefinite singular.
Pagename
Definite singular
<stem> + <ending>, where the stem is {1}, if exists, or else {PAGENAME}. The ending is determined (mainly) by {2} (there are a few exceptions/special cases, see table.)
Indefinite plural
<stem> + <ending>, where the stem is looked for first in {3}, then in {1}, last in {PAGENAME}. The ending is given by {4}.
definite plural
<stem> + <ending>, where the stem is looked for first in {5} (this should be *extremely* rarely needed), then in {3}, then in {1} and last in {PAGENAME}. (Again, there are exceptions based on which endings are used!!) The ending is determined by {2} and {4} together, in an algorithm which can be seen in the source code. It *should* always be possible to get this correct, by the right choices of stems and endings...

Here, (1) stands for the value of the first parameter (if not given, the pagename), and (3) the value of the third parameter (if not given, parameter 1, or if necessary, the pagename)

parameter {2} (ending for definite singular)
en n (e)n2 at3 et t (e)t 05
parameter {4}
(ending for indefinite plural)
ar Mike/sv-noun c (definite (1)en, plural (3)ar, definite plural (3)arna)
(bil: ||en||ar)
Mike/sv-noun c (definite (1)n, plural (3)ar, definite plural (3)arna)
(bro: ||n||ar)
Mike/sv-noun c (definite (1)n, (1)en , ((3)en), plural (3)ar, definite plural (3)arna)1
(nyckel:||(e)n|nyckl|ar)
U
n
n
e
c
e
s
s
a
r
y
?
- - - Mike/sv-noun c (definite Mike/sv-noun, plural (3)ar, definite plural (3)na)
(orden: ||0|ordn|ar)
er Mike/sv-noun c (definite (1)en, plural (3)er, definite plural (3)erna)
(bok: ||en|böck|er)
Mike/sv-noun c (definite (1)n, plural (3)er, definite plural (3)erna)
(dator: ||n||er)
Mike/sv-noun c (definite (1)n, (1)en , ((3)en), plural (3)er, definite plural (3)erna)
(filosofi: ||(e)n||er)10
Mike/sv-noun n (definite (1)et, plural (3)er, definite plural (1)erna)
(vin: ||et||er)
- Mike/sv-noun n (definite (1)t, (1)et, plural (3)er, definite plural (1)erna)
(batteri: ||(e)t||er)
-
or Mike/sv-noun c (definite (1)en, plural (3)or, definite plural (3)orna)
(ros: ||en||or)
Mike/sv-noun c (definite (1)n, plural (3)or, definite plural (3)orna)
(penna: ||n|penn|or)
- - - - -
r ? Mike/sv-noun c (definite (1)n, plural (3)r, definite plural (3)rna)
(sko: ||n||r)
? - ? - -
e Mike/sv-noun c (definite (1)en, plural (3)e, definite plural (3)na)
(användare: |användar|en||e)8
Mike/sv-noun c (definite (1)n, plural (3)e, definite plural (3)na)
(användare: ||en|användar|e)8
- - - - -
on - - - - Mike/sv-noun n (definite Mike/sv-nount, plural (3)on, definite plural (3)onen)4
(öga: ||t|ög|on)
- -
n - - - - Mike/sv-noun n (definite (1)t, plural (3)n, definite plural (1)na)
(äpple: ||t||n)
Mike/sv-noun n (definite (1)t, (1)et, plural (3)n, definite plural (1)na)
(bi: ||(e)t||n)
-
05 Mike/sv-noun c (definite (1)en, plural (3), definite plural (3)en)
(öl: ||en||0)
(man: |mann|en|män|0|männ)
-9 - Mike/sv-noun n (definite (1)et, plural (3), definite plural (1)en)
(kök: ||et||0)
(papper: ||et||0)11,
(papper: pappr|et|papper|0)
- - Mike/sv-noun c (definite (1), plural (3), definite plural Mike/sv-noun)
(gående: ||0||0)
<empty>6 Mike/sv-noun c (definite (1)en, uncountable)
(mjölk: ||en)
Mike/sv-noun c (definite (1)n, uncountable)
(juice: ||n)
- Mike/sv-noun n (definite (1)et, uncountable)
(vin: ||et)
Mike/sv-noun n (definite (1)t, uncountable)
(gående: ||t)
Mike/sv-noun n (definite (1)t, (1)et, uncountable)
(trä: ||(e)t)
Mike/sv-noun c (definite (1), uncountable)
(?)7
0 Should never occur.
1 Warning: This combination of parameters 2 and 4 *will* make the template behave differently depending on whether parameter 3 is empty or not! (This is to allow for the nouns which in lemma form ends in -el, which usually admits def. sing. as -eln, -elen, or colloquially, -len. The present use is chosen because only those words which plural finishes in -lar (and hence require a given parameter 3) should be affected by this. (Though I cannot at the moment find any word which wouldn't need said third parameter... well, maybe I find something)
2 An automatic warning about the -en alternative being less commonly used, could be useful.
3 Ok, why did I add this? It looks broken: no definite plural...
4 Warning: Parameter 1 *must* be empty.
5 No ending.
6 Uncountable.
7 I have suggestions for examples, but I'm uncertain of whether they really are uncountable....
8 Two options which turns out to be equivalent. See also 9.
9 One could think that användare would fit here, but that would cause problems with the definite plural... :(
10 The code I use here is not exactly the code used in the article; as noted in note 1, the presence of parameter 3 affects the display, and this instance is an example on how that happens. In an actual article, the parameter 3 should not be used, and hence it wouldn't display what here appears as "(3)en".
11 Two acceptable alternatives; is it possible to merge them through some clever code?

And in general, there are cases where one should be able to supply one or several alternative forms...

The table also lacks the "substantified" version of certain adjectives - they have a common ending -e or -a in all forms except the nominative indefinite singular.

Examples[edit]

(please imagine the headword instead of "Mike/sv-noun"...)

tumme
{{user:Mike/sv-noun|tumm|en||ar|cmp=tum-}}
Mike/sv-noun c (definite tummen, plural tummar, definite plural tummarna, compounds tum-)
{{user:Mike/sv-noun||n|tumm|ar|cmp=tum-}}
Mike/sv-noun c (definite Mike/sv-nounn, plural tummar, definite plural tummarna, compounds tum-)
bro
{{user:Mike/sv-noun||n||ar|cmp=bro-}}
Mike/sv-noun c (definite Mike/sv-nounn, plural Mike/sv-nounar, definite plural Mike/sv-nounarna, compounds bro-)
fjäder
{{user:Mike/sv-noun||n|fjädr|ar|cmp=fjäder-}}
Mike/sv-noun c (definite Mike/sv-nounn, plural fjädrar, definite plural fjädrarna, compounds fjäder-)
dator
{{user:Mike/sv-noun||n||er}}
Mike/sv-noun c (definite Mike/sv-nounn, plural Mike/sv-nouner, definite plural Mike/sv-nounerna)
bräda
{{user:Mike/sv-noun||n|bräd|er|cmp=bräd-}}
Mike/sv-noun c (definite Mike/sv-nounn, plural bräder, definite plural bräderna, compounds bräd-)
{{user:Mike/sv-noun||n|bräd|or|cmp=bräd-}}
Mike/sv-noun c (definite Mike/sv-nounn, plural brädor, definite plural brädorna, compounds bräd-)
penna
{{user:Mike/sv-noun||n|penn|or|cmp=penn-}}
Mike/sv-noun c (definite Mike/sv-nounn, plural pennor, definite plural pennorna, compounds penn-)
vara
{{user:Mike/sv-noun||n|var|or|cmp=varu-}}
Mike/sv-noun c (definite Mike/sv-nounn, plural varor, definite plural varorna, compounds varu-)
kvinna
{{user:Mike/sv-noun||n|kvinn|or|cmp=kvinno-}}
Mike/sv-noun c (definite Mike/sv-nounn, plural kvinnor, definite plural kvinnorna, compounds kvinno-)
sko
{{user:Mike/sv-noun||n||r|cmp=sko-}}
Mike/sv-noun c (definite Mike/sv-nounn, plural Mike/sv-nounr, definite plural Mike/sv-nounrna, compounds sko-)
mjölke
{{user:Mike/sv-noun||n|cmp=mjölke-}}
Mike/sv-noun c (definite Mike/sv-nounn, uncountable, compounds mjölke-)
bil
{{user:Mike/sv-noun||en||ar|cmp=bil-}}
Mike/sv-noun c (definite Mike/sv-nounen, plural Mike/sv-nounar, definite plural Mike/sv-nounarna, compounds bil-)
lie
{{user:Mike/sv-noun|li|en||ar|cmp=lie-}}
Mike/sv-noun c (definite lien, plural liar, definite plural liarna, compounds lie-)
{{user:Mike/sv-noun||n|li|ar|cmp=lie-}}
Mike/sv-noun c (definite Mike/sv-nounn, plural liar, definite plural liarna, compounds lie-)
bild
{{user:Mike/sv-noun||en||er|cmp=bild-}}
Mike/sv-noun c (definite Mike/sv-nounen, plural Mike/sv-nouner, definite plural Mike/sv-nounerna, compounds bild-)
and
{{user:Mike/sv-noun||en|änd|er|cmp=and-}}
Mike/sv-noun c (definite Mike/sv-nounen, plural änder, definite plural änderna, compounds and-)
ros
{{user:Mike/sv-noun||en||or|cmp=ros-}}
Mike/sv-noun c (definite Mike/sv-nounen, plural Mike/sv-nounor, definite plural Mike/sv-nounorna, compounds ros-)
öl
{{user:Mike/sv-noun||en||0|cmp=öl-}}
Mike/sv-noun c (definite Mike/sv-nounen, plural Mike/sv-noun, definite plural Mike/sv-nounen, compounds öl-)
{{user:Mike/sv-noun||et||0|cmp=öl-}}
Mike/sv-noun n (definite Mike/sv-nounet, plural Mike/sv-noun, definite plural Mike/sv-nounen, compounds öl-)
användare
{{user:Mike/sv-noun|användar|en||e|cmp=användar-}}
Mike/sv-noun c (definite användaren, plural användare, definite plural användarna, compounds användar-)
{{user:Mike/sv-noun||n|användar|e|cmp=användar-}}
Mike/sv-noun c (definite Mike/sv-nounn, plural användare, definite plural användarna, compounds användar-)
{{user:Mike/sv-noun|användar|(e)n||e|cmp=användar-}}
Mike/sv-noun c (definite användarn, användaren , plural användare, definite plural användarna, compounds användar-)
man
{{user:Mike/sv-noun|mann|en|män|0|männ|cmp=man-}}
Mike/sv-noun c (definite mannen, plural män, definite plural männen, compounds man-, mans-, manna-)<<<!>>>
{{user:Mike/sv-noun|man|en||ar||cmp=man-}}
Mike/sv-noun c (definite manen, plural manar, definite plural manarna, compounds man-)
mjölk
{{user:Mike/sv-noun||en|cmp=mjölk-}}
Mike/sv-noun c (definite Mike/sv-nounen, uncountable, compounds mjölk-)
nyckel
{{user:Mike/sv-noun||(e)n|nyckl|ar|cmp=nyckel-}}
Mike/sv-noun c (definite Mike/sv-nounn, Mike/sv-nounen , (nycklen), plural nycklar, definite plural nycklarna, compounds nyckel-)
himmel
{{user:Mike/sv-noun||(e)n|himl|ar|cmp=[[himmel-]], [[himla-]]}}
Mike/sv-noun c (definite Mike/sv-nounn, Mike/sv-nounen , (himlen), plural himlar, definite plural himlarna, compounds himmel-, himla-)
Mike/sv-noun c (definite himmeln, himmelen , (himlen), plural himlar, definite plural himlarna, compounds himmel-, himla-)
filosofi
{{user:Mike/sv-noun||(e)n||er|cmp=filosofi-}}
Mike/sv-noun c (definite Mike/sv-nounn, Mike/sv-nounen , plural Mike/sv-nouner, definite plural Mike/sv-nounerna, compounds filosofi-)
beundran
{{user:Mike/sv-noun||0|cmp=[[beundrans-]], [[beundrar-]]}}
Mike/sv-noun c (definite Mike/sv-noun, uncountable, compounds beundrans-, beundrar-)
önskan
{{user:Mike/sv-noun||0|cmp=önske-}}
Mike/sv-noun c (definite Mike/sv-noun, uncountable, compounds önske-)
gående
{{user:Mike/sv-noun||0||0}}
Mike/sv-noun c (definite Mike/sv-noun, plural Mike/sv-noun, definite plural Mike/sv-noun)
{{user:Mike/sv-noun||t}}
Mike/sv-noun n (definite Mike/sv-nount, uncountable)
äpple
{{user:Mike/sv-noun||t||n|cmp=[[äppel-]], [[äpple-]]}}
Mike/sv-noun n (definite Mike/sv-nount, plural Mike/sv-nounn, definite plural Mike/sv-nounna, compounds äppel-, äpple-)
öga
{{user:Mike/sv-noun||t|ög|on|cmp=ögon-}}
Mike/sv-noun n (definite Mike/sv-nount, plural ögon, definite plural ögonen, compounds ögon-)
syre
{{user:Mike/sv-noun||t|cmp=[[syr-]], [[syre-]]}}
Mike/sv-noun n (definite Mike/sv-nount, uncountable, compounds syr-, syre-)
vin
{{user:Mike/sv-noun||et||er|cmp=vin-}}
Mike/sv-noun n (definite Mike/sv-nounet, plural Mike/sv-nouner, definite plural Mike/sv-nounerna, compounds vin-)
{{user:Mike/sv-noun||et|cmp=vin-}}
Mike/sv-noun n (definite Mike/sv-nounet, uncountable, compounds vin-)
batteri
{{user:Mike/sv-noun||et||er|cmp=batteri-}}
Mike/sv-noun n (definite Mike/sv-nounet, plural Mike/sv-nouner, definite plural Mike/sv-nounerna, compounds batteri-)
akvarium
{{user:Mike/sv-noun|akvari|et||er|cmp=akvarie-}}
Mike/sv-noun n (definite akvariet, plural akvarier, definite plural akvarierna, compounds akvarie-)
hus
{{user:Mike/sv-noun||et||0|cmp=hus-}}
Mike/sv-noun n (definite Mike/sv-nounet, plural Mike/sv-noun, definite plural Mike/sv-nounen, compounds hus-)
fönster
{{user:Mike/sv-noun|fönstr|et|fönster|0|cmp=fönster-}}
Mike/sv-noun n (definite fönstret, plural fönster, definite plural fönstren, compounds fönster-)
centrum
{{user:Mike/sv-noun||et||0|cmp=centrum-}}
Mike/sv-noun n (definite Mike/sv-nounet, plural Mike/sv-noun, definite plural Mike/sv-nounen, compounds centrum-)
rum
{{user:Mike/sv-noun|rumm|et|rum|0|cmp=[[rum-]], [[rums-]]}}
Mike/sv-noun n (definite rummet, plural rum, definite plural rummen, compounds rum-)
vatten
{{user:Mike/sv-noun|vattn|et|vatten|0|cmp=vatten-}}
Mike/sv-noun n (definite vattnet, plural vatten, definite plural vattnen, compounds vatten-)
trä
{{user:Mike/sv-noun||(e)t|cmp=trä-}}
Mike/sv-noun n (definite Mike/sv-nount, Mike/sv-nounet, uncountable, compounds trä-)
bi
{{user:Mike/sv-noun||(e)t||n|cmp=bi-}}
Mike/sv-noun n (definite Mike/sv-nount, Mike/sv-nounet, plural Mike/sv-nounn, definite plural Mike/sv-nounna, compounds bi-)
croupier
{{user:Mike/sv-noun||(e)n||er}}
Mike/sv-noun c (definite Mike/sv-nounn, Mike/sv-nounen , plural Mike/sv-nouner, definite plural Mike/sv-nounerna)
superlångsammansättning
{{user:Mike/sv-noun||en||ar|cmp=superlångsammansättnings-|head=[[super]][[lång]][[samman]][[sätta|sätt]][[-ning|ning]]}}
superlångsammansättning c (definite Mike/sv-nounen, plural Mike/sv-nounar, definite plural Mike/sv-nounarna, compounds superlångsammansättnings-)