polimorf-0.7.4: Handling the PoliMorf dictionary

Safe HaskellSafe
LanguageHaskell2010

Data.PoliMorf

Contents

Description

The module provides functionality for manipulating PoliMorf, the morphological dictionary for Polish.

Synopsis

Types

type Form = Text Source #

A word form.

type Base = Text Source #

A base form.

type POS = Text Source #

A part of speech.

type MSD = Text Source #

A morphosyntactic description

type Tag = Text Source #

A morphosyntactic tag. (Tag = POS + MSD)

type Cat = Text Source #

A semantic category. It will be set to "" when there is no category assigned to a particular PoliMorf entry.

data Entry Source #

An entry from the PoliMorf dictionary.

Constructors

Entry 

Fields

Instances
Eq Entry Source # 
Instance details

Defined in Data.PoliMorf

Methods

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

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

Ord Entry Source # 
Instance details

Defined in Data.PoliMorf

Methods

compare :: Entry -> Entry -> Ordering #

(<) :: Entry -> Entry -> Bool #

(<=) :: Entry -> Entry -> Bool #

(>) :: Entry -> Entry -> Bool #

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

max :: Entry -> Entry -> Entry #

min :: Entry -> Entry -> Entry #

Read Entry Source # 
Instance details

Defined in Data.PoliMorf

Show Entry Source # 
Instance details

Defined in Data.PoliMorf

Methods

showsPrec :: Int -> Entry -> ShowS #

show :: Entry -> String #

showList :: [Entry] -> ShowS #

split :: Tag -> (POS, MSD) Source #

Split tag.

pos :: Entry -> POS Source #

Entry POS.

msd :: Entry -> MSD Source #

Entry MSD.

atomic :: Entry -> Bool Source #

Is the entry an atomic one? More precisely, we treat all negative forms starting with 'nie' and all superlatives starting with 'naj' as non-atomic entries.

Parsing

readPoliMorf :: FilePath -> IO [Entry] Source #

Read the PoliMorf from the file.

parsePoliMorf :: Text -> [Entry] Source #

Parse the PoliMorf into a list of entries.