duckling/Duckling/Distance/RU/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

66 lines
1.6 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.Distance.RU.Corpus
( corpus
) where
import Data.String
import Prelude
import Duckling.Locale
import Duckling.Resolve
import Duckling.Distance.Types
import Duckling.Testing.Types
corpus :: Corpus
corpus = (testContext {locale = makeLocale RU Nothing}, testOptions, allExamples)
allExamples :: [Example]
allExamples = concat
[ examples (simple Kilometre 3)
[ "3 километра"
, "3 км"
, "3км"
, "3.0 км"
]
, examples (simple Mile 8)
[ "8 миль"
, "восемь миль"
]
, examples (simple Metre 1)
[ "1 м",
"1 метр",
"один метр"
]
, examples (simple Centimetre 2)
[ "2см"
, "2 сантиметра"
]
, examples (simple Millimetre 4)
[ "4мм"
, "4 миллиметра"
]
, examples (simple Inch 5)
[ "5 дюймов"
, "5''"
, "пять дюймов"
, "5\""
]
, examples (simple Foot 35)
[ "35 футов"
, "35'"
, "тридцать пять футов"
]
, examples (simple Yard 47)
[ "47 ярдов"
, "сорок семь ярдов"
]
]