{-# LANGUAGE OverloadedStrings #-}
module Duckling.Temperature.EN.Corpus
( corpus
) where
import Data.String
import Prelude
import Duckling.Temperature.Types
import Duckling.Testing.Types
corpus :: Corpus
corpus :: Corpus
corpus = (Context
testContext, 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°C"
, Text
"37 ° celsius"
, Text
"37 degrees Celsius"
, Text
"thirty seven celsius"
, Text
"37 degrees Celsius"
, Text
"thirty seven celsius"
]
, TemperatureValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (TemperatureUnit -> Double -> TemperatureValue
simple TemperatureUnit
Fahrenheit Double
70)
[ Text
"70°F"
, Text
"70 ° Fahrenheit"
, Text
"70 degrees F"
, Text
"seventy Fahrenheit"
]
, TemperatureValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (TemperatureUnit -> Double -> TemperatureValue
simple TemperatureUnit
Fahrenheit Double
98.6)
[ Text
"98.6°F"
, Text
"98.6 ° Fahrenheit"
, Text
"98.6 degrees F"
]
, TemperatureValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (TemperatureUnit -> Double -> TemperatureValue
simple TemperatureUnit
Degree Double
45)
[ Text
"45°"
, Text
"45 degrees"
, Text
"45 deg."
]
, TemperatureValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (TemperatureUnit -> Double -> TemperatureValue
simple TemperatureUnit
Degree (-Double
2))
[ Text
"-2°"
, Text
"- 2 degrees"
, Text
"2 degrees below zero"
, Text
"2 below zero"
]
, TemperatureValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (TemperatureUnit -> (Double, Double) -> TemperatureValue
between TemperatureUnit
Degree (Double
30, Double
40))
[ Text
"between 30 and 40 degrees"
, Text
"from 30 degrees to 40 degrees"
]
, TemperatureValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (TemperatureUnit -> (Double, Double) -> TemperatureValue
between TemperatureUnit
Celsius (Double
30, Double
40))
[ Text
"between 30 and 40 celsius"
, Text
"from 30 celsius and 40 celsius"
, Text
"between 30 and 40 degrees celsius"
, Text
"from 30 degrees celsius to 40 degrees celsius"
, Text
"30-40 degrees celsius"
]
, TemperatureValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (TemperatureUnit -> Double -> TemperatureValue
above TemperatureUnit
Degree Double
40)
[ Text
"over 40 degrees"
, Text
"at least 40 degrees"
, Text
"more than 40 degrees"
]
, TemperatureValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (TemperatureUnit -> Double -> TemperatureValue
under TemperatureUnit
Degree Double
40)
[ Text
"under 40 degrees"
, Text
"less than 40 degrees"
, Text
"lower than 40 degrees"
]
]