-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.


{-# LANGUAGE OverloadedStrings #-}

module Duckling.Quantity.AR.Corpus
  ( corpus
  ) where

import Data.String
import Prelude

import Duckling.Locale
import Duckling.Quantity.Types
import Duckling.Resolve
import Duckling.Testing.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
  [ QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Ounce Double
3 (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
"الذهب"))
             [ Text
"ثلاثة اونصات من الذهب"
             ]
  , QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Gram Double
2 Maybe Text
forall a. Maybe a
Nothing)
             [ Text
"2 غرام"
             , Text
"2 جرام"
             , Text
"0.002 كيلوغرام"
             , Text
"0.002 كيلوجرام"
             , Text
"2/1000 كغ"
             , Text
"2000 ملغ"
             , Text
"2000 ملج"
             ]
  , QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Gram Double
1000 Maybe Text
forall a. Maybe a
Nothing)
             [ Text
"كغ"
             , Text
"كيلوغرام"
             , Text
"كيلوجرام"
             ]
  , QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Ounce Double
2 Maybe Text
forall a. Maybe a
Nothing)
             [ Text
"2 اونصة"
             , Text
"أونصتان"
             , Text
"اونصتين"
             ]
  , QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Cup Double
3 (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
"السكر"))
             [ Text
"3 اكواب من السكر"
             ]
  , QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Cup Double
0.75 Maybe Text
forall a. Maybe a
Nothing)
             [ Text
"3/4 كوب"
             , Text
"0.75 كوب"
             , Text
".75 كوب"
             ]
  , QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Gram Double
500 (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
"الفراولة"))
             [ Text
"500 غرام من الفراولة"
             , Text
"500 غم من الفراولة"
             , Text
"500 جرام من الفراولة"
             , Text
"500 جم من الفراولة"
             , Text
"0.5 كيلوجرام من الفراولة"
             , Text
"0.5 كيلوغرام من الفراولة"
             , Text
"0.5 كغ من الفراولة"
             , Text
"500000 ملغ من الفراولة"
             ]
  ]