{-# LANGUAGE OverloadedStrings #-}
module Duckling.Volume.AR.Corpus
( corpus ) where
import Data.String
import Prelude
import Duckling.Testing.Types
import Duckling.Locale
import Duckling.Resolve
import Duckling.Volume.Types
corpus :: Corpus
corpus :: Corpus
corpus = (Context
testContext {locale :: Locale
locale = Lang -> Maybe Region -> Locale
makeLocale Lang
AR 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
[ VolumeValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> VolumeValue
simple Unit
Millilitre Double
250)
[ Text
"250 مل"
, Text
"250مل"
, Text
"250 ميليلتر"
, Text
"250 ملي لتر"
]
, VolumeValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> VolumeValue
simple Unit
Litre Double
2)
[ Text
"2 لتر"
, Text
"لتران"
, Text
"لترين"
]
, VolumeValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> VolumeValue
simple Unit
Gallon Double
3)
[ Text
"3 غالون"
, Text
"3 جالون"
, Text
"3 غالونات"
, Text
"3 جالونات"
]
, VolumeValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> VolumeValue
simple Unit
Hectolitre Double
3)
[ Text
"3 هكتوليتر"
, Text
"3 هكتو ليتر"
]
, VolumeValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> VolumeValue
simple Unit
Litre Double
0.5)
[ Text
"نصف لتر"
, Text
"نص لتر"
]
, VolumeValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> VolumeValue
simple Unit
Litre Double
0.25)
[ Text
"ربع لتر"
]
, VolumeValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> VolumeValue
simple Unit
Litre Double
1.5)
[ Text
"لتر ونصف"
, Text
"لتر و نص"
, Text
"لتر و نصف"
, Text
"لتر ونص"
]
, VolumeValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> VolumeValue
simple Unit
Litre Double
1.25)
[ Text
"لتر وربع"
, Text
"لتر و ربع"
]
]