Frog
Enumerations | Functions | Variables
CLEX Namespace Reference

Enumerations

enum  Type {
  UNASS, A, B, C,
  D, I, N, O,
  P, Q, V, LET,
  PN, SPEC, X, Z,
  AFFIX, XAFFIX, GLUE, NEUTRAL
}
 all possible CELEX tags and action properties More...
 

Functions

Type toCLEX (const string &s)
 
Type toCLEX (const char c)
 
string toString (const Type &t)
 
bool is_CELEX_base (const Type &t)
 
Type select_tag (const char ch)
 
const string & get_iDescr (char c)
 
const std::string & get_tDescr (CLEX::Type t)
 

Variables

const map< CLEX::Type, string > tagNames
 a harcoded table with a mapping for CLEX::Type to a description More...
 
const map< char, string > iNames
 
const string empty = ""
 

Enumeration Type Documentation

◆ Type

enum CLEX::Type

all possible CELEX tags and action properties

Enumerator
UNASS 

unknow value

Adjective (CELEX tag)

Adverb (CELEX tag)

Conjunction (CELEX tag)

Article (CELEX tag)

Interjection (CELEX tag)

Noun (CELEX tag)

Pronoun (CELEX tag)

Preposition (CELEX tag)

Numeral (CELEX tag)

Verb (CELEX tag)

LET 

Letter (not in CELEX)

PN 

Proper Noun (not in CELEX)

SPEC 

Special (not in CELEX)

Unanalysed.

Expresssion-part.

AFFIX 

affix property

XAFFIX 

x-affix property

GLUE 

Glue property.

NEUTRAL 

No action.

Function Documentation

◆ get_iDescr()

const std::string & CLEX::get_iDescr ( char  c)

get the description related to the inflection symbol 'c'

Parameters
ca character value for the inflexion
Returns
a description, may be empty

◆ get_tDescr()

const std::string & CLEX::get_tDescr ( CLEX::Type  t)

get the description related to the CLEX::Type symbol 't'

Parameters
ta CLEX::Type
Returns
a description, may be empty

◆ is_CELEX_base()

bool CLEX::is_CELEX_base ( const Type t)

check if the type is a CELEX class

Parameters
ta CLEX::Type
Returns
true if so, otherwise false

◆ select_tag()

Type CLEX::select_tag ( const char  ch)

select the CELEX base associated with a character code

Parameters
cha character code
Returns
a CLEX::Type. may be UNASS when no translation is found

◆ toCLEX() [1/2]

Type CLEX::toCLEX ( const char  c)

convert a character to a CLEX::Type

Parameters
ca character
Returns
the CLEX::Type, may be UNASS when no translation is found

◆ toCLEX() [2/2]

Type CLEX::toCLEX ( const string &  s)

convert a string to a CLEX::Type

Parameters
sa string
Returns
the CLEX::Type, may be UNASS when no translation is found

◆ toString()

std::string CLEX::toString ( const Type t)

convert a CLEX::Type to a string

Parameters
ta CLEX::Type value
Returns
a string representing the type, in a format that can be converted back to the type using toCLEX()

Variable Documentation

◆ empty

const string CLEX::empty = ""

◆ iNames

const map<char,string> CLEX::iNames
Initial value:
= {
{'X', ""},
{'s', "separated"},
{'e', "singular"},
{'m', "plural"},
{'d', "diminutive"},
{'G', "genitive"},
{'D', "dative"},
{'P', "positive"},
{'C', "comparative"},
{'S', "superlative"},
{'E', "suffix-e"},
{'i', "infinitive"},
{'p', "participle"},
{'t', "present-tense"},
{'v', "past-tense"},
{'1', "1st-person-verb"},
{'2', "2nd-person-verb"},
{'3', "3rd-person-verb"},
{'I', "inversed"},
{'g', "imperative"},
{'a', "subjunctive"},
}

a hardcodes table with a mapping from inflection codes to a readable string

◆ tagNames

const map<CLEX::Type,string> CLEX::tagNames
Initial value:
= {
{CLEX::A, "adjective"},
{CLEX::B, "adverb"},
{CLEX::C, "conjunction"},
{CLEX::D, "article"},
{CLEX::I, "interjection"},
{CLEX::N, "noun" },
{CLEX::O, "pronoun"},
{CLEX::P, "preposition"},
{CLEX::Q, "quantifier-numeral"},
{CLEX::V, "verb"},
{CLEX::LET, "letter"},
{CLEX::PN, "proper-noun"},
{CLEX::SPEC, "special"},
{CLEX::X, "unanalysed"},
{CLEX::Z, "expression-part"},
{CLEX::AFFIX, "affix"},
{CLEX::XAFFIX,"x-affix"},
{CLEX::NEUTRAL, "neutral"},
{CLEX::UNASS, "unassigned"}
}

a harcoded table with a mapping for CLEX::Type to a description

CLEX::O
@ O
Pronoun (CELEX tag)
Definition: clex.h:49
CLEX::C
@ C
Conjunction (CELEX tag)
Definition: clex.h:45
CLEX::Q
@ Q
Numeral (CELEX tag)
Definition: clex.h:51
CLEX::LET
@ LET
Letter (not in CELEX)
Definition: clex.h:53
CLEX::PN
@ PN
Proper Noun (not in CELEX)
Definition: clex.h:54
CLEX::NEUTRAL
@ NEUTRAL
No action.
Definition: clex.h:61
CLEX::V
@ V
Verb (CELEX tag)
Definition: clex.h:52
CLEX::Z
@ Z
Expresssion-part.
Definition: clex.h:57
CLEX::AFFIX
@ AFFIX
affix property
Definition: clex.h:58
CLEX::SPEC
@ SPEC
Special (not in CELEX)
Definition: clex.h:55
CLEX::A
@ A
Adjective (CELEX tag)
Definition: clex.h:43
CLEX::N
@ N
Noun (CELEX tag)
Definition: clex.h:48
CLEX::X
@ X
Unanalysed.
Definition: clex.h:56
CLEX::UNASS
@ UNASS
unknow value
Definition: clex.h:42
CLEX::P
@ P
Preposition (CELEX tag)
Definition: clex.h:50
CLEX::D
@ D
Article (CELEX tag)
Definition: clex.h:46
CLEX::I
@ I
Interjection (CELEX tag)
Definition: clex.h:47
CLEX::B
@ B
Adverb (CELEX tag)
Definition: clex.h:44
CLEX::XAFFIX
@ XAFFIX
x-affix property
Definition: clex.h:59