polimorf-0.7.2: Working with the PoliMorf dictionary

Safe HaskellSafe-Inferred

Data.PoliMorf

Contents

Description

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

Synopsis

Types

type Form = TextSource

A word form.

type Base = TextSource

A base form.

type POS = TextSource

A part of speech.

type MSD = TextSource

A morphosyntactic description

type Tag = TextSource

A morphosyntactic tag. (Tag = POS + MSD)

data Entry Source

An entry from the PoliMorf dictionary.

Constructors

Entry 

Fields

form :: !Form
 
base :: !Base
 
tag :: !Tag
 
cat :: !Cat
 

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

Split tag.

pos :: Entry -> POSSource

Entry POS.

msd :: Entry -> MSDSource

Entry MSD.

atomic :: Entry -> BoolSource

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.