{-# LANGUAGE OverloadedStrings #-}
module Duckling.Temperature.HI.Corpus
( corpus
) where
import Data.String
import Prelude
import Duckling.Locale
import Duckling.Resolve
import Duckling.Temperature.Types
import Duckling.Testing.Types
context :: Context
context :: Context
context = Context
testContext {locale :: Locale
locale = Lang -> Maybe Region -> Locale
makeLocale Lang
HI Maybe Region
forall a. Maybe a
Nothing}
corpus :: Corpus
corpus :: Corpus
corpus = (Context
context, Options
testOptions, [Example]
allExamples)
allExamples :: [Example]
allExamples :: [Example]
allExamples = [[Example]] -> [Example]
forall (t :: * -> *) a. Foldable t => t [a] -> [a]
concat
[ TemperatureValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (TemperatureUnit -> Double -> TemperatureValue
simple TemperatureUnit
Celsius Double
37)
[ Text
"37 डिग्री सेल्सीयस"
, Text
"37 ° सेल्सीयस"
]
, TemperatureValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (TemperatureUnit -> Double -> TemperatureValue
simple TemperatureUnit
Fahrenheit Double
71)
[ Text
"71 डिग्री फारेनहाइट"
, Text
"71 ° फारेनहाइट"
]
, TemperatureValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (TemperatureUnit -> Double -> TemperatureValue
simple TemperatureUnit
Degree Double
45)
[ Text
"45 डिग्री"
, Text
"45 °"
]
]