Maintainer | hapytexeu+gh@gmail.com |
---|---|
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
This module contains logic to convert numbers to words in the English language.
Num to word algorithm
:: NumeralsAlgorithm | A |
A NumeralsAlgorithm
to convert numbers to words in the English language.
Convert a cardinal number to text
Convert numers to their cardinal counterpart in English.
Convert to ordinal
ordinize' :: Text -> Text Source #
A function that converts a number in words in cardinal form to ordinal form according to the English language rules.
Constant words
negativeWord' :: Text Source #
The words used to mark a negative number in the English language.
Names for numbers
lowWords' :: Vector Text Source #
A Vector
that contains the word used for the numbers two to twenty in the English language.
midWords' :: [(Integer, Text)] Source #
A list of 2-tuples that contains the names of values between thirty and thousand in the English language.
highWords' :: HighNumberAlgorithm Source #
An algorithm to obtain the names of large numbers (one million or larger)
in English. English uses a short scale with the illion
suffix.