{-# LANGUAGE OverloadedStrings #-}
module Duckling.Distance.NL.Corpus
( corpus ) where
import Prelude
import Data.String
import Duckling.Distance.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
NL 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
[ DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Kilometre Double
3)
[ Text
"3 kilometer"
, Text
"3 km"
, Text
"3km"
, Text
"3k"
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Kilometre Double
3.0)
[ Text
"3,0 km"
, Text
"3,0km"
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Mile Double
8)
[ Text
"8 mijl"
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Metre Double
9)
[ Text
"9m"
, Text
"9 m"
, Text
"9 meter"
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Centimetre Double
2)
[ Text
"2cm"
, Text
"2 cm"
, Text
"2 centimeter"
]
]