{-# LANGUAGE OverloadedStrings #-}
module Duckling.Distance.DE.Corpus
( corpus
) where
import Data.String
import Prelude
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
DE 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
"3,0 km"
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Mile Double
8)
[ Text
"acht meilen"
, Text
"8 meilen"
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Metre Double
9)
[ Text
"9m"
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Centimetre Double
2)
[ Text
"2cm"
, Text
"2 zentimeter"
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Inch Double
5)
[ Text
"5''"
, Text
"fünf zoll"
, Text
"5\""
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Metre Double
1.87)
[ Text
"1,87 meter"
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> (Double, Double) -> DistanceValue
between Unit
Kilometre (Double
3, Double
5))
[ Text
"zwischen 3 und 5 kilometern"
, Text
"von 3km bis 5km"
, Text
"um die 3-5 kilometer"
, Text
"etwa 3km-5km"
, Text
"3-5 kilometer"
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
under Unit
Mile Double
3.5)
[ Text
"unter 3,5 meilen"
, Text
"weniger als 3,5meilen"
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
above Unit
Inch Double
5)
[ Text
"mehr als fünf zoll"
, Text
"mindestens 5''"
, Text
"über 5\""
]
, DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> (Double, Double) -> DistanceValue
between Unit
Millimetre (Double
5, Double
6))
[ Text
"zwischen 5 und sechs Millimetern"
, Text
"zwischen 5 und sechs millimeter"
, Text
"5-6 mm"
]
]