Class: Zenlish::WClasses::WordClass
- Inherits:
-
Rley::Syntax::Terminal
- Object
- Rley::Syntax::Terminal
- Zenlish::WClasses::WordClass
- 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
- Function words (?? same as structure words??) such as pronouns, determiners, modal verbs, auxiliary verbs, Structure words structure a sentence conjunctions and prepositions
Direct Known Subclasses
Adjective, Adverb, ComparativeParticle, Conjunction, Coordinator, Determiner, Noun, Preposition, Pronoun, SubordinatingConjunction, Verb
Instance Method Summary collapse
-
#initialize ⇒ WordClass
constructor
A new instance of WordClass.
Constructor Details
#initialize ⇒ WordClass
Returns a new instance of WordClass.
15 16 17 |
# File 'lib/zenlish/wclasses/word_class.rb', line 15 def initialize super(self.class.name.split('::').last) end |