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

import Data.String
import Prelude

import Duckling.Locale
import Duckling.Ordinal.Types
import Duckling.Resolve
import Duckling.Testing.Types

corpus :: Corpus
corpus :: Corpus
corpus = (Context
testContext {locale :: Locale
locale = Lang -> Maybe Region -> Locale
makeLocale Lang
PT 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
  [ OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
1)
             [ Text
"primeira"
             , Text
"primeiros"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
2)
             [ Text
"Segundo"
             , Text
"segundas"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
7)
             [ Text
"setimo"
             , Text
"sétimo"
             , Text
"sétimas"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
10)
             [ Text
"decimos"
             , Text
"décimos"
             , Text
"decima"
             , Text
"décima"
             , Text
"decimas"
             , Text
"décimas"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
11)
             [ Text
"decimos primeiros"
             , Text
"décimos primeiros"
             , Text
"decimo primeiro"
             , Text
"décimo primeiro"
             , Text
"decimas primeiras"
             , Text
"décimas primeiras"
             , Text
"decima primeira"
             , Text
"décima primeira"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
12)
             [ Text
"decimos segundos"
             , Text
"décimos segundos"
             , Text
"decimo segundo"
             , Text
"décimo segundo"
             , Text
"decimas segundas"
             , Text
"décimas segundas"
             , Text
"decima segunda"
             , Text
"décima segunda"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
17)
             [ Text
"decimos setimos"
             , Text
"décimos setimos"
             , Text
"decimo setimo"
             , Text
"décimo sétimo"
             , Text
"decimas setimas"
             , Text
"décimas sétimas"
             , Text
"decima setima"
             , Text
"décima setima"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
58)
             [ Text
"quinquagésimas oitavas"
             , Text
"qüinquagesimo oitavo"
             , Text
"quinquagésimo oitavo"
             ]
  ]