duckling/Duckling/Ordinal/EL/Corpus.hs
Julien Odent bf89e34365 Relicense to BSD3
Reviewed By: JoelMarcey

Differential Revision: D15439223

fbshipit-source-id: c5af3cb06318748142fe503945b38beffadfc28a
2019-05-22 10:46:39 -07:00

72 lines
1.8 KiB
Haskell
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 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.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 = (testContext {locale = makeLocale EL Nothing}, testOptions, allExamples)
allExamples :: [Example]
allExamples = concat
[ examples (OrdinalData 1)
[ "πρώτος"
, "1ος"
, "1ου"
, "πρώτων"
]
, examples (OrdinalData 2)
[ "δεύτερος"
, "2ου"
, "δευτέρου"
]
, examples (OrdinalData 3)
[ "τρίτος"
, "3ης"
]
, examples (OrdinalData 4)
[ "τέταρτος"
, "4ος"
]
, examples (OrdinalData 8)
[ "όγδοος"
, "ογδόου"
, "8ος"
]
, examples (OrdinalData 25)
[ "εικοστός πέμπτος"
, "25ος"
, "εικοστού πέμπτου"
]
, examples (OrdinalData 31)
[ "τριακοστός πρώτος"
, "31ος"
]
, examples (OrdinalData 42)
[ "τεσσαρακοστός δεύτερος"
, "42 ος"
]
, examples (OrdinalData 77)
[ "εβδομηκοστού εβδόμου"
, "77ου"
]
, examples (OrdinalData 90)
[ "ενενηκοστός"
, "90ος"
]
]