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

import Prelude
import Data.String

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
UK 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
"перший"
             , Text
"перша"
             , Text
"перше"
             , Text
"1а"
             , Text
"1-а"
             , Text
"1ий"
             , Text
"1-ий"
             , Text
"1е"
             , Text
"1-е"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
4)
             [ Text
"четвертий"
             , Text
"четверта"
             , Text
"четверте"
             , Text
"4ий"
             , Text
"4а"
             , Text
"4е"
             , Text
"4-ий"
             , Text
"4-а"
             , Text
"4-е"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
15)
             [ Text
"п‘ятнадцятий"
             , Text
"15й"
             , Text
"15-й"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
21)
             [ Text
"21й"
             , Text
"21-й"
             , Text
"двадцять перший"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
31)
             [ Text
"31ий"
             , Text
"31-ий"
             , Text
"тридцять перший"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
48)
             [ Text
"48е"
             , Text
"48-е"
             , Text
"сорок восьме"
             ]
  , OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
99)
             [ Text
"99ий"
             , Text
"99-й"
             , Text
"дев‘яносто дев‘ятий"
             ]
  ]