{-# LANGUAGE OverloadedStrings #-}
module Duckling.Ordinal.RO.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
RO 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
"primul"
, Text
"prima"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
2)
[ Text
"al doilea"
, Text
"al doi-lea"
, Text
"al doi lea"
, Text
"al 2-lea"
, Text
"al 2 lea"
, Text
"a 2 a"
, Text
"a 2-a"
, Text
"a doua"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
3)
[ Text
"al treilea"
, Text
"al trei-lea"
, Text
"a treia"
, Text
"a 3-lea"
, Text
"a 3a"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
4)
[ Text
"a patra"
, Text
"a patru-lea"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
6)
[ Text
"al saselea"
, Text
"al șaselea"
, Text
"al sase-lea"
, Text
"al șase-lea"
, Text
"a sasea"
, Text
"a șase a"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
9)
[ Text
"al noualea"
, Text
"al noua-lea"
, Text
"al noua lea"
, Text
"al nouălea"
, Text
"al nouă lea"
, Text
"a noua"
]
]