-- 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.Duration.TR.Corpus ( corpus ) where import Data.String import Prelude import Duckling.Duration.Types import Duckling.Locale import Duckling.Resolve import Duckling.Testing.Types import Duckling.TimeGrain.Types (Grain (..)) corpus :: Corpus corpus = (testContext {locale = makeLocale TR Nothing}, allExamples) allExamples :: [Example] allExamples = concat [ examples (DurationData 1 Second) [ "bir sn" , "1 saniye" , "1\"" ] , examples (DurationData 2 Minute) [ "2 dk" , "iki dakika" , "2'" ] , examples (DurationData 30 Day) [ "30 gün" ] , examples (DurationData 7 Week) [ "yedi hafta" ] , examples (DurationData 1 Month) [ "1 ay" , "bir ay" ] , examples (DurationData 3 Quarter) [ "3 çeyrek yıl" ] , examples (DurationData 2 Year) [ "2 yıl" ] ]