-- 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.AmountOfMoney.NL.Corpus
  ( corpus
  ) where

import Data.String
import Prelude

import Duckling.AmountOfMoney.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
NL 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
  [ AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Dollar Double
1)
             [ Text
"$1"
             , Text
"1 dollar"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Dollar Double
10)
             [ Text
"$10"
             , Text
"$ 10"
             , Text
"10$"
             , Text
"10 dollars"
             , Text
"tien dollar"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Cent Double
10)
             [ Text
"10 cent"
             , Text
"tien pennies"
             , Text
"tien cents"
             , Text
"10 c"
             , Text
"10¢"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Dollar Double
10000)
             [ Text
"$10K"
             , Text
"10k$"
             , Text
"$10000"
             , Text
"$10.000"
             , Text
"$10.000,00"
             , Text
"10000,00 $"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
USD Double
3.14)
             [ Text
"USD3,14"
             , Text
"3,14US$"
             , Text
"US$ 3,14"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
EUR Double
20)
             [ Text
"20\x20ac"
             , Text
"20 euros"
             , Text
"20 Euro"
             , Text
"20 Euros"
             , Text
"EUR 20"
             , Text
"EUR 20,0"
             , Text
"20€"
             , Text
"20 €ur"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Dollar Double
20.43)
             [ Text
"$20 en 43c"
             , Text
"$20,43"
             , Text
"20 dollar 43c"
             , Text
"20 dollars 43 cents"
             , Text
"20 dollar 43"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
GBP Double
3.01)
             [ Text
"GBP3,01"
             , Text
"GBP 3,01"
             , Text
"3 GBP een penny"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
simple Currency
Unnamed Double
42)
             [ Text
"42 bucks"
             , Text
"ongeveer twee-en-veertig bucks"
             , Text
"precies 42 bucks"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> (Double, Double) -> AmountOfMoneyValue
between Currency
Dollar (Double
10, Double
20))
             [ Text
"vanaf 10 dollars tot 20 dollars"
             , Text
"rond de 10-20 dollars"
             , Text
"tussen 10 dollars en 20 dollars"
             , Text
"ongeveer $10-$20"
             , Text
"10-20 dollars"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> (Double, Double) -> AmountOfMoneyValue
between Currency
Dollar (Double
1.1, Double
1.3))
             [ Text
"tussen 1,1 dollar en 1,3 dollars"
             , Text
"van 1,1$ en 1,3 dollars"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
under Currency
EUR Double
7)
             [ Text
"minder dan 7 euros"
             , Text
"minder dan zeven EUR"
             , Text
"lager dan 7€"
             ]
  , AmountOfMoneyValue -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Currency -> Double -> AmountOfMoneyValue
above Currency
Dollar Double
1.42)
             [ Text
"meer dan 1 dollar en 42 cents"
             , Text
"minstens $1,42"
             , Text
"boven de 1,42 dollars"
             , Text
"boven de 1 dollar en 42 cents"
             ]
  ]