mirror of
https://github.com/facebook/duckling.git
synced 2024-11-28 16:54:59 +03:00
703ff13210
Summary: Egyptian Arabic is a dialect of Arabic that is mostly a spoken language that is used in everyday communications. This PR adds new locale to Arabic to support the differences between Modern Standard Arabic (MSA) and Egyptian Arabic (EG). I have mainly depended on the different locales of Spanish that are supported by Duckling to create the new Egyptian Arabic locale. New modifications are added to the `Numeral` dimension since I didn't spot differences in other dimensions. Pull Request resolved: https://github.com/facebook/duckling/pull/554 Reviewed By: patapizza Differential Revision: D25543502 Pulled By: chessai fbshipit-source-id: 4cbb7be78a52071c8681380077f0b4dc033a60de
56 lines
932 B
Haskell
56 lines
932 B
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 DeriveAnyClass #-}
|
|
{-# LANGUAGE DeriveGeneric #-}
|
|
{-# LANGUAGE NoRebindableSyntax #-}
|
|
|
|
module Duckling.Region
|
|
( Region(..)
|
|
) where
|
|
|
|
import Data.Hashable
|
|
import GHC.Generics
|
|
import Prelude
|
|
import TextShow (TextShow)
|
|
import qualified TextShow as TS
|
|
|
|
-- | ISO 3166-1 alpha-2 Country code (includes regions and territories).
|
|
-- See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
data Region
|
|
= AR
|
|
| AU
|
|
| BE
|
|
| BZ
|
|
| CA
|
|
| CL
|
|
| CN
|
|
| CO
|
|
| EG
|
|
| ES
|
|
| GB
|
|
| HK
|
|
| IE
|
|
| IN
|
|
| JM
|
|
| MN
|
|
| MX
|
|
| MO
|
|
| NL
|
|
| NZ
|
|
| PE
|
|
| PH
|
|
| TT
|
|
| TW
|
|
| US
|
|
| VE
|
|
| ZA
|
|
deriving (Bounded, Enum, Eq, Generic, Hashable, Ord, Read, Show)
|
|
|
|
instance TextShow Region where
|
|
showb = TS.fromString . show
|