-- 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.ZH.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
ZH 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
Gram Double
2 Maybe Text
forall a. Maybe a
Nothing)
             [ Text
"2克"
             , Text
"二克"
             , Text
"两克"
             , Text
"2g"
             , Text
"2.0g"
             ]
  , QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Gram Double
1500 Maybe Text
forall a. Maybe a
Nothing)
             [ Text
"3斤"
             , Text
"三斤"
             , Text
"1.5公斤"
             , Text
"1.5千克"
             , Text
"1.5kg"
             , Text
"1500g"
             ]
  , QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Gram Double
0.035 Maybe Text
forall a. Maybe a
Nothing)
             [ Text
"35毫克"
             , Text
"三十五毫克"
             , Text
"35mg"
             ]
  , QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Gram Double
1750 Maybe Text
forall a. Maybe a
Nothing)
             [ Text
"三斤半"
             , Text
"3斤半"
             , Text
"3斤5两"
             , Text
"1.75千克"
             ]
  , QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Gram Double
475 Maybe Text
forall a. Maybe a
Nothing)
             [ Text
"9两半"
             , Text
"九兩半"
             ]
  , QuantityValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> Maybe Text -> QuantityValue
simple Unit
Gram Double
3400 Maybe Text
forall a. Maybe a
Nothing)
             [ Text
"六斤八两"
             , Text
"六斤8兩"
             , Text
"3.4公斤"
             ]
  ]