packages feed

duckling-0.2.0.0: Duckling/AmountOfMoney/TR/Corpus.hs

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

import Data.String (fromString)
import Prelude

import Duckling.AmountOfMoney.Types
import Duckling.Testing.Types
import Duckling.Locale
import Duckling.Resolve

corpus :: Corpus
corpus = (testContext {locale = makeLocale TR Nothing}, testOptions, allExamples)

allExamples :: [Example]
allExamples = concat
  [ examples (simple TRY 10000)
             [ "10 bin lira"
             , "on bin lira"
             , "10000 lira"
             ]
  , examples (simple TRY 1)
             [ "bir lira"
             , "1 lira"
             ]
  , examples (simple Cent 10)
             [ "on kuruş"
             , "10 kuruş"
             ]
  , examples (simple Cent 25)
             [ "25 kuruş"
             , "yirmi beş kuruş"
             ]
  , examples (simple Cent 5)
             [ "beş kuruş"
             , "5 kuruş"
             ]
  , examples (simple Cent 66)
             [ "altmış altı kuruş"
             , "66 kuruş"
             ]
  , examples (simple TRY 100.75)
             [ "yüz lira yetmiş beş kuruş"
             , "100 lira 75 kuruş"
             ]
  ]