Morphology-PT-0.1.0.0: Morphology of the Portuguese language

Copyright(c) Juliano Paiva Junho 2018-2019
LicenseGPL-3
Maintainerjjunho@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

NLP.Morphology.PT

Contents

Description

Haddock documentation: https://jjunho.github.io/Morphology-PT

If you are using only Portuguese:

import qualified Data.Text         (Text)
import qualified Data.Text         as T
import qualified Data.Text.IO      as TIO
import           NLP.Morphology.PT

After the implementation of other languages and if you are using multiple languages at a time:

import qualified Data.Text         (Text)
import qualified Data.Text         as T
import qualified Data.Text.IO      as TIO
import qualified NLP.Morphology.PT as PT
import qualified NLP.Morphology.KR as KR
import qualified NLP.Morphology.JA as JA

Don't forget to set OverloadedStrings and/or use the LANGUAGE pragma:

:set -XOverloadedStrings
Synopsis

Types

data Person Source #

Constructors

P1 
P2 
P3 
P4 
P5 
P6 
Instances
Bounded Person Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Enum Person Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Eq Person Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Methods

(==) :: Person -> Person -> Bool #

(/=) :: Person -> Person -> Bool #

Show Person Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Txt Person Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Methods

txt :: Person -> Text Source #

Morph Person Source # 
Instance details

Defined in NLP.Morphology.PT.Verb.Base

data Gender Source #

Constructors

MSC 
FEM 
Instances
Bounded Gender Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Enum Gender Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Eq Gender Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Methods

(==) :: Gender -> Gender -> Bool #

(/=) :: Gender -> Gender -> Bool #

Show Gender Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Txt Gender Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Methods

txt :: Gender -> Text Source #

Morph Gender Source # 
Instance details

Defined in NLP.Morphology.PT.Verb.Base

data Number Source #

Constructors

SG 
PL 
Instances
Bounded Number Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Enum Number Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Eq Number Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Methods

(==) :: Number -> Number -> Bool #

(/=) :: Number -> Number -> Bool #

Show Number Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Txt Number Source # 
Instance details

Defined in NLP.Morphology.PT.Common

Methods

txt :: Number -> Text Source #

Morph Number Source # 
Instance details

Defined in NLP.Morphology.PT.Verb.Base

Verbs

getTense :: GetTense a => [[VStructure]] -> a -> [VStructure] Source #

Nominals

Morphological transformations

deep :: Deep a => a -> [Text] Source #

deepTxt :: Deep a => a -> Text Source #

shallow :: Shallow a => a -> [Text] Source #

orth :: Orth a => a -> Text Source #

Formatting & IO

txt :: Txt a => a -> Text Source #

Formats the data in order to print.

>>> txt $ personal "falar" IPRS P1
"\8730FAL-A-IPRS-P1/SG"

putTxt :: Txt a => a -> IO () Source #

Formats and prints the data (no newline).

>>> putTxt $ personal "falar" IPRS P1
√FAL-A-IPRS-P1/SG

putTxtLn :: Txt a => a -> IO () Source #

Formats the data in order to print (with newline).

>>> putTxtLn $ personal "falar" IPRS P1
√FAL-A-IPRS-P1/SG