module Duckling.Duration.EN.Corpus
( corpus
, negativeCorpus
) where
import Prelude
import Data.String
import Duckling.Duration.Types
import Duckling.Testing.Types
import Duckling.TimeGrain.Types (Grain(..))
corpus :: Corpus
corpus = (testContext, allExamples)
negativeCorpus :: NegativeCorpus
negativeCorpus = (testContext, examples)
where
examples =
[ "for months"
, "in days"
, "secretary"
, "minutes"
, "I second that"
]
allExamples :: [Example]
allExamples = concat
[ examples (DurationData 1 Second)
[ "one sec"
, "1 second"
, "1\""
]
, examples (DurationData 2 Minute)
[ "2 mins"
, "two minutes"
, "2'"
]
, examples (DurationData 30 Day)
[ "30 days"
]
, examples (DurationData 7 Week)
[ "seven weeks"
]
, examples (DurationData 1 Month)
[ "1 month"
, "a month"
]
, examples (DurationData 3 Quarter)
[ "3 quarters"
]
, examples (DurationData 2 Year)
[ "2 years"
]
]