-- 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. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.


{-# LANGUAGE OverloadedStrings #-}

module Duckling.Ordinal.EN.Corpus
  ( corpus ) where

import Prelude
import Data.String

import Duckling.Ordinal.Types
import Duckling.Testing.Types

corpus :: Corpus
corpus = (testContext, allExamples)

allExamples :: [Example]
allExamples = concat
  [ examples (OrdinalData 1)
             [ "first"
             , "1st"
             ]
  , examples (OrdinalData 2)
             [ "second"
             , "2nd"
             ]
  , examples (OrdinalData 3)
             [ "third"
             , "3rd"
             ]
  , examples (OrdinalData 4)
             [ "fourth"
             , "4th"
             ]
  , examples (OrdinalData 8)
             [ "eighth"
             , "8th"
             ]
  , examples (OrdinalData 25)
             [ "twenty-fifth"
             , "25th"
             ]
  , examples (OrdinalData 31)
             [ "thirty-first"
             , "31st"
             ]
  , examples (OrdinalData 42)
             [ "forty-second"
             , "42nd"
             ]
  , examples (OrdinalData 77)
            [ "seventy-seventh"
            , "77th"
            ]
  , examples (OrdinalData 90)
            [ "ninetieth"
            , "90th"
            ]
  ]