{-# LANGUAGE OverloadedStrings #-}
module Duckling.Ordinal.SV.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
SV 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
"första"
, Text
"förste"
, Text
"1a"
, Text
"1:a"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
2)
[ Text
"andra"
, Text
"andre"
, Text
"2a"
, Text
"2:a"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
3)
[ Text
"tredje"
, Text
"3e"
, Text
"3:e"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
4)
[ Text
"fjärde"
, Text
"4e"
, Text
"4:e"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
8)
[ Text
"åttonde"
, Text
"8e"
, Text
"8:e"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
25)
[ Text
"tjugofemte"
, Text
"25e"
, Text
"25:e"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
31)
[ Text
"trettioförsta"
, Text
"trettioförste"
, Text
"31a"
, Text
"31:a"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
42)
[ Text
"fyrtioandra"
, Text
"fyrtioandre"
, Text
"42a"
, Text
"42:a"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
77)
[ Text
"sjuttiosjunde"
, Text
"77e"
, Text
"77:e"
]
, OrdinalData -> [Text] -> [Example]
forall a. ToJSON a => a -> [Text] -> [Example]
examples (Int -> OrdinalData
OrdinalData Int
90)
[ Text
"nittionde"
, Text
"90e"
, Text
"90:e"
]
]