{-# LANGUAGE OverloadedStrings #-}
module Duckling.Quantity.FR.Corpus
( corpus ) where
import Prelude
import Data.String
import Duckling.Locale
import Duckling.Quantity.Types
import Duckling.Resolve
import Duckling.Testing.Types
corpus :: Corpus
corpus :: Corpus
corpus = (Context
testContext {locale :: Locale
locale = Lang -> Maybe Region -> Locale
makeLocale Lang
FR 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
[ QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Cup Double
2 (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
"café"))
[ Text
"2 tasses de café"
]
, QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Cup Double
1 Maybe Text
forall a. Maybe a
Nothing)
[ Text
"une Tasse"
]
, QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Tablespoon Double
3 (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
"sucre"))
[ Text
"3 Cuillères à soupe de sucre"
]
]