polh-lexicon-0.2.1: A library for manipulating the historical dictionary of Polish

Safe HaskellNone

NLP.Polh.Types

Description

The module provides types for dictionary representation.

Synopsis

Documentation

data Repr Source

Form or text representation.

Constructors

Repr 

class HasRepr t whereSource

A class of objects with a written representation.

Methods

repr :: t -> [Repr]Source

text :: HasRepr t => t -> [Text]Source

Get textual representations of an object.

newtype Lemma Source

A lemma (base) form.

Constructors

Lemma [Repr] 

data RelForm Source

A related form.

Constructors

RelForm 

Fields

relRepr :: [Repr]
 
relTo :: Text
 

newtype Definition Source

A definition of the lexeme sense.

Constructors

Definition [Repr] 

newtype Context Source

A context in which a given sense is illustrated.

Constructors

Context [Repr] 

data SynBehaviour Source

A description of a syntactic behaviour.

Constructors

SynBehaviour 

Fields

synRepr :: [Repr]
 
synSenseIds :: [Text]
 

data Sense Source

A potential sense of a given lexeme.

Constructors

Sense 

Fields

senseId :: Maybe Text
 
style :: [Text]
 
defs :: [Definition]
 
cxts :: [Context]
 

data LexEntry Source

A description of a lexeme.

Constructors

LexEntry 

Fields

lexId :: Text

An ID of the lexical entry.

lineRef :: Maybe Text

A line reference number. Provisional field.

status :: Maybe Text

A status of the lexeme. Provisional field.

pos :: [Text]

Potential parts of speech.

lemma :: Lemma

A base form.

forms :: [WordForm]

Word forms of the lexeme.

components :: [Text]

A list of components (only when the entry represent a compound lexeme).

syntactic :: [SynBehaviour]

A list of potential syntactic behaviours of the lexeme.

senses :: [Sense]

A list of potential semantic descriptions.

related :: [RelForm]

Forma related to the lexeme.

type Polh = [LexEntry]Source

A polh dictionary is a list of lexical entries.