mirror of
https://github.com/facebook/duckling.git
synced 2024-12-11 06:46:26 +03:00
3f8e52e70a
fbshipit-source-id: 301a10f448e9623aa1c953544f42de562909e192
40 lines
1.2 KiB
Haskell
40 lines
1.2 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. An additional grant
|
|
-- of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
|
|
{-# LANGUAGE GADTs #-}
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
|
|
module Duckling.Rules.SV
|
|
( rules
|
|
) where
|
|
|
|
import Duckling.Dimensions.Types
|
|
import qualified Duckling.Duration.SV.Rules as Duration
|
|
import qualified Duckling.Finance.SV.Rules as Finance
|
|
import qualified Duckling.Number.SV.Rules as Number
|
|
import qualified Duckling.Ordinal.SV.Rules as Ordinal
|
|
import qualified Duckling.Time.SV.Rules as Time
|
|
import qualified Duckling.TimeGrain.SV.Rules as TimeGrain
|
|
import Duckling.Types
|
|
|
|
rules :: Some Dimension -> [Rule]
|
|
rules (Some Distance) = []
|
|
rules (Some Duration) = Duration.rules
|
|
rules (Some DNumber) = Number.rules
|
|
rules (Some Email) = []
|
|
rules (Some Finance) = Finance.rules
|
|
rules (Some Ordinal) = Ordinal.rules
|
|
rules (Some PhoneNumber) = []
|
|
rules (Some Quantity) = []
|
|
rules (Some RegexMatch) = []
|
|
rules (Some Temperature) = []
|
|
rules (Some Time) = Time.rules
|
|
rules (Some TimeGrain) = TimeGrain.rules
|
|
rules (Some Url) = []
|
|
rules (Some Volume) = []
|