mirror of
https://github.com/facebook/duckling.git
synced 2024-11-28 08:34:46 +03:00
bf89e34365
Reviewed By: JoelMarcey Differential Revision: D15439223 fbshipit-source-id: c5af3cb06318748142fe503945b38beffadfc28a
66 lines
1.6 KiB
Haskell
66 lines
1.6 KiB
Haskell
-- 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 ярдов"
|
||
, "сорок семь ярдов"
|
||
]
|
||
]
|