{-# LANGUAGE OverloadedStrings #-}
module Data.Text.ENIG.Config where
import Data.Text.ENIG.Data
import Data.Char
import Data.Text (Text)
import qualified Data.Vector.Unboxed as VU
import qualified Data.Vector as V
lastConsonantCodeList :: [Code]
lastConsonantCodeList = [4520..4607]
lastConsonantList :: [Char]
lastConsonantList = map chr lastConsonantCodeList
vowelCodeList :: [Code]
vowelCodeList = [4449..4519]
vowelList :: [Char]
vowelList = map chr vowelCodeList
hangulComponentCodeList :: [Code]
hangulComponentCodeList = [4352..4607]
hangulComponentList :: [Char]
hangulComponentList = map chr hangulComponentCodeList
pppidVector :: VU.Vector (Code,Code)
pppidVector = VU.fromList
[(fromEnum Eun,fromEnum Neun)
,(fromEnum Eul,fromEnum Leul)
,(fromEnum I,fromEnum Ga)
,(fromEnum Gwa,fromEnum Wa)
,(fromEnum A,fromEnum Ya)
,(fromEnum Ix,fromEnum X)
,(fromEnum Eux,fromEnum X)
]
autoPatternList :: [(Text,PPPCategory,Text)]
autoPatternList =
[ ("은(는)",EN,"")
, ("을(를)",EL,"")
, ("이(가)",IG,"")
, ("와(과)",WG,"")
, ("아(야)",AY,"")
, ("(이)나",IX,"나")
, ("(이)든",IX,"든")
, ("(이)란",IX,"란")
, ("(이)랑",IX,"랑")
, ("(이)면",IX,"면")
, ("(이)여",IX,"여")
, ("(으)로",EuX,"로")
]