{-# LANGUAGE OverloadedStrings #-}
module Duckling.Ordinal.EL.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
EL 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
"1ος"
, Text
"1ου"
, Text
"πρώτων"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
2)
[ Text
"δεύτερος"
, Text
"2ου"
, Text
"δευτέρου"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
3)
[ Text
"τρίτος"
, Text
"3ης"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
4)
[ Text
"τέταρτος"
, Text
"4ος"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
8)
[ Text
"όγδοος"
, Text
"ογδόου"
, Text
"8ος"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
25)
[ Text
"εικοστός πέμπτος"
, Text
"25ος"
, Text
"εικοστού πέμπτου"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
31)
[ Text
"τριακοστός πρώτος"
, Text
"31ος"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
42)
[ Text
"τεσσαρακοστός δεύτερος"
, Text
"42 ος"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
77)
[ Text
"εβδομηκοστού εβδόμου"
, Text
"77ου"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
90)
[ Text
"ενενηκοστός"
, Text
"90ος"
]
]