PartOfSpeech class

Each object of PartOfSpeech class makes it possible to access the declaration of corresponding part of speech - its name, ID, language reference, lists of related morphological attributes.

Properties

name - part of speech name

language - language reference

Methods

IsAttr - the argument (id of morphological category) is a constant attribute of word entry, for example the gender for Russian nouns.

IsTag - the argument (id of morphological category) is an optional attribute of word entry, for example the modality flag for verbs.

IsDim - the argument (id of morphological category) is a word flexion attribute for word entry, for example the case for Russian adjectives.

Part of speech manipulation samples

Output the complete list of parts of speech to console

 Solarix.Dictionary dict = new Solarix.Dictionary( /*...*/ );

 foreach( Solarix.PartOfSpeech p in dict.partsofspeech )
  {
   Console.WriteLine( "{0} ({1})", p.name, p.language.name );
  }

Source code

File PartOfSpeech.cs

Navigation

Back to ORM main page

Parts of speech in grammatical dictionary

Searching for the part of speech

Getting the name of part of speech

Parts of speech - Russian version of this page

  © Козиев Илья 2019
changed 13-Mar-11