2017-04-24 16:26:59 +03:00
|
|
|
-- 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 GADTs #-}
|
|
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
|
|
|
|
|
|
module Duckling.Rules.HE
|
|
|
|
( rules
|
|
|
|
) where
|
|
|
|
|
|
|
|
import Duckling.Dimensions.Types
|
|
|
|
import Duckling.Types
|
2017-04-24 16:27:04 +03:00
|
|
|
import qualified Duckling.Duration.HE.Rules as Duration
|
2017-04-24 16:26:59 +03:00
|
|
|
import qualified Duckling.Numeral.HE.Rules as Numeral
|
2017-04-24 16:27:00 +03:00
|
|
|
import qualified Duckling.Ordinal.HE.Rules as Ordinal
|
2017-04-24 16:27:02 +03:00
|
|
|
import qualified Duckling.TimeGrain.HE.Rules as TimeGrain
|
2017-04-28 19:54:35 +03:00
|
|
|
import qualified Duckling.Time.HE.Rules as Time
|
2017-04-24 16:26:59 +03:00
|
|
|
|
|
|
|
rules :: Some Dimension -> [Rule]
|
|
|
|
rules (This Distance) = []
|
2017-04-24 16:27:04 +03:00
|
|
|
rules (This Duration) = Duration.rules
|
2017-04-24 16:26:59 +03:00
|
|
|
rules (This Numeral) = Numeral.rules
|
|
|
|
rules (This Email) = []
|
|
|
|
rules (This AmountOfMoney) = []
|
2017-04-24 16:27:00 +03:00
|
|
|
rules (This Ordinal) = Ordinal.rules
|
2017-04-24 16:26:59 +03:00
|
|
|
rules (This PhoneNumber) = []
|
|
|
|
rules (This Quantity) = []
|
|
|
|
rules (This RegexMatch) = []
|
|
|
|
rules (This Temperature) = []
|
2017-04-28 19:54:35 +03:00
|
|
|
rules (This Time) = Time.rules
|
2017-04-24 16:27:02 +03:00
|
|
|
rules (This TimeGrain) = TimeGrain.rules
|
2017-04-24 16:26:59 +03:00
|
|
|
rules (This Url) = []
|
|
|
|
rules (This Volume) = []
|