Safe Haskell | None |
---|---|
Language | Haskell98 |
- cardinal :: Integral a => Inflection -> a -> Maybe Text
- rule :: Integral a => Rule a
- cardinalRepr :: Repr
- symMap :: Integral a => Map a (Ctx Exp -> Text)
- forms :: Text -> Text -> Text -> Text -> Text -> Ctx Exp -> Text
- type PostfixRepr = Inflection -> Ctx Exp -> Text
- scaleRepr :: PostfixRepr -> [(Integer, Ctx Exp -> Text)] -> ScaleRepr
- pelletierRepr :: PostfixRepr -> PostfixRepr -> [(Integer, Ctx Exp -> Text)] -> ScaleRepr
- quantityName :: Text -> Text -> PostfixRepr
- ordQuantityName :: Text -> Text -> Text -> Text -> PostfixRepr
Documentation
cardinalRepr :: Repr Source #
type PostfixRepr Source #
= Inflection | Current inflection. |
-> Ctx Exp | Context. |
-> Text | Postfix representation. |
Function that renders the postfix part of a large number name. Or more simply put, this calculates the "illion" part of "million", "billion", etc.
:: PostfixRepr | Postfix for offset 0 names. |
-> PostfixRepr | Postfix for offset 3 names. |
-> [(Integer, Ctx Exp -> Text)] | Additional symbol map entries. |
-> ScaleRepr |
quantityName :: Text -> Text -> PostfixRepr Source #
ordQuantityName :: Text -> Text -> Text -> Text -> PostfixRepr Source #