Skip to content
Istvan SZALAÏ edited this page Jun 27, 2018 · 1 revision

fi (Finnish)

case: one of the following: nominative, genitive, partitive, inessive, elative, illative, adessive, ablative, allative, essive, translative, instructive, abessive, comitative. Defaults to nominative:

>>> num2words(42, lang='fi')
neljäkymmentäkaksi
>>> num2words(42, lang='fi', case='genitive')
neljänkymmenenkahden
>>> num2words(42, lang='fi', case='comitative')
neljinekymmeninekaksine
>>> num2words(42, lang='fi', to='ordinal', case='comitative')
neljänsinekymmenensinetoisine

plural: make the output words plural:

>>> num2words(42, lang='fi', plural=True)
neljätkymmenetkahdet
>>> num2words(42, lang='fi', case='essive', plural=True)
neljinäkymmeninäkaksina
>>> # same in plural
>>> num2words(42, lang='fi', case='comitative', plural=True)
neljinekymmeninekaksine

prefer: which case marker to use when there are multiple options:

>>> num2words(8, lang='fi', case="genitive", plural=True)
kahdeksien
>>> num2words(8, lang='fi', case="genitive", plural=True, prefer=["ain"])
kahdeksain
Clone this wiki locally