{-# LANGUAGE OverloadedStrings #-}
module Duckling.AmountOfMoney.KA.Corpus
( corpus
) where
import Data.String
import Prelude
import Duckling.AmountOfMoney.Types
import Duckling.Locale
import Duckling.Resolve
import Duckling.Testing.Types
corpus :: Corpus
corpus :: Corpus
corpus = (Context
testContext {locale :: Locale
locale = Lang -> Maybe Region -> Locale
makeLocale Lang
KA Maybe Region
forall a. Maybe a
Nothing}, Options
testOptions, [Example]
allExamples)
allExamples :: [Example]
allExamples :: [Example]
allExamples = [[Example]] -> [Example]
forall (t :: * -> *) a. Foldable t => t [a] -> [a]
concat
[ AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Dollar Double
1)
[ Text
"$1"
, Text
"ერთი დოლარი"
, Text
"1 დოლარი"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Dollar Double
10)
[ Text
"$10"
, Text
"$ 10"
, Text
"10$"
, Text
"10 დოლარი"
, Text
"ათი დოლარი"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Cent Double
10)
[ Text
"10 ცენტი"
, Text
"ათი ცენტი"
, Text
"10 c"
, Text
"10¢"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Dollar Double
1e4)
[ Text
"$10K"
, Text
"10k$"
, Text
"$10,000"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
USD Double
3.14)
[ Text
"USD3.14"
, Text
"3.14US$"
, Text
"US$ 3.14"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
EUR Double
20)
[ Text
"20\x20ac"
, Text
"20 ევრო"
, Text
"EUR 20"
, Text
"EUR 20.0"
, Text
"20€"
, Text
"20 €ur"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Pound Double
10)
[ Text
"\x00a3\&10"
, Text
"ათი ფუნტი"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Dollar Double
20.43)
[ Text
"$20 და 43c"
, Text
"20 დოლარი და 43c"
, Text
"20 დოლარი 43 ცენტი"
, Text
"ოცი დოლარი 43 ცენტი"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
GBP Double
3.01)
[ Text
"GBP3.01"
, Text
"GBP 3.01"
, Text
"3 GBP 1 პენსი"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
KWD Double
42)
[ Text
"42 KWD"
, Text
"42 ქუვეითური დინარი"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
LBP Double
42)
[ Text
"42 LBP"
, Text
"42 ლიბანური ფუნტი"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
EGP Double
42)
[ Text
"42 EGP"
, Text
"42 ეგვიპტური ფუნტი"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
QAR Double
42)
[ Text
"42 QAR"
, Text
"42 კატარული რიალი"
]
, AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> (Double, Double) -> AmountOfMoneyValue
between Currency
Dollar (Double
10, Double
20))
[ Text
"დაახლოებით 10-20 დოლარი"
, Text
"გძეტა $10-$20"
, Text
"10-20 დოლარი"
]
]