-- 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.Distance.ZH.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
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
  [ DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Centimetre Double
2)
             [ Text
"2cm"
             , Text
"2 厘米"
             , Text
"二厘米"
             , Text
"2公分"
             , Text
"二公分"
             ]
  , 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
"九米"
             , Text
"9公尺"
             ]
  , DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Kilometre Double
3)
             [ Text
"3公里"
             , Text
"三公裏"
             , Text
"3 km"
             , Text
"3km"
             ]
  , DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Kilometre Double
3.0)
             [ Text
"3.0 公里"
             ]
  , DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Foot Double
8)
             [ Text
"8 foot"
             , Text
"8 feet"
             , Text
"8 foots"
             , Text
"8 feets"
             , Text
"8'"
             , Text
"8英尺"
             , Text
"8呎"
             ]
  , DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Inch Double
4)
             [ Text
"4 inch"
             , Text
"4 inches"
             , Text
"4''"
             , Text
"4英寸"
             , Text
"4英吋"
             , Text
"四吋"
             ]
  , DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Mile Double
1)
             [ Text
"1 mile"
             , Text
"1 miles"
             , Text
"1英里"
             , Text
"一英裏"
             ]
  , DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Metre Double
1.9)
             [ Text
"1.9 m"
             , Text
"1.9米"
             , Text
"米九"
             ]
  , DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
simple Unit
Metre Double
3.9)
             [ Text
"3.9 m"
             , Text
"3.9米"
             , Text
"三米九"
             ]
  , DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> (Double, Double) -> DistanceValue
between Unit
Metre (Double
1.6, Double
3.9))
             [ Text
"1.6m-3.9m"
             , Text
"1.6~3.9米"
             , Text
"一點六至三點九公尺"
             , Text
"米六到三米九"
             ]
  , DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
under Unit
Mile Double
3.5)
             [ Text
"最多三點五英里"
             , Text
"3.5英裏以下"
             ]
  , DistanceValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Unit -> Double -> DistanceValue
above Unit
Inch Double
5)
             [ Text
"至少5\""
             , Text
"最少五吋"
             , Text
"五英吋以上"
             , Text
"起碼五英寸"
             ]
  ]