Class: Zenlish::WClasses::WordClass
- Inherits:
-
Rley::Syntax::Terminal
- Object
- Rley::Syntax::Terminal
- Zenlish::WClasses::WordClass
- Includes:
- Feature::FeatureStructDefBearer
- Defined in:
- lib/zenlish/wclasses/word_class.rb
Overview
Also known as: part of speech, syntactic category or word category. A word class represents a group of word which have similar functions. Word classes are divided into:
Lexical words (?? same as content words??) such as nouns, verbs, adjectives, adverbs. Content words carry the meaning of a sentence for the chosen discourse universe.
Function words (?? same as structure words??) such as pronouns, determiners, modal verbs, auxiliary verbs. Structure words helpt to structure a sentence. They working is independent of the chosen discourse universe. conjunctions and prepositions
Direct Known Subclasses
Adjective, Adverb, ComparativeParticle, Conjunction, Coordinator, Determiner, Noun, Preposition, Pronoun, SubordinatingConjunction, Verb
Instance Attribute Summary collapse
-
#paradigms ⇒ Hash
readonly
Pair of the kind: String => InflectionTable.
Instance Method Summary collapse
- #extension ⇒ Module, NilClass
-
#initialize ⇒ WordClass
constructor
A new instance of WordClass.
-
#invariable? ⇒ FalseClass, TrueClass
Indicates whether all words from the word class have a single (uninflected) form.
Methods included from Feature::FeatureStructDefBearer
#[], #boolean, #enumeration, #feature_def, #feature_def_dsl, #identifier, #init_struct_def, #struct
Constructor Details
#initialize ⇒ WordClass
Returns a new instance of WordClass.
24 25 26 27 28 |
# File 'lib/zenlish/wclasses/word_class.rb', line 24 def initialize super(self.class.name.split('::').last) init_struct_def(nil, {}) @paradigms = {} end |
Instance Attribute Details
#paradigms ⇒ Hash (readonly)
Returns pair of the kind: String => InflectionTable.
22 23 24 |
# File 'lib/zenlish/wclasses/word_class.rb', line 22 def paradigms @paradigms end |
Instance Method Details
#extension ⇒ Module, NilClass
38 39 40 |
# File 'lib/zenlish/wclasses/word_class.rb', line 38 def extension nil end |
#invariable? ⇒ FalseClass, TrueClass
Indicates whether all words from the word class have a single (uninflected) form.
33 34 35 |
# File 'lib/zenlish/wclasses/word_class.rb', line 33 def invariable? true end |