ordinal-0.6.0.0: Convert numbers to words in different languages.
Maintainerhapytexeu+gh@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Numerals.Languages.Dutch

Description

This module contains logic to convert numbers to words in the Dutch language.

Synopsis

Num to word algorithm

dutch Source #

Arguments

:: NumeralsAlgorithm

A NumeralsAlgorithm that can be used to convert numbers to different formats.

A NumeralsAlgorithm to convert numbers to words in the Dutch language.

Convert a cardinal number to text

toCardinal' Source #

Arguments

:: Integral i 
=> i

The number to convert to text.

-> Text

The cardinal counterpart in Dutch.

Convert numers to their cardinal counterpart in Dutch.

Convert to ordinal

ordinize' :: Text -> Text Source #

A function that converts a number in words in cardinal form to ordinal form according to the Dutch language rules.

Constant words

negativeWord' :: Text Source #

The words used to mark a negative number in the Dutch language.

zeroWord' :: Text Source #

The word used for the number zero in the Dutch language.

oneWord' :: Text Source #

The word used for the number one in the Dutch language.

Names for numbers

lowWords' :: Vector Text Source #

A Vector that contains the word used for the numbers two to twenty in the Dutch language.

midWords' :: [(Integer, Text)] Source #

A list of 2-tuples that contains the names of values between thirty and thousand in the Dutch language.

highWords' :: HighNumberAlgorithm Source #

An algorithm to obtain the names of large numbers (one million or larger) in Dutch. Dutch uses a long scale with the iljoen and iljard suffixes.

Merge function

merge' :: Integral i => i -> i -> Text -> Text -> Text Source #

A merge function that is used to combine the names of words together to larger words, according to the Dutch grammar rules.